CN107566618A - volume adjusting method, device, terminal device and storage medium - Google Patents
volume adjusting method, device, terminal device and storage medium Download PDFInfo
- Publication number
- CN107566618A CN107566618A CN201710711272.6A CN201710711272A CN107566618A CN 107566618 A CN107566618 A CN 107566618A CN 201710711272 A CN201710711272 A CN 201710711272A CN 107566618 A CN107566618 A CN 107566618A
- Authority
- CN
- China
- Prior art keywords
- volume
- sound
- gain
- source
- terminal device
- 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
-
- 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
Abstract
The embodiment of the invention discloses a kind of volume adjusting method, device, terminal device and storage medium, this method includes, when detecting that terminal device carries out source of sound broadcasting, obtaining the information volume of the source of sound and the volume that the terminal device is currently used;The gain of the source of sound is determined according to the information volume;If the gain and the volume meet default adjusting condition, the information volume of the source of sound is adjusted.This programme improves volume adjusting efficiency, reduces the power consumption of terminal device.
Description
Technical field
The present embodiments relate to computer technology, more particularly to a kind of volume adjusting method, device, terminal device and deposit
Storage media.
Background technology
With the raising of terminal device popularity, increasing user's using terminal equipment performs various work(
Can be to meet self-demand, such as using terminal equipment reads word, watches video, listen music, play game.When terminal device exists
During playing audio-video, the regulation existing defects of volume are, it is necessary to improve.
The content of the invention
The invention provides a kind of volume adjusting method, device, terminal device and storage medium, improves volume adjusting effect
Rate, reduce the power consumption of terminal device.
In a first aspect, the embodiments of the invention provide a kind of volume adjusting method, including:
When detecting that terminal device carries out source of sound broadcasting, the information volume of the source of sound and the terminal device are obtained
Currently used volume;
The gain of the source of sound is determined according to the information volume;
If the gain and the volume meet default adjusting condition, the information volume of the source of sound is carried out
Regulation.
Second aspect, the embodiment of the present invention additionally provide a kind of volume adjustment device, including:
Data obtaining module, for when detecting that terminal device carries out source of sound broadcasting, obtaining the volume letter of the source of sound
Breath and the currently used volume of the terminal device;
Gain determining module, for determining the gain of the source of sound according to the information volume;
Adjustment module, if meeting default adjusting condition for the gain and the volume, to the source of sound
Information volume be adjusted.
The third aspect, the embodiment of the present invention additionally provide a kind of terminal device, including:Processor, memory and storage
On a memory and the computer program that can run on a processor, realized such as during computer program described in the computing device
Volume adjusting method described in the embodiment of the present invention.
Fourth aspect, the embodiment of the present invention additionally provide a kind of storage medium for including terminal device executable instruction, institute
Terminal device executable instruction is stated as being adjusted during terminal device computing device for the volume described in performing the embodiment of the present invention
Section method.
Technical scheme provided in an embodiment of the present invention, when detecting that terminal device carries out source of sound broadcasting, obtain the sound
The information volume in source and the currently used volume of the terminal device, the source of sound is determined according to the information volume
Gain, if the gain and the volume meet default adjusting condition, the information volume of the source of sound is adjusted
Section, improves volume adjusting efficiency, reduces the power consumption of terminal device.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of volume adjusting method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another volume adjusting method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another volume adjusting method provided in an embodiment of the present invention;
Fig. 4 is the flow chart of another volume adjusting method provided in an embodiment of the present invention;
Fig. 5 is a kind of structured flowchart of volume adjustment device provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of terminal device provided in an embodiment of the present invention.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used to explain the present invention, rather than limitation of the invention.It also should be noted that for the ease of retouching
State, part related to the present invention rather than entire infrastructure are illustrate only in accompanying drawing.
Fig. 1 is a kind of flow chart of volume adjusting method provided in an embodiment of the present invention, and the applicable terminal of the present embodiment is set
Standby to play situation about being automatically adjusted during sound source data to broadcast sound volume, this method can be by end provided in an embodiment of the present invention
End equipment is performed, and the volume adjustment device of the terminal device can be realized by the way of software and/or hardware, as shown in figure 1,
The concrete scheme that the present embodiment provides is as follows:
Step S101, when detecting that terminal device carries out source of sound broadcasting, information volume and the institute of the source of sound are obtained
State the currently used volume of terminal device.
In one embodiment, terminal device can be broadcast by the audio frequency and video that the third party application or system of installation carry
Soften the broadcasting that part carries out source of sound.Wherein, the steps such as acquisition, decoding and output of audio files are mainly included.Exemplary, obtain
The audio files got can be the multicast data flow received by network, can also be the audio frequency and video text that terminal device is locally stored
Part;It is loaded into after getting the audio files in core buffer;The audio files for being loaded into core buffer are carried out
Decoding, before decoding starts, if the audio files include video data, it is necessary to carry out voice data and video counts simultaneously
According to separation, the voice data after separation is inputted to audio decoder, wherein, audio decoder be mainly used in read internal memory delay
The voice data rushed in area, digital audio and video signals are obtained, and the digital audio and video signals are converted into simulated audio signal, terminal is set
Standby broadcasting device carries out audio broadcasting according to the simulated audio signal.In one embodiment, when listen to source of sound play thing
When part is triggered, determine that terminal device commences play out source of sound, wherein, the trigger event can be shown in the touch-screen detected
Broadcast button be pressed, can also be when detecting the broadcasting device of terminal device for example loudspeaker commencing play out sound, it is determined that eventually
End equipment carries out source of sound broadcasting.
When detecting that terminal device carries out source of sound broadcasting, the information volume of the source of sound is obtained.In one embodiment,
The digital audio and video signals that can decode to obtain to audio decoder are sampled, and determine information volume corresponding to the source of sound.Another
In embodiment, the original document of currently playing source of sound can also be obtained, source of sound pair is determined by the parsing to the original document
The information volume answered.In another embodiment, by taking android system as an example, can pass through
Android.media.MediaRecorder classes or android.media.AudioRecord classes obtain the information volume of source of sound.
Wherein, the currently used volume of terminal device can be the setting volume of system in terminal device, should
Volume can change according to regulation of the user to the volume (such as volume button) of terminal device.Specifically, with Android
Exemplified by system, the current volume of terminal device can be determined by the getVolume methods of AudioManager classes.
Step S102, the gain of the source of sound is determined according to the information volume.
Wherein, gain refer to electric current, voltage or the increased degree of power in component, circuit, equipment or system (amplification
Multiple), unit is decibel.Optionally, can be by controlling gain amplifier to carry out gain to the simulated audio signal for preparing output
Regulation.It needs to be determined that the size of gain, exemplary during progress gain-adjusted, the gain that should be determined by information volume can be eventually
The regulation gain that end equipment system uses when playing the source of sound, can also be recorded in information volume to should source of sound broadcast
Gain when putting.
Step S103, judge whether the gain and the volume meet default adjusting condition, if it is, performing
Step S104, if it is not, then performing step S105.
In one embodiment, the gain and the volume meet that default adjusting condition includes:The gain is small
In preset gain threshold value, the volume is less than default volume threshold.Terminal device is always divided into by Jing Yin to max volume
18 grade-adjustables, the corresponding volume value of each grade, different volume values characterize the different sounds of terminal device system
Measure size.Exemplary, the default volume threshold can be 3,4 or 5 etc..Preset gain threshold value may be greater than 1 be less than 2 it
Between any value, such as 1.2.In the embodiment, when the gain for judging source of sound is less than preset gain threshold value, the sound of terminal device
Volume adjusting is carried out to perform step S101 when amount size is less than default volume threshold, step S105 is otherwise performed and terminates to volume
The control of regulation.
Step S104, the information volume of the source of sound is adjusted.
In one embodiment, the information volume to the source of sound be adjusted including:According to default regulation algorithm
Gain to the source of sound is adjusted.Exemplary, the default regulation algorithm can carry out entirety to the amplitude of source of sound
Gain-adjusted, it is 1.5 such as to set accommodation coefficient of gain, then carries out gain according to accommodation coefficient of gain 1.5 when source of sound plays.Another
In one embodiment, it is also possible that source of sound amplitude corresponding to source information determination is first depending on, wherein, amplitude refers to object and shaken
Deviate the ultimate range of origin-location in journey, the loudness for the sound that human ear is heard is related to the amplitude of source of sound, the bigger loudness of amplitude
It is stronger.In one embodiment, the audio-frequency information that can decode to obtain to audio decoder is sampled, and obtains preset time period T
Interior amplitude information, wherein, the amplitude information can be made up of multiple amplitudes, can accordingly really according to obtained multiple amplitudes
It is scheduled on the amplitude curve of the source of sound played in preset time period T, the increasing different according to the setting of different sizes of the amplitude curve
Beneficial coefficient, exemplary, specific corresponding relation can be with as shown in the table:
Table 1
Amplitude | Gain coefficient |
More than -3db or less than -50db | 1 |
It is more than -50db less than -10db | 2 |
It is more than -10db less than -3db | 1.5 |
As shown in table 1, when the amplitude of source of sound is more than -3db or less than -50db, its gain is not adjusted;Work as amplitude
When being more than -50db less than -10db, amplitude is high amplitude area, is that its distribution gain coefficient is 1.5, when amplitude is big less than -10db
Be middle amplitude area when -50db, be its to distribute peak factor be 2 to significantly improve the amplitude size of the fractional amplitude.
Step S105, terminate.
As shown in the above, the volume adjusting method that this programme provides, when the gain of source of sound is too small or increases for 0db
Benefit, at the same terminal device it is current volume it is relatively low when, the information volume of source of sound is adjusted, can be by way of adjusting gain
Change the amplitude of source of sound to improve source of sound volume, realize automatically adjusting to meet regulation of the user to volume to source of sound volume
Demand, improve volume adjusting efficiency.
In a possible embodiment, after being adjusted according to gain of the default regulation algorithm to the source of sound,
Also include:In the audio signal after the terminal device plays gain-adjusted, if detecting distorsion signal, described in reduction
The gain of audio signal and/or reduce the current volume of the terminal device.Exemplary, can be big by the amplitude detected
It is defined as distorsion signal in (such as 3db) audio signal of a certain setting amplitude, when detecting that distorsion signal occurs, corresponding drop
The current volume of low terminal device reduces gain to avoid the occurrence of distorsion.
Fig. 2 is the flow chart of another volume adjusting method provided in an embodiment of the present invention, on the basis of above-described embodiment
On, optionally, after being adjusted according to gain of the default regulation algorithm to the source of sound, in addition to:According to noise suppressed
Algorithm, noise filtering is carried out to the audio signal obtained after regulation.As shown in Figure 2:
Step S201, when detecting that terminal device carries out source of sound broadcasting, information volume and the institute of the source of sound are obtained
State the currently used volume of terminal device.
Step S202, the gain of the source of sound is determined according to the information volume.
Step S203, judge whether the gain is less than preset gain threshold value, and the volume is less than default volume
Threshold value, if it is, step S204 is performed, if it is not, then performing step S205.
Step S204, it is adjusted according to gain of the default regulation algorithm to the source of sound, it is right according to noise suppression algorithm
The audio signal obtained after regulation carries out noise filtering.It is exemplary, can use Wiener wave filters noise suppressing method,
LMS filter noise restrainable algorithms etc..
Step S205, terminate.
From above-mentioned discussion, during the source of sound for the condition that meets is carried out into information volume regulation, for due to gain
The noise of amplification suppress, eliminated, and avoids the problem of being exaggerated noise and then being had an impact to tonequality.
Fig. 3 is the flow chart of another volume adjusting method provided in an embodiment of the present invention, optionally, is adjusted according to default
Before gain of the section algorithm to the source of sound is adjusted, in addition to:According to noise amplitude corresponding to information volume determination
Value;The noise amplitude value that will be greater than default noise amplitude is filtered out.As shown in Figure 3:
Step S301, when detecting that terminal device carries out source of sound broadcasting, information volume and the institute of the source of sound are obtained
State the currently used volume of terminal device.
Step S302, the gain of the source of sound is determined according to the information volume.
Step S303, judge whether the gain is less than preset gain threshold value, and the volume is less than default volume
Threshold value, if it is, step S304 is performed, if it is not, then performing step S306.
Step S304, according to noise amplitude value corresponding to information volume determination, it will be greater than making an uproar for default noise amplitude
Sound and vibration amplitude is filtered out.
In one embodiment, the identification process to noise can be that the amplitude in information volume and frequency are known
Not, if detecting amplitude in information volume fragment and frequency meets randomness condition, i.e. amplitude and frequency without any rule,
It is noise that it, which can then be assert, or, according to the amplitude curve of audio-frequency information, noise is regarded as into the too small part of amplitude.When true
After the amplitude curve for determining noise, the noise amplitude value that will be greater than default noise amplitude (as between -30db to -50db) accordingly is entered
Row filters out, to avoid noise from being amplified by gain.
Step S305, it is adjusted according to gain of the default regulation algorithm to the source of sound.
Step S306, terminate.
From above-mentioned discussion, before the information volume by changing gain-adjusted source of sound, noise reduction process is carried out, is avoided
Noise is influenceed the tonequality of source of sound after notable gain, further increase the effect of volume adjusting.
Fig. 4 is the flow chart of another volume adjusting method provided in an embodiment of the present invention, optionally, to the source of sound
Gain be adjusted after, in addition to:The volume of the terminal device is adjusted.Wherein, it is described to the end
The volume of end equipment be adjusted including:The gain size of the source of sound gain-adjusted is determined, according to the gain size
It is determined that corresponding volume adjusting information;The volume of the terminal device is adjusted according to the volume adjusting information.
As shown in figure 4, step is as follows:
Step S401, when detecting that terminal device carries out source of sound broadcasting, information volume and the institute of the source of sound are obtained
State the currently used volume of terminal device.
Step S402, the gain of the source of sound is determined according to the information volume.
Step S403, judge whether the gain is less than preset gain threshold value, and the volume is less than default volume
Threshold value, if it is, step S404 is performed, if it is not, then performing step S406.
Step S404, the gain size of the source of sound gain-adjusted is determined according to default regulation algorithm.
Step S405, according to volume adjusting information corresponding to gain size determination, according to the volume adjusting information
The volume of the terminal device is adjusted.
In one embodiment, the volume adjusting information according to corresponding to determining gain size.Exemplary, gain size is got over
It is correspondingly improved the current broadcast sound volume of terminal device greatly.In a possible embodiment, a kind of specific progress is given
The mode of volume adjusting, optionally, the volume value current to the terminal device is carried out by way of setting target sound value
Regulation.Exemplary, terminal device is always divided into 18 grade-adjustables, the corresponding sound of each grade to max volume by Jing Yin
Value, the target sound value can be any values of series in 14-18, depending on the size according to specific gain.In a possibility
Embodiment in, can also be and the volume of terminal device is adjusted using volume change value, the volume change value can be
3,5,8 etc., i.e., increase the volume change value on the basis of current volume to improve the current system volume of terminal device.
Step S406, terminate.
From above-mentioned discussion, in the case where source of sound meets volume adjusting condition, it is adjusted in the gain to source of sound
While, adaptability regulation is equally synchronized to the currently playing volume of terminal device, improves volume adjusting effect, simultaneously
The too small final volume brought that only source of sound gain is adjusted of system sound volume for avoiding terminal device current can not significantly improve
The problem of.
Fig. 5 is a kind of structured flowchart of volume adjustment device provided in an embodiment of the present invention, and the device is above-mentioned for performing
The volume adjusting method that embodiment provides, possesses the corresponding functional module of execution method and beneficial effect.As shown in figure 5, the dress
Put and specifically include:Data obtaining module 101, gain determining module 102 and adjustment module 103.
Wherein, data obtaining module 101, for when detecting that terminal device carries out source of sound broadcasting, obtaining the source of sound
Information volume and the currently used volume of the terminal device.
In one embodiment, terminal device can be broadcast by the audio frequency and video that the third party application or system of installation carry
Soften the broadcasting that part carries out source of sound.Wherein, the steps such as acquisition, decoding and output of audio files are mainly included.Exemplary, obtain
The audio files got can be the multicast data flow received by network, can also be the audio frequency and video text that terminal device is locally stored
Part;It is loaded into after getting the audio files in core buffer;The audio files for being loaded into core buffer are carried out
Decoding, before decoding starts, if the audio files include video data, it is necessary to carry out voice data and video counts simultaneously
According to separation, the voice data after separation is inputted to audio decoder, wherein, audio decoder be mainly used in read internal memory delay
The voice data rushed in area, digital audio and video signals are obtained, and the digital audio and video signals are converted into simulated audio signal, terminal is set
Standby broadcasting device carries out audio broadcasting according to the simulated audio signal.In one embodiment, when listen to source of sound play thing
When part is triggered, determine that terminal device commences play out source of sound, wherein, the trigger event can be shown in the touch-screen detected
Broadcast button be pressed, can also be when detecting the broadcasting device of terminal device for example loudspeaker commencing play out sound, it is determined that eventually
End equipment carries out source of sound broadcasting.
When detecting that terminal device carries out source of sound broadcasting, the information volume of the source of sound is obtained.In one embodiment,
The digital audio and video signals that can decode to obtain to audio decoder are sampled, and determine information volume corresponding to the source of sound.Another
In embodiment, the original document of currently playing source of sound can also be obtained, source of sound pair is determined by the parsing to the original document
The information volume answered.In another embodiment, by taking android system as an example, can pass through
Android.media.MediaRecorder classes or android.media.AudioRecord classes obtain the information volume of source of sound.
Wherein, the currently used volume of terminal device can be the setting volume of system in terminal device, should
Volume can change according to regulation of the user to the volume (such as volume button) of terminal device.Specifically, with Android
Exemplified by system, the current volume of terminal device can be determined by the getVolume methods of AudioManager classes.
Gain determining module 102, for determining the gain of the source of sound according to the information volume.
Wherein, gain refer to electric current, voltage or the increased degree of power in component, circuit, equipment or system (amplification
Multiple), unit is decibel.Optionally, can be by controlling gain amplifier to carry out gain to the simulated audio signal for preparing output
Regulation.It needs to be determined that the size of gain, exemplary during progress gain-adjusted, the gain that should be determined by information volume can be eventually
The regulation gain that end equipment system uses when playing the source of sound, can also be recorded in information volume to should source of sound broadcast
Gain when putting.
Adjustment module 103, if meeting default adjusting condition for the gain and the volume, to the sound
The information volume in source is adjusted.
In one embodiment, the gain and the volume meet that default adjusting condition includes:The gain is small
In preset gain threshold value, the volume is less than default volume threshold.Terminal device is always divided into by Jing Yin to max volume
18 grade-adjustables, the corresponding volume value of each grade, different volume values characterize the different sounds of terminal device system
Measure size.Exemplary, the default volume threshold can be 3,4 or 5 etc..Preset gain threshold value may be greater than 1 be less than 2 it
Between any value, such as 1.2.In the embodiment, when the gain for judging source of sound is less than preset gain threshold value, the sound of terminal device
Volume adjusting is carried out to perform step S101 when amount size is less than default volume threshold, step S105 is otherwise performed and terminates to volume
The control of regulation.
In one embodiment, the information volume to the source of sound be adjusted including:According to default regulation algorithm
Gain to the source of sound is adjusted.Exemplary, the default regulation algorithm can carry out entirety to the amplitude of source of sound
Gain-adjusted, it is 1.5 such as to set accommodation coefficient of gain, then carries out gain according to accommodation coefficient of gain 1.5 when source of sound plays.Another
In one embodiment, it is also possible that source of sound amplitude corresponding to source information determination is first depending on, wherein, amplitude refers to object and shaken
Deviate the ultimate range of origin-location in journey, the loudness for the sound that human ear is heard is related to the amplitude of source of sound, the bigger loudness of amplitude
It is stronger.In one embodiment, the audio-frequency information that can decode to obtain to audio decoder is sampled, and obtains preset time period T
Interior amplitude information, wherein, the amplitude information can be made up of multiple amplitudes, can accordingly really according to obtained multiple amplitudes
It is scheduled on the amplitude curve of the source of sound played in preset time period T, the increasing different according to the setting of different sizes of the amplitude curve
Beneficial coefficient.
Technical scheme provided in an embodiment of the present invention, when detecting that terminal device carries out source of sound broadcasting, obtain the sound
The information volume in source and the currently used volume of the terminal device, the source of sound is determined according to the information volume
Gain, if the gain and the volume meet default adjusting condition, the information volume of the source of sound is adjusted
Section, improves volume adjusting efficiency, reduces the power consumption of terminal device.
In a possible embodiment, the gain and the volume meet that default adjusting condition includes:
The gain is less than preset gain threshold value, and the volume is less than default volume threshold;
The adjustment module 103 is specifically used for:
It is adjusted according to gain of the default regulation algorithm to the source of sound.
In a possible embodiment, in addition to noise suppression module 104, it is used for:
After being adjusted according to gain of the default regulation algorithm to the source of sound, according to noise suppression algorithm, exchange
The audio signal obtained after section carries out noise filtering.
In a possible embodiment, the noise suppression module 104 is additionally operable to:
Before being adjusted according to gain of the default regulation algorithm to the source of sound, according to information volume determination pair
The noise amplitude value answered;
The noise amplitude value that will be greater than default noise amplitude is filtered out.
In a possible embodiment, the adjustment module 103 is additionally operable to:
After being adjusted according to gain of the default regulation algorithm to the source of sound, gain is played in the terminal device
During audio signal after regulation, if detecting distorsion signal, reduce the gain of the audio signal and/or reduce the end
The current volume of end equipment.
In a possible embodiment, the adjustment module 103 is additionally operable to:
After the gain to the source of sound is adjusted, the volume of the terminal device is adjusted.
In a possible embodiment, the adjustment module 103 is specifically used for:
The gain size of the source of sound gain-adjusted is determined, according to volume adjusting letter corresponding to gain size determination
Breath;
The volume of the terminal device is adjusted according to the volume adjusting information.
The present embodiment provides a kind of terminal device on the basis of the various embodiments described above, and Fig. 6 is that the embodiment of the present invention carries
The structural representation of a kind of terminal device supplied, as shown in fig. 6, the terminal device 200 includes:Memory 201, processor
(Central Processing Unit, CPU) 202, Peripheral Interface 203, RF (Radio Frequency, radio frequency) circuit 205,
Voicefrequency circuit 206, loudspeaker 211, power management chip 208, input/output (I/O) subsystem 209, touch-screen 212, other
Input/control devices 210 and outside port 204, these parts are led to by one or more communication bus or signal wire 207
Letter.
It should be understood that graphic terminal 200 is only an example of terminal device, and terminal device 200
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.
The terminal device for being used to open the rights management of application more that the present embodiment provides is described in detail below, should
Terminal device is by taking smart mobile phone as an example.
Memory 201, the memory 201 can be accessed by CPU202, Peripheral Interface 203 etc., and the memory 201 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 CPU202 and deposited by Peripheral Interface 203, the Peripheral Interface 203
Reservoir 201.
I/O subsystems 209, the I/O subsystems 209 can be by the input/output peripherals in equipment, such as touch-screen 212
With other input/control devicess 210, Peripheral Interface 203 is connected to.I/O subsystems 209 can include the He of display controller 2091
For controlling one or more input controllers 2092 of other input/control devicess 210.Wherein, one or more input controls
Device 2092 processed receives electric signal from other input/control devicess 210 or sends electric signal to other input/control devicess 210,
Other input/control devicess 210 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 2092 can with it is following any one be connected:Keyboard, infrared port,
The instruction equipment of USB interface and such as mouse.
Touch-screen 212, the touch-screen 212 are the input interface and output interface between user terminal and user, can
It can include figure, text, icon, video etc. to user, visual output depending on output display.
Display controller 2091 in I/O subsystems 209 receives electric signal from touch-screen 212 or sent out to touch-screen 212
Electric signals.Touch-screen 212 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 2091
The interaction of user interface object on touch-screen 212, that is, realize man-machine interaction, the user interface being shown on touch-screen 212
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 205, 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 205 receive and send RF letters
Number, RF signals are also referred to as electromagnetic signal, and RF circuits 205 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 205 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 206, it is mainly used in receiving voice data from Peripheral Interface 203, the voice data is converted into telecommunications
Number, and the electric signal is sent to loudspeaker 211.
Loudspeaker 211, for the voice signal for receiving mobile phone from wireless network by RF circuits 205, it is reduced to sound
And play the sound to user.
Power management chip 208, the hardware for being connected by CPU202, I/O subsystem and Peripheral Interface are powered
And power management.
The executable present invention of the volume adjustment device and terminal device of the terminal device provided in above-described embodiment is any real
The volume adjusting method for the terminal device that example is provided is applied, possesses and performs the corresponding functional module of this method and beneficial effect.Not
The ins and outs of detailed description in the above-described embodiments, reference can be made to the volume for the terminal device that any embodiment of the present invention is provided
Adjusting method.
The embodiment of the present invention also provides a kind of storage medium for including terminal device executable instruction, and the terminal device can
Execute instruction is used to perform a kind of volume adjusting method when by terminal device computing device, and this method includes:
When detecting that terminal device carries out source of sound broadcasting, the information volume of the source of sound and the terminal device are obtained
Currently used volume;
The gain of the source of sound is determined according to the information volume;
If the gain and the volume meet default adjusting condition, the information volume of the source of sound is carried out
Regulation.
In a possible embodiment, the gain and the volume meet that default adjusting condition includes:
The gain is less than preset gain threshold value, and the volume is less than default volume threshold;
The information volume to the source of sound be adjusted including:
It is adjusted according to gain of the default regulation algorithm to the source of sound.
In a possible embodiment, after being adjusted according to gain of the default regulation algorithm to the source of sound,
Also include:
According to noise suppression algorithm, noise filtering is carried out to the audio signal obtained after regulation.
In a possible embodiment, before being adjusted according to gain of the default regulation algorithm to the source of sound,
Also include:
According to noise amplitude value corresponding to information volume determination;
The noise amplitude value that will be greater than default noise amplitude is filtered out.
In a possible embodiment, after being adjusted according to gain of the default regulation algorithm to the source of sound,
Also include:
In the audio signal after the terminal device plays gain-adjusted, if detecting distorsion signal, institute is reduced
State the gain of audio signal and/or reduce the current volume of the terminal device.
In a possible embodiment, after the gain to the source of sound is adjusted, in addition to:
The volume of the terminal device is adjusted.
In a possible embodiment, the volume to the terminal device be adjusted including:
The gain size of the source of sound gain-adjusted is determined, according to volume adjusting letter corresponding to gain size determination
Breath;
The volume of the terminal device is adjusted according to the volume adjusting information.
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 method operation that executable instruction is not limited to the described above, can also carry out what any embodiment of the present invention was provided
Associative operation in volume adjusting method.
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:When detecting that terminal device carries out source of sound broadcasting, information volume and the terminal device for obtaining the source of sound are current The volume used;The gain of the source of sound is determined according to the information volume;If the gain and the volume meet default adjusting condition, the information volume of the source of sound is adjusted Section.
- 2. according to the method for claim 1, it is characterised in that the gain and the volume meet default adjustment bar Part includes:The gain is less than preset gain threshold value, and the volume is less than default volume threshold;The information volume to the source of sound be adjusted including:It is adjusted according to gain of the default regulation algorithm to the source of sound.
- 3. according to the method for claim 2, it is characterised in that enter according to gain of the default regulation algorithm to the source of sound After row regulation, in addition to:According to noise suppression algorithm, noise filtering is carried out to the audio signal obtained after regulation.
- 4. according to the method for claim 2, it is characterised in that enter according to gain of the default regulation algorithm to the source of sound Before row regulation, in addition to:According to noise amplitude value corresponding to information volume determination;The noise amplitude value that will be greater than default noise amplitude is filtered out.
- 5. according to the method for claim 2, it is characterised in that enter according to gain of the default regulation algorithm to the source of sound After row regulation, in addition to:In the audio signal after the terminal device plays gain-adjusted, if detecting distorsion signal, the sound is reduced The gain of frequency signal and/or reduce the current volume of the terminal device.
- 6. according to the method any one of claim 2-5, it is characterised in that be adjusted in the gain to the source of sound Afterwards, in addition to:The volume of the terminal device is adjusted.
- 7. according to the method for claim 6, it is characterised in that the volume to the terminal device is adjusted Including:The gain size of the source of sound gain-adjusted is determined, according to volume adjusting information corresponding to gain size determination;The volume of the terminal device is adjusted according to the volume adjusting information.
- A kind of 8. volume adjustment device, it is characterised in that including:Data obtaining module, for when detecting that terminal device carries out source of sound broadcasting, obtain the information volume of the source of sound with And the volume that the terminal device is currently used;Gain determining module, for determining the gain of the source of sound according to the information volume;Adjustment module, if meeting default adjusting condition for the gain and the volume, to the sound of the source of sound Amount information is adjusted.
- 9. a kind of terminal device, including:Processor, memory and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that realized described in the computing device during computer program such as any one of claim 1-7 institutes The volume adjusting method stated.
- A kind of 10. storage medium for including terminal device executable instruction, it is characterised in that the terminal device executable instruction As volume adjusting method during terminal device computing device for execution as any one of claim 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710711272.6A CN107566618B (en) | 2017-08-18 | 2017-08-18 | Volume adjusting method and device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710711272.6A CN107566618B (en) | 2017-08-18 | 2017-08-18 | Volume adjusting method and device, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107566618A true CN107566618A (en) | 2018-01-09 |
CN107566618B CN107566618B (en) | 2021-01-22 |
Family
ID=60976321
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710711272.6A Active CN107566618B (en) | 2017-08-18 | 2017-08-18 | Volume adjusting method and device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107566618B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020038373A1 (en) * | 2018-08-21 | 2020-02-27 | 青岛海信电器股份有限公司 | Volume adjustment method and device |
CN111049972A (en) * | 2019-11-20 | 2020-04-21 | 维沃移动通信有限公司 | Audio playing method and terminal equipment |
CN111443889A (en) * | 2020-03-24 | 2020-07-24 | 捷开通讯(深圳)有限公司 | Volume adjusting method and system, storage medium and terminal equipment |
CN112151053A (en) * | 2019-06-11 | 2020-12-29 | 北京京东尚科信息技术有限公司 | Speech enhancement method, system, electronic device and storage medium |
CN112333534A (en) * | 2020-09-17 | 2021-02-05 | 深圳Tcl新技术有限公司 | Noise elimination method and device, smart television system and readable storage medium |
WO2021129090A1 (en) * | 2019-12-27 | 2021-07-01 | 华为技术有限公司 | Volume adjustment method and system, and device |
CN113741855A (en) * | 2020-05-27 | 2021-12-03 | 青岛海信移动通信技术股份有限公司 | Audio playing method and terminal |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1753427A (en) * | 2004-09-20 | 2006-03-29 | 华为技术有限公司 | Device and method for automatically regulating mobile terminal loudness |
CN101067571A (en) * | 2007-06-18 | 2007-11-07 | 中兴通讯股份有限公司 | Acoustic automatic gaining effect testing method and system |
CN101478614A (en) * | 2009-01-19 | 2009-07-08 | 深圳华为通信技术有限公司 | Method, apparatus and communication terminal for adaptively tuning volume |
CN103746668A (en) * | 2013-12-31 | 2014-04-23 | 上海斐讯数据通信技术有限公司 | Sound volume control method and system |
CN104104800A (en) * | 2014-07-25 | 2014-10-15 | Tcl通讯(宁波)有限公司 | Method for adjusting volume output of mobile terminal according to environment noises and mobile terminal |
US20150031419A1 (en) * | 2013-07-23 | 2015-01-29 | Motorola Mobility Llc | Method and Device for Loudness Level Determination |
CN104348971A (en) * | 2014-03-10 | 2015-02-11 | 青岛智感信息技术有限公司 | Method for locking mobile phone earphone audio output sound volume |
CN104363510A (en) * | 2014-10-29 | 2015-02-18 | 深圳市金立通信设备有限公司 | Terminal |
CN105592222A (en) * | 2015-12-22 | 2016-05-18 | 努比亚技术有限公司 | Device and method for automatically adjusting volume of terminal |
CN106126164A (en) * | 2016-06-16 | 2016-11-16 | 广东欧珀移动通信有限公司 | A kind of sound effect treatment method and terminal unit |
CN106210879A (en) * | 2016-08-16 | 2016-12-07 | 微鲸科技有限公司 | intelligent volume control system and intelligent volume control method |
CN106210315A (en) * | 2016-07-12 | 2016-12-07 | 努比亚技术有限公司 | A kind of method for regulation of sound volume and mobile terminal |
WO2016197752A3 (en) * | 2016-03-08 | 2017-02-02 | 中兴通讯股份有限公司 | Cooperative playback volume adjustment method and device, and cooperative playback device |
JP2017076895A (en) * | 2015-10-15 | 2017-04-20 | キヤノン株式会社 | Audio signal processing device and method |
-
2017
- 2017-08-18 CN CN201710711272.6A patent/CN107566618B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1753427A (en) * | 2004-09-20 | 2006-03-29 | 华为技术有限公司 | Device and method for automatically regulating mobile terminal loudness |
CN101067571A (en) * | 2007-06-18 | 2007-11-07 | 中兴通讯股份有限公司 | Acoustic automatic gaining effect testing method and system |
CN101478614A (en) * | 2009-01-19 | 2009-07-08 | 深圳华为通信技术有限公司 | Method, apparatus and communication terminal for adaptively tuning volume |
US20150031419A1 (en) * | 2013-07-23 | 2015-01-29 | Motorola Mobility Llc | Method and Device for Loudness Level Determination |
CN103746668A (en) * | 2013-12-31 | 2014-04-23 | 上海斐讯数据通信技术有限公司 | Sound volume control method and system |
CN104348971A (en) * | 2014-03-10 | 2015-02-11 | 青岛智感信息技术有限公司 | Method for locking mobile phone earphone audio output sound volume |
CN104104800A (en) * | 2014-07-25 | 2014-10-15 | Tcl通讯(宁波)有限公司 | Method for adjusting volume output of mobile terminal according to environment noises and mobile terminal |
CN104363510A (en) * | 2014-10-29 | 2015-02-18 | 深圳市金立通信设备有限公司 | Terminal |
JP2017076895A (en) * | 2015-10-15 | 2017-04-20 | キヤノン株式会社 | Audio signal processing device and method |
CN105592222A (en) * | 2015-12-22 | 2016-05-18 | 努比亚技术有限公司 | Device and method for automatically adjusting volume of terminal |
WO2016197752A3 (en) * | 2016-03-08 | 2017-02-02 | 中兴通讯股份有限公司 | Cooperative playback volume adjustment method and device, and cooperative playback device |
CN106126164A (en) * | 2016-06-16 | 2016-11-16 | 广东欧珀移动通信有限公司 | A kind of sound effect treatment method and terminal unit |
CN106210315A (en) * | 2016-07-12 | 2016-12-07 | 努比亚技术有限公司 | A kind of method for regulation of sound volume and mobile terminal |
CN106210879A (en) * | 2016-08-16 | 2016-12-07 | 微鲸科技有限公司 | intelligent volume control system and intelligent volume control method |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020038373A1 (en) * | 2018-08-21 | 2020-02-27 | 青岛海信电器股份有限公司 | Volume adjustment method and device |
CN112151053A (en) * | 2019-06-11 | 2020-12-29 | 北京京东尚科信息技术有限公司 | Speech enhancement method, system, electronic device and storage medium |
CN112151053B (en) * | 2019-06-11 | 2024-04-16 | 北京汇钧科技有限公司 | Speech enhancement method, system, electronic device and storage medium |
CN111049972A (en) * | 2019-11-20 | 2020-04-21 | 维沃移动通信有限公司 | Audio playing method and terminal equipment |
CN111049972B (en) * | 2019-11-20 | 2021-04-27 | 维沃移动通信有限公司 | Audio playing method and terminal equipment |
WO2021129090A1 (en) * | 2019-12-27 | 2021-07-01 | 华为技术有限公司 | Volume adjustment method and system, and device |
CN111443889A (en) * | 2020-03-24 | 2020-07-24 | 捷开通讯(深圳)有限公司 | Volume adjusting method and system, storage medium and terminal equipment |
CN111443889B (en) * | 2020-03-24 | 2023-08-11 | 捷开通讯(深圳)有限公司 | Volume adjusting method and system, storage medium and terminal equipment thereof |
CN113741855A (en) * | 2020-05-27 | 2021-12-03 | 青岛海信移动通信技术股份有限公司 | Audio playing method and terminal |
CN113741855B (en) * | 2020-05-27 | 2023-10-31 | 青岛海信移动通信技术有限公司 | Audio playing method and terminal |
CN112333534A (en) * | 2020-09-17 | 2021-02-05 | 深圳Tcl新技术有限公司 | Noise elimination method and device, smart television system and readable storage medium |
CN112333534B (en) * | 2020-09-17 | 2023-11-14 | 深圳Tcl新技术有限公司 | Noise elimination method and device, intelligent television system and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107566618B (en) | 2021-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107566618A (en) | volume adjusting method, device, terminal device and storage medium | |
CN107526568A (en) | volume adjusting method, device, terminal device and storage medium | |
WO2017215657A1 (en) | Sound effect processing method, and terminal device | |
CN107465824A (en) | volume adjusting method, device, mobile terminal and storage medium | |
CN107040660A (en) | Control method, device and the mobile terminal of mobile terminal playing volume | |
CN111033614B (en) | Volume adjusting method and device, mobile terminal and storage medium | |
JP6785907B2 (en) | How to arrange wireless speakers, wireless speakers and terminal devices | |
CN107526570A (en) | volume adjusting method, device, terminal device and storage medium | |
CN107479852B (en) | Volume adjusting method, device, terminal device and storage medium | |
CN107436751A (en) | volume adjusting method, device, terminal device and storage medium | |
CN103746668A (en) | Sound volume control method and system | |
CN106713653A (en) | Audio/video playing control method and device, and terminal | |
CN107506168A (en) | volume adjusting method, device, terminal device and storage medium | |
CN107483734A (en) | volume adjusting method, device, terminal device and storage medium | |
CN107508983A (en) | volume adjusting method, device, storage medium and terminal device | |
CN107479851B (en) | Volume adjusting method, device, terminal device and storage medium | |
US11039246B2 (en) | Volume adjusting method, device, and terminal device | |
CN112883222B (en) | Song recommendation playing method, electronic equipment and computer readable storage medium | |
CN107506170A (en) | volume adjusting method, device, terminal device and storage medium | |
CN107506169A (en) | volume adjusting method, device, terminal device and storage medium | |
CN110799936B (en) | Volume adjusting method, volume adjusting device, terminal equipment and storage medium | |
CN113613145B (en) | Noise reduction processing method and related device | |
CN107404592A (en) | volume adjusting method, device, storage medium and mobile terminal | |
KR20080071860A (en) | Method and apparatus for controlling automatically sound level in mobile sounder |
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 | ||
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. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |