CN107508983A - volume adjusting method, device, storage medium and terminal device - Google Patents
volume adjusting method, device, storage medium and terminal device Download PDFInfo
- Publication number
- CN107508983A CN107508983A CN201710710454.1A CN201710710454A CN107508983A CN 107508983 A CN107508983 A CN 107508983A CN 201710710454 A CN201710710454 A CN 201710710454A CN 107508983 A CN107508983 A CN 107508983A
- Authority
- CN
- China
- Prior art keywords
- volume
- adjustment parameter
- volume parameters
- parameters
- earphone interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The invention discloses a kind of volume adjusting method, device, storage medium and terminal device, this method includes:The first volume parameters corresponding with the earphone interface of terminal device are obtained, and obtain the second volume parameters corresponding with the outer amplification module of the terminal device;When detecting that the earphone interface connects with external equipment, the first adjustment parameter is determined according to default regulation information, second volume parameters and first volume parameters;Volume corresponding to the earphone interface is adjusted according to first adjustment parameter;When detecting that the earphone interface and external equipment disconnect, the second adjustment parameter is determined according to default regulation information, first volume parameters and second volume parameters;Volume corresponding to the outer amplification module is adjusted according to second adjustment parameter.The advantage of the invention is that improving the volume adjusting efficiency of terminal device, the power consumption of terminal device is reduced.
Description
Technical field
The present embodiments relate to computer realm, more particularly to a kind of volume adjusting method, device, storage medium and end
End equipment.
Background technology
With the development of mobile network, terminal device is gradually popularized in the life of people and opened, most common of which terminal
Equipment is exactly smart mobile phone, and in the prior art, the sound play mode of smart mobile phone includes outer amplification module play mode and earphone
Interface play mode, wherein, usually the corresponding volume parameters of earphone interface, outer amplification module correspond to another volume parameters.
And such volume adjusting mode underaction is, it is necessary to further perfect.
The content of the invention
The embodiment of the present invention provides a kind of volume adjusting method, device, storage medium and terminal device, improves terminal and sets
Standby volume adjusting efficiency, reduce the power consumption of terminal device.
In a first aspect, the embodiments of the invention provide a kind of volume adjusting method, including:
The first volume parameters corresponding with the earphone interface of terminal device are obtained, and are obtained outer with the terminal device
Second volume parameters corresponding to amplification module;
When detecting that the earphone interface connects with external equipment, according to default regulation information, second volume parameters
The first adjustment parameter is determined with first volume parameters;
Volume corresponding to the earphone interface is adjusted according to first adjustment parameter;
When detecting that the earphone interface and external equipment disconnect, according to the default regulation information, first volume
Parameter and second volume parameters determine the second adjustment parameter;
Volume corresponding to the outer amplification module is adjusted according to second adjustment parameter.
Second aspect, the embodiments of the invention provide a kind of volume adjustment device, including:
Volume parameters acquisition module, for obtaining the first volume parameters corresponding with the earphone interface of terminal device, and
Obtain the second volume parameters corresponding with the outer amplification module of the terminal device;
First parameter determination module, for when detecting that the earphone interface connects with external equipment, according to default tune
Section information, second volume parameters and first volume parameters determine the first adjustment parameter;
First adjustment module, for being adjusted according to first adjustment parameter to volume corresponding to the earphone interface
Section;
Second parameter determination module, for when detecting that the earphone interface and external equipment disconnect, according to described pre-
If regulation information, first volume parameters and second volume parameters determine the second adjustment parameter;
Second adjustment module, for being adjusted according to second adjustment parameter to volume corresponding to the outer amplification module
Section.
The third aspect, the embodiments of the invention provide a kind of computer-readable recording medium, is stored thereon with computer journey
Sequence, volume adjusting method as described in the present embodiment of the invention is realized when the program is executed by processor.
Fourth aspect, the embodiments of the invention provide a kind of terminal device, including memory, processor and it is stored in storage
And can be in the computer program of processor operation on device, it is characterised in that real during computer program described in the computing device
Now volume adjusting method as described in the present embodiment of the invention.
A kind of volume adjusting method provided in the embodiment of the present invention, by earphone interface disconnect or connect when, according to
Default regulation information, the first volume parameters and the second volume parameters determine adjustment parameter, are connect further according to adjustment parameter regulation earphone
Volume value corresponding to mouth or external speaker.By using above-mentioned technical proposal, the volume adjusting efficiency of terminal device is improved, is dropped
The low power consumption of terminal device.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of volume adjusting method provided in an embodiment of the present invention;
Fig. 2 is a kind of volume adjusting schematic diagram provided in an embodiment of the present invention;
Fig. 3 is another volume adjusting schematic diagram provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of the first preset function provided in an embodiment of the present invention;
Fig. 5 is the schematic flow sheet of another volume adjusting method provided in an embodiment of the present invention;
Fig. 6 is another volume adjusting schematic diagram provided in an embodiment of the present invention;
Fig. 7 is the schematic flow sheet of another volume adjusting method provided in an embodiment of the present invention;
Fig. 8 is the schematic flow sheet of another volume adjusting method provided in an embodiment of the present invention;
Fig. 9 is a kind of volume adjusting editor schematic diagram provided in an embodiment of the present invention;
Figure 10 is a kind of structured flowchart of volume adjustment device provided in an embodiment of the present invention;
Figure 11 is a kind of structural representation of terminal device provided in an embodiment of the present invention.
Embodiment
Further illustrate technical scheme below in conjunction with the accompanying drawings and by embodiment.It is appreciated that
It is that specific embodiment described herein is used only for explaining the present invention, rather than limitation of the invention.Further need exist for illustrating
, for the ease of description, part related to the present invention rather than entire infrastructure are illustrate only in accompanying drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing described as flow chart or method.Although each step is described as the processing of order, many of which by flow chart
Step can be implemented concurrently, concomitantly or simultaneously.In addition, the order of each step can be rearranged.When its operation
The processing can be terminated during completion, it is also possible to the additional step being not included in accompanying drawing.The processing can be with
Corresponding to method, function, code, subroutine, subprogram etc..
The sound play mode of existing smart mobile phone includes outer amplification module play mode and earphone interface play mode, and one
As be the corresponding volume parameters of earphone interface, outer amplification module corresponds to another volume parameters, and this volume adjusting function is more
It is single, a less volume parameters are have selected when user is using earphone, are carried out if earphone is extracted using outer amplification module
Play, volume parameters corresponding to outer amplification module are larger, then user can be made to get a fright, and such volume control ratio is more passive, gives
User brings inconvenience.Volume adjusting method provided in an embodiment of the present invention can solve well the control of above-mentioned volume compared with
For it is passive the problem of.
Fig. 1 is a kind of schematic flow sheet of volume adjusting method provided in an embodiment of the present invention, and this method can be by volume
Control device performs, and wherein the device can be realized by software and/or hardware, can typically be integrated in terminal device.Such as Fig. 1
Shown, this method includes:
Step 101, the first volume parameters corresponding with the earphone interface of terminal device are obtained, and are obtained and the terminal
Second volume parameters corresponding to the outer amplification module of equipment.
Wherein, the first volume parameters are parameter corresponding to earphone interface, i.e., when user using earphone or other equipment and
When earphone interface connects, volume value corresponding to earphone or other equipment;Second volume parameters are that the outer of terminal device puts mould
The volume value when loudspeaker of parameter corresponding to block, i.e. terminal device plays out.
Step 102, when detecting that the earphone interface connects with external equipment, according to default regulation information, described second
Volume parameters and first volume parameters determine the first adjustment parameter.
Wherein, presetting regulation information includes formula, adjustment factor etc.;Information is adjusted to average for example, presetting, then root
Determine that the first adjustment parameter is exactly to ask for the according to default regulation information, second volume parameters and first volume parameters
The average value of two volume parameters and the first volume parameters, i.e. the first adjustment parameter.
Optionally, step 102 can be implemented by following manner:
When detecting that the earphone interface connects with external equipment, second volume parameters and first volume are joined
Number weighted sum obtains the first adjustment parameter.
Wherein, presetting regulation information includes the first weight coefficient and the second weight coefficient, and the first weight coefficient and second add
Weight coefficient can be systemic presupposition, as shown in table 1.Wherein, the first volume parameters are multiplied by the first weight coefficient, by the second volume
Parameter is multiplied by the second weight coefficient, then obtained value i.e. the first adjustment parameter that the above two are summed.As shown in Fig. 2 with the end
Second volume parameters corresponding to the outer amplification module of end equipment are 3 (the volume parameters scope of terminal device is 0-10), are set with terminal
First volume parameters corresponding to standby earphone interface are 8, are known by table 1, and the first weight coefficient is 0.4, the second weight coefficient
For 0.6, therefore the value that the first volume parameters and the second volume parameters weighted sum are obtained is:3*0.6+8*0.4=5 that is, first
Adjustment parameter is 5.As shown in figure 3, when detecting that earphone interface connects with external equipment, by the earphone interface with terminal device
Corresponding volume is adjusted to 5.It should be noted that the first volume corresponding with the earphone interface of terminal device ought be obtained next time
During parameter, the first volume parameters are 5.Closed by the way that the first volume parameters and the second volume parameters weighted sum are obtained into a comparison
The adjustment parameter of reason.
Table 1
Step 103, volume corresponding to the earphone interface is adjusted according to first adjustment parameter.
Optionally, step 103 can be implemented by following manner:
In the first preset time, the volume of the earphone interface is adjusted from the second volume parameters according to the first preset function
Save to the first adjustment parameter.
For example, the first preset time is 2s, the first preset function is sine wave, and the second volume parameters are 3, the first regulation ginseng
Number is 5, then as shown in Fig. 4 (a), the volume of earphone interface little by little rose to 5 along sine wave in 2 seconds from 3.And for example Fig. 4
(b) shown in, if the first preset function is straight line, the volume of earphone interface little by little rose to 5 along straight line in 2 seconds from 3.
By such a embodiment, the sound that user is heard by external equipment is to gradually rise, and improves the sense of hearing comfort level of user.
Optionally, as shown in figure 5, step 103 can also be implemented by following manner:
Step 103a, the noise figure under current environment is determined by the sound transducer of the terminal device.
The noise figure is specially the sound decibel value in environment, such as the noise figure of general office is 50 decibels, street
The noise figure in road is 30 decibels.
Step 103b, the noise figure is multiplied by preset ratio coefficient, and first is determined according to first adjustment parameter
Noise adjustment parameter.
For example, 0-20 decibels are imperceptible sound;20-40 decibels are quiet, the sound softly prattled on;
40-30 decibels are the sound that general room is talked;30-30 decibels are sound that is noisy and damaging nerve;30-90 decibels are very
Noisy, nerve cell is destroyed.Noise figure in 0-40 decibels is that will not have an impact to user for the sense of hearing of mobile phone volume,
40-30 decibels have minimal effect to the sense of hearing of user, and 30-30 decibels are to be affected greatly to the sense of hearing of user, 30-90 points
Bei Zehui causes very big influence to the sense of hearing of user.
As shown in table 2, preset ratio coefficient is 0 corresponding to the noise figure of 0-40 decibels;The noise figure of 40-30 decibels is corresponding
Preset ratio coefficient be that the sense of hearing of 0.006 couple of user has minimal effect, preset ratio system corresponding to the noise figure of 30-30 decibels
Number is 0.012;Preset ratio coefficient is 0.02 corresponding to the noise figure of 30-90 decibels.According to the difference of noise figure, by noise figure
Preset ratio multiplication corresponding with its, then sum with the first adjustment parameter to obtain the first noise adjustment parameter.
Table 2
Noise figure/decibel | Preset ratio coefficient |
0-40 | 0 |
40-30 | 0.006 |
30-30 | 0.012 |
30-90 | 0.02 |
For example, the first predetermined adjustment in the first adjustment parameter is 3, regulation attribute is increase, terminal device it is current
Volume value is 5;Noise figure under current environment is 50, and corresponding preset ratio coefficient is 0.006, then is multiplied by the noise figure
Preset ratio coefficient, then summed with the first predetermined adjustment in first adjustment parameter:50*0.006+3=3.3 obtain
First noise adjustment parameter is increase 3.3, and after adjustment, the volume value of terminal device is 8.3.
And for example, the second predetermined adjustment in the first adjustment parameter is 7, and the current volume value of terminal device is 5;Then by institute
State noise figure and be multiplied by preset ratio coefficient, then summed with the second predetermined adjustment in first adjustment parameter:50*0.006+
7=7.3;After adjustment, the volume value of terminal device is 7.3.
Step 103c, volume corresponding to the earphone interface is adjusted according to the first noise adjustment parameter.
Optionally, step 103c can be implemented by following manner:
In the first preset time, the volume of the earphone interface is adjusted from the second volume parameters according to the first preset function
Save to the first noise adjustment parameter.
Specific embodiment is referred to associated description above, will not be repeated here.
Step 112, when detecting that the earphone interface and external equipment disconnect, according to the default regulation information, described
First volume parameters and second volume parameters determine the second adjustment parameter.
Optionally, step 112 can be implemented by following manner:
When detecting that the earphone interface and external equipment disconnect, second volume parameters and first volume are joined
Number weighted sum obtains the second adjustment parameter.
Wherein, the first volume parameters are multiplied by the first weight coefficient, the second volume parameters is multiplied by the second weight coefficient, then
By the above two obtained value i.e. the second adjustment parameters of summation.As Figure 2-3, corresponding with the earphone interface of terminal device first
Volume parameters are 5, and the second volume parameters corresponding with the outer amplification module of the terminal device are 3, are known by table 1, and first adds
Weight coefficient is 0.5, and the second weight coefficient is 0.5, then the value obtained the first volume parameters and the second volume parameters weighted sum
For:3*0.5+5*0.5=4, i.e. the second adjustment parameter are 4.The earphone interface and external equipment are detected as shown in fig. 6, working as
During disconnection, volume corresponding to the outer amplification module in terminal device is adjusted to 4.It should be noted that it ought obtain next time and end
Corresponding to the outer amplification module of end equipment during the second volume parameters, the second volume parameters are 4.
Step 113, volume corresponding to the outer amplification module is adjusted according to second adjustment parameter.
Optionally, step 113 can be implemented by following manner:
In the second preset time, the volume according to corresponding to the second preset function by the outer amplification module is joined from the first volume
Number is adjusted to the second adjustment parameter.
Specific embodiment is referred to associated description above, will not be repeated here.
Optionally, as shown in fig. 7, step 113 can also be implemented by following manner:
Step 113a, the noise figure under current environment is determined by the sound transducer of the terminal device;
Step 113b, the noise figure is multiplied by preset ratio coefficient, and second is determined according to second adjustment parameter
Noise adjustment parameter;
Step 113c, volume corresponding to the outer amplification module is adjusted according to the second noise adjustment parameter.
Specific embodiment is referred to associated description above, will not be repeated here.
Optionally, step 113c can be implemented by following manner:
In the second preset time, the volume according to corresponding to the second preset function by the outer amplification module is joined from the first volume
Number is adjusted to the second noise adjustment parameter.
Specific embodiment is referred to associated description above, will not be repeated here.
Optionally, as shown in figure 8, the embodiment of the present invention also comprises the following steps:
Step 201, the selection information of user is received, and by the first preset time, the second preset time, the first preset function
User is back to at least one in the second preset function.
When user is to the setting in the first preset time, the second preset time, the first preset function and the second preset function
It is dissatisfied, the interface of volume adjusting editor can be entered by sending selection information, as shown in Figure 9.
Step 202, editor's information of user is received, and according to editor's information to preset time, the first preset function
Or second preset function enter edlin.
As shown in figure 9, user can be default to the first preset time, the second preset time, the first preset function and second
Function is selected or/and edited.
Such as the structured flowchart that Figure 10 is a kind of volume adjustment device that inventive embodiments provide, the device can be by software
And/or hardware is realized, is typically integrated in terminal device, as shown in Figure 10, the device includes:
Volume parameters acquisition module 301, for obtaining the first volume parameters corresponding with the earphone interface of terminal device, with
And obtain the second volume parameters corresponding with the outer amplification module of the terminal device;
First parameter determination module 302, for when detecting that the earphone interface connects with external equipment, according to default
Regulation information, second volume parameters and first volume parameters determine the first adjustment parameter;
First adjustment module 303, for being carried out according to first adjustment parameter to volume corresponding to the earphone interface
Regulation;
Second parameter determination module 312, for when detecting that the earphone interface and external equipment disconnect, according to described
Default regulation information, first volume parameters and second volume parameters determine the second adjustment parameter;
Second adjustment module 313, for being carried out according to second adjustment parameter to volume corresponding to the outer amplification module
Regulation.
Alternatively, the first parameter determination module is specifically used for:
Second volume parameters and the first volume parameters weighted sum are obtained into the first adjustment parameter;
Second parameter determination module is specifically used for:
Second volume parameters and the first volume parameters weighted sum are obtained into the second adjustment parameter.
Alternatively, the first adjustment module is specifically used for:
In the first preset time, the volume of the earphone interface is adjusted from the second volume parameters according to the first preset function
Save to the first adjustment parameter.
Alternatively, the second adjustment module is specifically used for:
In the second preset time, the volume according to corresponding to the second preset function by the outer amplification module is joined from the first volume
Number is adjusted to the second adjustment parameter.
Alternatively, in addition to:
First noise adjustment module, for determining the noise under current environment by the sound transducer of the terminal device
Value, is multiplied by preset ratio coefficient, and determine the first noise adjustment parameter according to first adjustment parameter by the noise figure;
Second noise adjustment module, the noise figure under current environment is determined by the sound transducer of the terminal device,
The noise figure is multiplied by preset ratio coefficient, and the second noise adjustment parameter is determined according to second adjustment parameter;
Accordingly, the first adjustment module is specifically used for:
Volume corresponding to the earphone interface is adjusted according to the first noise adjustment parameter;
Second adjustment module is specifically used for:
Volume corresponding to the outer amplification module is adjusted according to the second noise adjustment parameter.
Alternatively, the first adjustment module is specifically used for:
In the first preset time, the volume of the earphone interface is adjusted from the second volume parameters according to the first preset function
Save to the first noise adjustment parameter;
Second adjustment module is specifically used for:
In the second preset time, the volume according to corresponding to the second preset function by the outer amplification module is joined from the first volume
Number is adjusted to the second noise adjustment parameter.
Alternatively, in addition to:
Setup module is selected, for receiving the selection information of user, and by the first preset time, the second preset time, the
It is at least one in one preset function and the second preset function to be back to user;
Editor module, editor's information of user is received, and according to editor's information to preset time, the first preset function
Or second preset function enter edlin.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap
Include:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as
DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetizing mediums
(such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can also include other
The memory of type or its combination.In addition, storage medium can be located at program in the first computer system being wherein performed,
Or can be located in different second computer systems, second computer system is connected to the by network (such as internet)
One computer system.Second computer system can provide programmed instruction and be used to perform to the first computer." storage is situated between term
Matter " can include may reside within diverse location two of (such as in different computer systems by network connection) or
More storage mediums.Storage medium can store the programmed instruction that can be performed by one or more processors and (such as implement
For computer program).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer
The volume adjusting operation that executable instruction is not limited to the described above, can also carry out the volume that any embodiment of the present invention is provided
Associative operation in adjusting method.
The embodiments of the invention provide a kind of terminal device, sound provided in an embodiment of the present invention can be integrated in the terminal device
Quantity regulating device.Figure 11 is a kind of structural representation of terminal device provided in an embodiment of the present invention.As shown in figure 11, the terminal
Equipment can include:Housing (not shown), touch-screen (not shown), touch key-press (not shown), memory
401st, central processing unit (Central Processing Unit, CPU) 402 (also known as processor, hereinafter referred to as CPU), circuit board
(not shown) and power circuit (not shown).The circuit board is placed in the interior volume that the housing surrounds;Institute
State CPU402 and the memory 401 is arranged on the circuit board;The power circuit, for for each of the terminal device
Individual circuit or device power supply;The memory 401, for storing executable program code;The CPU402 passes through described in reading
The executable program code stored in memory 401 runs computer program corresponding with the executable program code, with
Realize following steps:
The first volume parameters corresponding with the earphone interface of terminal device are obtained, and are obtained outer with the terminal device
Second volume parameters corresponding to amplification module;
When detecting that the earphone interface connects with external equipment, according to default regulation information, second volume parameters
The first adjustment parameter is determined with first volume parameters;
Volume corresponding to the earphone interface is adjusted according to first adjustment parameter;
When detecting that the earphone interface and external equipment disconnect, according to the default regulation information, first volume
Parameter and second volume parameters determine the second adjustment parameter;
Volume corresponding to the outer amplification module is adjusted according to second adjustment parameter.
The terminal device also includes:Peripheral Interface 403, RF (Radio Frequency, radio frequency) circuit 405, audio-frequency electric
Road 406, loudspeaker 411, power management chip 408, input/output (I/O) subsystem 409, touch-screen 412, other input/controls
Control equipment 410 and outside port 404, these parts are communicated by one or more communication bus or signal wire 407.
It should be understood that graphic terminal 400 is only an example of terminal device, and terminal device 400
Can have than more or less parts shown in figure, can combine two or more parts, or can be with
Configured with different parts.Various parts shown in figure can be including one or more signal transactings and/or special
Hardware, software including integrated circuit are realized in the combination of hardware and software.
Below with regard to the present embodiment provide the terminal device for volume adjusting be described in detail, the terminal device with
Exemplified by mobile phone.
Memory 401, the memory 401 can be accessed by CPU402, Peripheral Interface 403 etc., and the memory 401 can
Including high-speed random access memory, can also include nonvolatile memory, such as one or more disk memories,
Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU402 and deposited by Peripheral Interface 403, the Peripheral Interface 403
Reservoir 401.
I/O subsystems 409, the I/O subsystems 409 can be by the input/output peripherals in equipment, such as touch-screen 412
With other input/control devicess 410, Peripheral Interface 403 is connected to.I/O subsystems 409 can include the He of display controller 4091
For controlling one or more input controllers 4092 of other input/control devicess 410.Wherein, one or more input controls
Device 4092 processed receives electric signal from other input/control devicess 410 or sends electric signal to other input/control devicess 410,
Other input/control devicess 410 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole, click on roller.What deserves to be explained is input controller 4092 can with it is following any one be connected:Keyboard, infrared port,
The instruction equipment of USB interface and such as mouse.
Touch-screen 412, the touch-screen 412 are the input interface and output interface between subscriber terminal equipment and user,
Visual output display can be included into figure, text, icon, video etc. to user, visual output.
Display controller 4091 in I/O subsystems 409 receives electric signal from touch-screen 412 or sent out to touch-screen 412
Electric signals.Touch-screen 412 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 4091
The interaction of user interface object on touch-screen 412, that is, realize man-machine interaction, the user interface being shown on touch-screen 412
Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light
Mouse, light mouse is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.
RF circuits 405, it is mainly used in establishing the communication of mobile phone and wireless network (i.e. network side), realizes mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 405 receive and send RF letters
Number, RF signals are also referred to as electromagnetic signal, and RF circuits 405 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications
Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 405 can include being used to perform
The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one
Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identify mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 406, it is mainly used in receiving voice data from Peripheral Interface 403, the voice data is converted into telecommunications
Number, and the electric signal is sent to loudspeaker 411.
Loudspeaker 411, for the voice signal for receiving mobile phone from wireless network by RF circuits 405, it is reduced to sound
And play the sound to user.
Power management chip 408, the hardware for being connected by CPU402, I/O subsystem and Peripheral Interface are powered
And power management.
Terminal device provided in an embodiment of the present invention, the volume adjusting efficiency of terminal device can be improved, reduces end
The power consumption of end equipment.
Any implementation of the executable present invention of volume adjustment device, storage medium and terminal device provided in above-described embodiment
The volume adjusting method that example is provided, possess and perform the corresponding functional module of this method and beneficial effect.Not in above-described embodiment
In detailed description ins and outs, reference can be made to the volume adjusting method that any embodiment of the present invention is provided.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
- A kind of 1. volume adjusting method, it is characterised in that including:The first volume parameters corresponding with the earphone interface of terminal device are obtained, and obtains and puts mould with the outer of the terminal device Second volume parameters corresponding to block;When detecting that the earphone interface connects with external equipment, according to default regulation information, second volume parameters and institute State the first volume parameters and determine the first adjustment parameter;Volume corresponding to the earphone interface is adjusted according to first adjustment parameter;When detecting that the earphone interface and external equipment disconnect, according to the default regulation information, first volume parameters And second volume parameters determine the second adjustment parameter;Volume corresponding to the outer amplification module is adjusted according to second adjustment parameter.
- 2. the method as described in claim 1, it is characterised in that the default regulation information of the basis, second volume parameters Determine that the first adjustment parameter includes with first volume parameters:Second volume parameters and the first volume parameters weighted sum are obtained into the first adjustment parameter;It is described to determine the second regulation according to default regulation information, first volume parameters and second volume parameters Parameter includes:Second volume parameters and the first volume parameters weighted sum are obtained into the second adjustment parameter.
- 3. method as claimed in claim 2, it is characterised in that it is described according to first adjustment parameter to the earphone interface Corresponding volume be adjusted including:In the first preset time, according to the first preset function by the volume of the earphone interface from the second volume parameters adjust to First adjustment parameter.
- 4. method as claimed in claim 3, it is characterised in that it is described according to second adjustment parameter to the outer amplification module Corresponding volume be adjusted including:In the second preset time, the volume according to corresponding to the second preset function by the outer amplification module is adjusted from the first volume parameters Save to the second adjustment parameter.
- 5. method as claimed in claim 2, it is characterised in that by second volume parameters and first volume parameters After weighted sum obtains the first adjustment parameter, in addition to:Noise figure under current environment is determined by the sound transducer of the terminal device, the noise figure is multiplied by default ratio Example coefficient, and the first noise adjustment parameter is determined according to first adjustment parameter;Accordingly, it is described volume corresponding to the earphone interface is adjusted according to first adjustment parameter including:Volume corresponding to the earphone interface is adjusted according to the first noise adjustment parameter;Determining that the second regulation is joined according to default regulation information, first volume parameters and second volume parameters After number, in addition to:Noise figure under current environment is determined by the sound transducer of the terminal device, the noise figure is multiplied by default ratio Example coefficient, and the second noise adjustment parameter is determined according to second adjustment parameter;Accordingly, it is described volume corresponding to the outer amplification module is adjusted according to second adjustment parameter including:Volume corresponding to the outer amplification module is adjusted according to the second noise adjustment parameter.
- 6. method as claimed in claim 5, it is characterised in that it is described according to the first noise adjustment parameter to the earphone Volume corresponding to interface be adjusted including:In the first preset time, according to the first preset function by the volume of the earphone interface from the second volume parameters adjust to First noise adjustment parameter;It is described volume corresponding to the outer amplification module is adjusted according to the second noise adjustment parameter including:In the second preset time, the volume according to corresponding to the second preset function by the outer amplification module is adjusted from the first volume parameters Save to the second noise adjustment parameter.
- 7. the method as described in claim 4 or 6, it is characterised in that also include:The selection information of user is received, and the first preset time, the second preset time, the first preset function and second are preset into letter It is at least one in number to be back to user;Editor's information of user is received, and according to editor's information to the default letter of preset time, the first preset function or second Number enters edlin.
- A kind of 8. volume adjustment device, it is characterised in that including:Volume parameters acquisition module, for obtaining the first volume parameters corresponding with the earphone interface of terminal device, and obtain The second volume parameters corresponding with the outer amplification module of the terminal device;First parameter determination module, for when detecting that the earphone interface connects with external equipment, being believed according to default regulation Breath, second volume parameters and first volume parameters determine the first adjustment parameter;First adjustment module, for volume corresponding to the earphone interface to be adjusted according to first adjustment parameter;Second parameter determination module, for when detecting that the earphone interface and external equipment disconnect, according to the default tune Section information, first volume parameters and second volume parameters determine the second adjustment parameter;Second adjustment module, for volume corresponding to the outer amplification module to be adjusted according to second adjustment parameter.
- 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor The volume adjusting method as any one of claim 1-7 is realized during row.
- 10. a kind of terminal device, it is characterised in that including memory, processor and storage are on a memory and can be in processor The computer program of operation, it is characterised in that realize that claim 1-7 such as appoints described in the computing device during computer program Volume adjusting method described in one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710710454.1A CN107508983B (en) | 2017-08-18 | 2017-08-18 | Volume adjusting method and device, storage medium and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710710454.1A CN107508983B (en) | 2017-08-18 | 2017-08-18 | Volume adjusting method and device, storage medium and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107508983A true CN107508983A (en) | 2017-12-22 |
CN107508983B CN107508983B (en) | 2020-05-12 |
Family
ID=60691127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710710454.1A Active CN107508983B (en) | 2017-08-18 | 2017-08-18 | Volume adjusting method and device, storage medium and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107508983B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108447512A (en) * | 2018-03-20 | 2018-08-24 | 北京奇艺世纪科技有限公司 | A kind of control method and device of Doby track |
CN108897516A (en) * | 2018-06-13 | 2018-11-27 | Oppo广东移动通信有限公司 | A kind of wearable device method for regulation of sound volume and Related product |
CN109495649A (en) * | 2018-12-14 | 2019-03-19 | 深圳市沃特沃德股份有限公司 | Volume adjusting method, system and storage medium |
CN109511070A (en) * | 2018-11-10 | 2019-03-22 | 东莞市华睿电子科技有限公司 | A kind of hearing aid gain processing method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080066143A (en) * | 2007-01-11 | 2008-07-16 | 엘지전자 주식회사 | Mobile terminal and method for controlling a sound volume in thereof |
CN103237277A (en) * | 2013-04-12 | 2013-08-07 | 广东欧珀移动通信有限公司 | Method and device for headset audio playing |
CN105872180A (en) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | Method and device for adjusting volume of terminal device |
CN106792386A (en) * | 2016-12-05 | 2017-05-31 | 青岛海信电器股份有限公司 | A kind of terminal volume adjusting method and device |
-
2017
- 2017-08-18 CN CN201710710454.1A patent/CN107508983B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080066143A (en) * | 2007-01-11 | 2008-07-16 | 엘지전자 주식회사 | Mobile terminal and method for controlling a sound volume in thereof |
CN103237277A (en) * | 2013-04-12 | 2013-08-07 | 广东欧珀移动通信有限公司 | Method and device for headset audio playing |
CN105872180A (en) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | Method and device for adjusting volume of terminal device |
CN106792386A (en) * | 2016-12-05 | 2017-05-31 | 青岛海信电器股份有限公司 | A kind of terminal volume adjusting method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108447512A (en) * | 2018-03-20 | 2018-08-24 | 北京奇艺世纪科技有限公司 | A kind of control method and device of Doby track |
CN108897516A (en) * | 2018-06-13 | 2018-11-27 | Oppo广东移动通信有限公司 | A kind of wearable device method for regulation of sound volume and Related product |
CN108897516B (en) * | 2018-06-13 | 2021-04-09 | Oppo广东移动通信有限公司 | Wearable device volume adjustment method and related product |
CN109511070A (en) * | 2018-11-10 | 2019-03-22 | 东莞市华睿电子科技有限公司 | A kind of hearing aid gain processing method |
CN109495649A (en) * | 2018-12-14 | 2019-03-19 | 深圳市沃特沃德股份有限公司 | Volume adjusting method, system and storage medium |
CN109495649B (en) * | 2018-12-14 | 2021-10-01 | 深圳市沃特沃德信息有限公司 | Volume adjusting method, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107508983B (en) | 2020-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11251763B2 (en) | Audio signal adjustment method, storage medium, and terminal | |
CN110716592B (en) | Temperature control method and related equipment | |
CN107343076A (en) | Volume adjusting method, device, storage medium and mobile terminal | |
CN107508983A (en) | volume adjusting method, device, storage medium and terminal device | |
CN106791067B (en) | Call volume adjusting method and device and mobile terminal | |
CN108108142A (en) | Voice information processing method, device, terminal device and storage medium | |
CN107509153A (en) | Detection method, device, storage medium and the terminal of Audio Players part | |
CN107562405A (en) | Audio play control method, device and storage medium and mobile terminal | |
CN103714824A (en) | Audio processing method, audio processing device and terminal equipment | |
CN107040661A (en) | Control method, device and the mobile terminal of mobile terminal playing volume | |
CN107566618A (en) | volume adjusting method, device, terminal device and storage medium | |
CN107404753A (en) | Volume adjusting method, device, terminal and storage medium | |
CN107799113A (en) | Audio-frequency processing method, device, storage medium and mobile terminal | |
CN107395883A (en) | Voice signal adjusting method, communication terminal and computer-readable recording medium | |
CN107526570A (en) | volume adjusting method, device, terminal device and storage medium | |
CN107465824A (en) | volume adjusting method, device, mobile terminal and storage medium | |
CN105744045A (en) | System and method of adjusting ring tone volume | |
CN108172237A (en) | Voice communication data processing method, device, storage medium and mobile terminal | |
CN107436751A (en) | volume adjusting method, device, terminal device and storage medium | |
CN107526569B (en) | A kind of volume adjusting method, device, storage medium and mobile terminal | |
CN107508979A (en) | volume adjusting method, device, terminal and storage medium | |
CN107493380A (en) | volume adjusting method, device, storage medium and terminal device | |
CN107508978A (en) | volume adjusting method, device, storage medium and terminal device | |
CN108089897A (en) | Startup management method, device, storage medium and the mobile terminal of application program | |
CN108513003A (en) | Desktop icons method of adjustment, device, terminal device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |