CN107124149A - A kind of method for regulation of sound volume, device and equipment - Google Patents

A kind of method for regulation of sound volume, device and equipment Download PDF

Info

Publication number
CN107124149A
CN107124149A CN201710312351.XA CN201710312351A CN107124149A CN 107124149 A CN107124149 A CN 107124149A CN 201710312351 A CN201710312351 A CN 201710312351A CN 107124149 A CN107124149 A CN 107124149A
Authority
CN
China
Prior art keywords
audio signal
frequency
volume
played
gain factor
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
Application number
CN201710312351.XA
Other languages
Chinese (zh)
Other versions
CN107124149B (en
Inventor
邓滨
宋晨枫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Xiaodu Technology Co Ltd
Original Assignee
Beijing Fish In Home Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Fish In Home Technology Co Ltd filed Critical Beijing Fish In Home Technology Co Ltd
Priority to CN201710312351.XA priority Critical patent/CN107124149B/en
Publication of CN107124149A publication Critical patent/CN107124149A/en
Application granted granted Critical
Publication of CN107124149B publication Critical patent/CN107124149B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/20Automatic control
    • H03G3/30Automatic control in amplifiers having semiconductor devices
    • H03G3/32Automatic control in amplifiers having semiconductor devices the control being dependent upon ambient noise level or sound level

Landscapes

  • Circuit For Audible Band Transducer (AREA)
  • Control Of Amplification And Gain Control (AREA)

Abstract

The embodiment of the invention discloses a kind of method for regulation of sound volume, device and equipment.This method includes:Ambient noise is obtained by microphone;If the volume of the ambient noise reaches default volume threshold, triggering volume gain adjustment;According to the audio frequency characteristic of audio signal to be played, the volume gain factor of the audio signal of at least one frequency range in the audio signal to be played is adjusted;Volume gain adjustment is carried out using audio signal described in the volume gain factor pair of each frequency range.By above-mentioned technical proposal, the effect of outside noisy environment can more intelligently be matched by having reached the outer playback amount of intelligent hardware devices, improve Consumer's Experience.

Description

A kind of method for regulation of sound volume, device and equipment
Technical field
The present embodiments relate to sound control technology, more particularly to a kind of method for regulation of sound volume, device and equipment.
Background technology
For the intelligent hardware devices with microphone and loudspeaker, controlling loudspeaker is typically provided with its operation interface The outer device for putting volume.Under normal circumstances, the outer playback amount of loudspeaker by equipment hardware design and Design of System Software To determine, user can carry out volume adjusting according to self-demand.
But, when intelligent hardware devices are in noisy noise circumstance, for example in the surging department stores of the stream of people, specially Sales counter is sold using intelligent hardware devices to carry out product function demonstration, the situation of two kinds of influence Consumer's Experiences usually occurs.The One, sound volume control device is adjusted to arrive max volume, but in the case of outside noise jamming, outside intelligent hardware devices Sound reproduction sound is still difficult to not hear;Second, when max volume is arrived in sound volume control device regulation, although outer sound reproduction sound can resist outside Adverse noise influence so that user can not hear, but when external environmental noise dies down or disappears, outer playback amount can show again It is excessively noisy, at this moment, it is necessary to which frequent manual adjustment device volume matches the frequent change of external environmental noise, to obtain Preferably Consumer's Experience, is operated cumbersome.
The content of the invention
The present invention provides a kind of method for regulation of sound volume, device and equipment, to realize the outer playback amount energy of intelligent hardware devices Noisy environment outside enough more intelligent matchings, lifts Consumer's Experience.
In a first aspect, the embodiments of the invention provide a kind of method for regulation of sound volume, including:
Ambient noise is obtained by microphone;
If the volume of the ambient noise reaches default volume threshold, triggering volume gain adjustment;
According to the audio frequency characteristic of audio signal to be played, at least one frequency range in the audio signal to be played is adjusted Audio signal the volume gain factor;
Volume gain adjustment is carried out using audio signal described in the volume gain factor pair of each frequency range.
Alternatively, the audio frequency characteristic according to audio signal to be played, is adjusted in the audio signal to be played at least The volume gain factor of the audio signal of one frequency range includes:
According to the audio frequency characteristic and default frequency range division rule of audio signal to be played, the audio to be played is determined At least one frequency range of signal, is used as frequency range to be adjusted;
According to the band characteristic corresponding relation between the frequency range to be adjusted and default frequency range, the frequency range to be adjusted is adjusted Audio signal the volume gain factor.
Alternatively, if reaching default volume threshold, triggering volume gain adjustment in the volume of the ambient noise Afterwards, in addition to:
Judge whether the signal amplitude of the audio signal to be played is less than default data signal threshold value;
If so, the then volume and the predetermined noise grade criteria for classifying according to the ambient noise, determines that environment is made an uproar Sound grade;
According to the environmental noise level and the mapping relations of the default volume gain factor, the audio to be played is adjusted The volume gain factor of at least one of the signal frequency range.
Alternatively, the audio frequency characteristic according to audio signal to be played, is adjusted in the audio signal to be played at least The volume gain factor of the audio signal of one frequency range includes:
According to the noise frequency characteristic and the audio frequency characteristic of audio signal to be played of the ambient noise, adjustment is described The volume gain factor of the audio signal of at least one frequency range in audio signal to be played.
Further, it is special according to the noise frequency characteristic of the ambient noise and the audio frequency of audio signal to be played Property, adjusting the volume gain factor of the audio signal of at least one frequency range in the audio signal to be played includes:
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is middle low frequency, then to described to be played The volume gain factor of the audio signal of middle low-frequency range in audio signal is raised;
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is medium-high frequency, then to described to be played The volume gain factor of the audio signal of medium-high frequency section in audio signal is raised;
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is full range, then to the sound to be played The volume gain factor of the audio signal of medium-high frequency section in frequency signal is raised, and the volume to the audio signal of low-frequency range increases The beneficial factor is lowered or kept constant;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is middle low frequency, then to described The volume gain factor of the audio signal of middle low-frequency range in audio signal to be played is raised;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is medium-high frequency, then to described The volume gain factor of the audio signal of medium-high frequency section in audio signal to be played is raised;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is full range, then is treated to described The volume gain factor of full frequency band in playing audio signal is raised.
Alternatively, the noise frequency characteristic and the audio frequency characteristic of audio signal to be played according to the ambient noise, Adjusting the volume gain factor of the audio signal of at least one frequency range in the audio signal to be played includes:
When the audio signal to be played is voice, and the noise frequency characteristic is middle low frequency, in the voice The volume gain factor of the audio signal of middle low-frequency range is raised;
When the audio signal to be played is absolute music, and the noise frequency characteristic is middle low frequency, to the absolute music In the volume gain factor of audio signal of medium-high frequency section raised;
When the audio signal to be played is pop, and the noise frequency characteristic is middle low frequency, to the pop In the volume gain factor of audio signal of medium-high frequency section raised, the volume gain factor of the audio signal of middle low-frequency range Keep constant, the volume gain factor of the audio signal of low-frequency range and high band is lowered;
When the audio signal to be played is rock music, and the noise frequency characteristic is middle low frequency, to the rock music In the volume gain factor of audio signal of middle low-frequency range raised.
Second aspect, the embodiment of the present invention additionally provides a kind of volume adjusting apparatus, and the device includes:
Ambient noise acquisition module, for obtaining ambient noise by microphone;
Gain tuning trigger module, if the volume for the ambient noise reaches default volume threshold, triggers volume Gain tuning;
First gain factor adjusting module, for the audio frequency characteristic according to audio signal to be played, is treated described in adjustment The volume gain factor of the audio signal of the frequency range of at least one in playing audio signal;
Gain regulation module, volume gain tune is carried out for audio signal described in the volume gain factor pair using each frequency range It is whole.
Alternatively, above-mentioned first gain factor adjusting module includes:
Frequency range determination sub-module to be adjusted, draws for the audio frequency characteristic and default frequency range according to audio signal to be played Divider then, determines at least one frequency range of the audio signal to be played, is used as frequency range to be adjusted;
First gain factor adjusts submodule, for according to the band characteristic between the frequency range to be adjusted and default frequency range Corresponding relation, adjusts the volume gain factor of the audio signal of the frequency range to be adjusted.
Alternatively, on the basis of said apparatus, the device also includes:Second gain factor adjusting module, described second Gain factor adjusting module includes:
Signal amplitude judging submodule, if for reaching default volume threshold in the volume of the ambient noise, Trigger after volume gain adjustment, judge whether the signal amplitude of the audio signal to be played is less than default data signal door Limit value;
Noise grade determination sub-module, is divided for the volume according to the ambient noise and predetermined noise grade Standard, determines environmental noise level;
Second gain factor adjusts submodule, for according to the environmental noise level and the default signal gain factor Mapping relations, adjust the gain factor of at least one frequency range of the audio signal to be played.
Alternatively, above-mentioned first gain factor adjusting module also includes:
3rd gain factor adjusts submodule, for the noise frequency characteristic according to the ambient noise and audio to be played The audio frequency characteristic of signal, adjust the volume gain of the audio signal of at least one frequency range in the audio signal to be played because Son.
Further, above-mentioned 3rd gain factor adjustment submodule specifically for:
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is middle low frequency, then to described to be played The volume gain factor of the audio signal of middle low-frequency range in audio signal is raised;
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is medium-high frequency, then to described to be played The volume gain factor of the audio signal of medium-high frequency section in audio signal is raised;
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is full range, then to the sound to be played The volume gain factor of the audio signal of medium-high frequency section in frequency signal is raised, and the volume to the audio signal of low-frequency range increases The beneficial factor is lowered or kept constant;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is middle low frequency, then to described The volume gain factor of the audio signal of middle low-frequency range in audio signal to be played is raised;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is medium-high frequency, then to described The volume gain factor of the audio signal of medium-high frequency section in audio signal to be played is raised;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is full range, then is treated to described The volume gain factor of full frequency band in playing audio signal is raised.
Alternatively, above-mentioned 3rd gain factor adjustment submodule also particularly useful for:
When the audio signal to be played is voice, and the noise frequency characteristic is middle low frequency, in the voice The volume gain factor of the audio signal of middle low-frequency range is raised;
When the audio signal to be played is absolute music, and the noise frequency characteristic is middle low frequency, to the absolute music In the volume gain factor of audio signal of medium-high frequency section raised;
When the audio signal to be played is pop, and the noise frequency characteristic is middle low frequency, to the pop In the volume gain factor of audio signal of medium-high frequency section raised, the volume gain factor of the audio signal of middle low-frequency range Keep constant, the volume gain factor of the audio signal of low-frequency range and high band is lowered;
When the audio signal to be played is rock music, and the noise frequency characteristic is middle low frequency, to the rock music In the volume gain factor of audio signal of middle low-frequency range raised.
The third aspect, the embodiment of the present invention additionally provides a kind of equipment, and the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
Microphone, for gathering ambient noise;
Loudspeaker, for playing media information;
When one or more of programs are by one or more of computing devices so that one or more of processing Device realizes any of embodiment of the present invention method for regulation of sound volume.
The embodiment of the present invention obtains ambient noise by microphone;Default volume threshold is reached in the volume of the ambient noise During value, triggering volume gain adjustment;According to the audio frequency characteristic of audio signal to be played, the audio signal to be played is adjusted In at least one frequency range audio signal the volume gain factor;Using audio signal described in the volume gain factor pair of each frequency range Carry out volume gain adjustment.Solve the intelligent hardware devices in outside noisy environment outer playback amount adjustment not enough automation, Intelligentized problem, the effect of outside noisy environment can more intelligently be matched by having reached the outer playback amount of intelligent hardware devices, Improve Consumer's Experience.
Brief description of the drawings
Fig. 1 is a kind of flow chart of method for regulation of sound volume in the embodiment of the present invention one;
Fig. 2 is that the intelligent hardware devices in the embodiment of the present invention one carry out the process schematic put outside audio signal;
Fig. 3 is a kind of flow chart of method for regulation of sound volume in the embodiment of the present invention two;
Fig. 4 is the time-domain signal result carried out for pop music before and after volume gain adjustment in the embodiment of the present invention two Schematic diagram;
Fig. 5 is the frequency response curve carried out for pop music before and after volume gain adjustment in the embodiment of the present invention two Comparison diagram;
Fig. 6 is a kind of flow chart of method for regulation of sound volume in the embodiment of the present invention three;
Fig. 7 is the time-domain signal result that volume gain adjustment is carried out based on ambient noise characteristic in the embodiment of the present invention three Schematic diagram;
Fig. 8 is the time-domain signal exemplary plot for carrying out volume gain Adjusted Option selection in the embodiment of the present invention three;
Fig. 9 is a kind of flow chart of method for regulation of sound volume in the embodiment of the present invention four;
Figure 10 is a kind of structural representation of volume adjusting apparatus in the embodiment of the present invention five;
Figure 11 is a kind of structural representation of equipment in the embodiment of the present invention six.
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 only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is a kind of flow chart for method for regulation of sound volume that the embodiment of the present invention one is provided, and the present embodiment is applicable to The situation of audio external play is carried out in noisy noise circumstance, this method can perform by volume adjusting apparatus, the device can be with Realized by software and/or hardware, be generally configured in pickup function and put outside in the equipment of media information function, for example Typically there are the intelligent hardware devices of microphone and loudspeaker.
Referring to Fig. 2, the intelligent hardware devices 200 in the embodiment of the present invention are first by residing for the capture device of microphone 201 The external environmental noise 21 of environment, obtains the analog signal 22 of ambient noise, and the analog signal 12 passes through analog-digital converter 202, Be converted to digital noise signal 23.Afterwards, 203 pairs of the volume adjusting apparatus digital noise signal 23 carries out noise measuring and estimation At least one of in processing, volume, environmental noise level or the ambient noise frequency characteristic to obtain ambient noise, it is used as noise Estimated result 24;And using the noise estimated result 24 of acquisition and audio signal 25 to be played as input signal, to sound to be played Frequency signal 25 carries out volume gain adjustment processing, the audio signal after being adjusted, i.e. target audio signal 26.Target audio is believed Numbers 26 are converted to simulated target audio signal 27 by digital analog converter 204 again, and are broadcast target audio 28 by loudspeaker 205 It is put into external environment condition.
Referring to Fig. 1, the method for regulation of sound volume in the present embodiment specifically includes following steps:
S110, ambient noise obtained by microphone.
Pickup is carried out using the microphone of equipment, ambient noise is obtained.It should be noted that what ambient noise here referred to It is a wide range of interior ambient noise sound of equipment position, the voice not comprising the people nearer apart from equipment was embodied Cheng Zhong, can be set nearer voice by distance and is filtered out by the filter type of ambient noise, is obtained final environment and is made an uproar Sound.
If S120, the volume of the ambient noise reach default volume threshold, triggering volume gain adjustment.
Wherein, default volume threshold refers to noise ration threshold value set in advance, its be judge noise volume whether Reach the volume cut off value for the audibility that can have influence on the outer playback frequency of equipment.The default volume threshold can be set as generally " quiet environment " sound pressure level, such as 40 decibels (dB) can also carry out self-defined setting, herein according to practical application situation It is not limited.
Noise energy statistics is carried out to the ambient noise that is obtained in S110, noise energy statistics is obtained, such as can be with It is the volume of ambient noise, noise grade or noise frequency characteristic that grade classification is carried out to noise energy etc..Then, will The ambient noise volume of acquisition is compared with default volume threshold, when ambient noise volume is more than default volume threshold, is said Bright ambient noise now influences whether that the outer of audio signal to be played puts audibility, just the adjustment of triggering volume gain, with right Audio signal to be played carries out volume gain adjustment, i.e. triggering performs S130.Conversely, when ambient noise volume is less than default volume During threshold value, illustrate that ambient noise now can't influence the outer of audio signal to be played to put audibility, just do not trigger volume Gain tuning, playing audio signal is not treated and carries out extra processing.
As long as it should be noted that the noise energy statistical method in the present embodiment can obtain noise energy statistics , it can be periodicity root mean square (Root Meam Square, RMS) statistical method or other noise energies Statistical method, is not limited herein.
S130, the audio frequency characteristic according to audio signal to be played, are adjusted at least one in the audio signal to be played The volume gain factor of the audio signal of individual frequency range.
It is determined that need to treat after playing audio signal carries out volume gain adjustment, treat playing audio signal and divided Analysis, obtains its audio frequency characteristic.According to the audio frequency characteristic, audio signal to be played is subjected to drawing at least one frequency range Point, the sound of the audio signal of at least one above-mentioned frequency range can be determined according to the volume gain factor regulation rule of setting afterwards The flow gain factor.
It should be appreciated that frequency range division has also been carried out to above-mentioned audio signal to be played in the present embodiment, can be according to reality Border demand carries out frequency range division, for example, preferably individually handled the frequency range for being different from ambient noise, or by sound to be played The frequency range given prominence to the key points is needed individually to be handled in frequency.
S140, using described in the volume gain factor pair of each frequency range audio signal carry out volume gain adjustment.
After the volume gain factor of at least one frequency range is obtained, it is possible to using each frequency range volume gain because Son carries out volume gain adjustment to the audio signal to be played of corresponding band, to enable the audio signal to be played preferably Outside noisy environment where matching unit.Such as by the audio signal of each frequency range and corresponding volume gain fac-tor, really Make the audio signal and carry out the exports audio signal after volume gain adjustment, i.e. target audio signal.
The technical scheme of the present embodiment, ambient noise is obtained by microphone;Reached in the volume of the ambient noise pre- If during volume threshold, triggering volume gain adjustment;According to the audio frequency characteristic of audio signal to be played, adjust described to be played The volume gain factor of the audio signal of the frequency range of at least one in audio signal;Using described in the volume gain factor pair of each frequency range Audio signal carries out volume gain adjustment.The outer playback amount adjustment for solving the intelligent hardware devices in outside noisy environment is inadequate Automation, intelligentized problem, outside noisy environment can more intelligently be matched by having reached the outer playback amount of intelligent hardware devices Effect, improve Consumer's Experience.
Embodiment two
Fig. 3 is a kind of flow chart for method for regulation of sound volume that the embodiment of the present invention two is provided, and the present embodiment is in above-mentioned implementation On the basis of example, to " according to the audio frequency characteristic of audio signal to be played, adjusting at least one in the audio signal to be played The volume gain factor of the audio signal of individual frequency range " has carried out further optimization.Wherein, it is same as the previously described embodiments or corresponding The explanation of term, is repeated no more in the present embodiment.
Illustrated with reference to Fig. 3 method for regulation of sound volume provided the embodiment of the present invention two, the method for the present embodiment Including:
S210, ambient noise obtained by microphone.
If S220, the volume of the ambient noise reach default volume threshold, triggering volume gain adjustment.
S230, the audio frequency characteristic according to audio signal to be played and default frequency range division rule, it is determined that described wait to broadcast At least one frequency range of audio signal is put, frequency range to be adjusted is used as.
Wherein, the rule that frequency range division rule refers to progress frequency range division set in advance is preset, it can be basis The Auditory Perception frequency sensitivity of human ear carries out frequency range division or drawn according to the frequency range division rule of music field Point, customized frequency range division rule is can also be, this is not specifically limited.Exemplarily, in order to preferably match human ear Auditory perception, can carry out the frequency range division rule of frequency range division, specifically using the Auditory Perception frequency sensitivity based on human ear Frequency range division rule be shown in Table 1.
The frequency range division rule of Auditory Perception frequency sensitivity of the table 1 based on human ear
Specifically, according to the frequency characteristic of audio signal to be played, according to the default frequency range division rule in table 1, treat Playing audio signal carries out frequency range division, determines at least one frequency range of audio signal to be played, is used as frequency range to be adjusted.
S240, according to the band characteristic corresponding relation between the frequency range to be adjusted and default frequency range, wait to adjust described in adjustment The volume gain factor of the audio signal of whole frequency range.
Wherein, default frequency range is the frequency range numbering 1-5 in the frequency range determined according to default frequency range division rule, such as table 1 Frequency range be the Auditory Perception frequency sensitivity based on human ear the corresponding default frequency range of frequency range division rule.
After determining frequency range to be adjusted, according between the band characteristic of the band characteristic of frequency range to be adjusted and default frequency range Corresponding relation, determine the volume gain factor of the audio signal of each frequency range in frequency range to be adjusted.It should be noted that During the volume gain factor for adjusting each frequency range, the division numbers of frequency range can be increased between each frequency range, or The volume gain factor of each frequency range is set to the numerical value of segmented, or adjusted using other gradual change type volume gain factors Perfect square formula, to ensure the continuity and flatness of each frequency band audio signal volume Gain tuning.
Such as, audio signal to be played is pop music, determines that this waits to broadcast according to the frequency range division rule of table 1 in S230 The frequency range to be adjusted for putting audio signal corresponds to the frequency range that the intermediate frequency segment number of table 1 is 1-5.The band characteristic of frequency range to be adjusted shows Wherein need to protrude the frequency characteristic that frequency range is preset in the frequency range where voice and musical instrument, the table of comparisons 1, it is known that, it is necessary to strengthen frequency Segment number is the audio signal of the frequency range of 3 and 4 (specific frequency is 4K~16KHz), that is, needs to raise the sound of 4K~16KHz frequencies The volume gain factor of frequency signal;Frequency range numbering is 2, and the volume gain factor of frequency range of (specific frequency is 500~4KHz) can be with Keep constant;And the frequency range for being 1 (specific frequency is less than 500Hz) and 5 (specific frequency is more than 16KHz) is numbered for frequency range The volume gain factor then need to lower, to cause audio signal to be played stable, clear.
It should be noted that being the frequency characteristic that audio signal to be played is determined with music type in said process. In addition to this it is possible to determine the frequency characteristic of audio signal to be played using the intelligent algorithm of such as machine learning, herein It is intended only as a citing to illustrate, this is not specifically limited.
S250, using described in the volume gain factor pair of each frequency range audio signal carry out volume gain adjustment.
Here still so that above-mentioned audio signal to be played is pop music as an example, to the method for regulation of sound volume in the present embodiment Illustrate.Referring to Fig. 4, it is assumed that the volume of ambient noise 410 is lasting larger, i.e., for the whole of audio signal 420 to be played Reproduction time, external environmental noise has reached the level of triggering volume gain adjustment.Utilize the volume adjustment in the present embodiment Method treats playing audio signal 420 and carries out volume gain adjustment, obtains target audio signal 430.By the time-domain signal in Fig. 4 Oscillogram can be seen that the time-domain signal amplitude of target audio signal 430 and the time-domain signal amplitude of audio signal to be played 420 Compare, not too many difference, also reach equipment maximum signal amplitude value 41 and equipment minimum signal width in the absence of because of signal amplitude Peak clipping phenomenon caused by value 42.
Referring to Fig. 5, by the target frequency response curve 530 of target audio signal 430 and the original of audio signal 420 to be played Beginning frequency response curve 520 is contrasted, it can be seen that the low frequency band that target audio signal 430 is less than 500Hz to frequency is believed Number appropriate suppression is done;Frequency is kept being basically unchanged for 500~4KHz intermediate-frequency band signal;To frequency be 4K~ 16KHz medium-high frequency frequency band signals, which have been done, significantly to be strengthened, and enhancing amplitude is about 8~15dB;It is more than 16KHz high frequency to frequency Frequency band signals equally strengthen, but smoothly progressively reduce enhancing amplitude;It is more than 19.5KHz ultra-high frequency band to frequency Signal has done appropriate suppression, and suppression amplitude is about 4~6dB.By the target after the volume gain adjustment in the present embodiment The subjective sense of hearing of audio signal 430 can feel more sharp, bright, be more easy to perceive in a noisy environment, the overall experience meeting of user It is significantly better than audio signal 420 to be played.
The technical scheme of the present embodiment, ambient noise is obtained by microphone;Reached in the volume of the ambient noise pre- If during volume threshold, triggering volume gain adjustment;Divided according to the audio frequency characteristic of audio signal to be played and default frequency range Rule, determines at least one frequency range of the audio signal to be played, is used as frequency range to be adjusted;And according to the frequency range to be adjusted And the band characteristic corresponding relation between default frequency range, adjust the volume gain factor of the audio signal of the frequency range to be adjusted; Volume gain adjustment is carried out using audio signal described in the volume gain factor pair of each frequency range.Solve in outside noisy environment The adjustment of outer playback amount not enough automation, the intelligentized problem of intelligent hardware devices, are realized based on audio signal to be played not With frequency range frequency characteristic carry out volume gain adjustment so that the outer playback amount of intelligent hardware devices can more adaptively, The effect of outside noisy environment is more intelligently matched, Consumer's Experience is further improved.
Embodiment three
Fig. 6 is a kind of flow chart for method for regulation of sound volume that the embodiment of the present invention three is provided, and the present embodiment is in above-mentioned implementation On the basis of example, the process that volume gain factor adjustment is carried out based on environmental noise level is added.Wherein, with above-described embodiment The explanation of identical or corresponding term, is repeated no more in the present embodiment.
Illustrated with reference to Fig. 6 method for regulation of sound volume provided the embodiment of the present invention three, the method for the present embodiment Including:
S310, ambient noise obtained by microphone.
If S320, the volume of the ambient noise reach default volume threshold, triggering volume gain adjustment.
S330, judge the audio signal to be played signal amplitude whether be less than default data signal threshold value.
Wherein, default data signal threshold value refers to the maximum amplitude of data signal set in advance and most small size Value, for judging whether that the volume gain factor can be adjusted according to noise ration, for example, be able to can be responded according to equipment Maximum signal amplitude value and minimum signal amplitude are set.Because the signal amplitude more than equipment maximum/minimum signal amplitude can quilt Filter out, and then the broadcasting tonequality and auditory effect of outer playback frequency can be influenceed, so in order to ensure the normal of target audio signal Play, can be the maximum and the number of minimum signal amplitude absolute value less than equipment by default data signal threshold settings Value, specific numerical value can be with sets itself.
After S320 determines that triggering volume gain adjusts, the signal amplitude of audio signal to be played can be analyzed, and The signal amplitude is compared with default data signal threshold value.If signal amplitude is equal to or more than default numeral Signal threshold value, then perform S360.If signal amplitude is less than default data signal threshold value, then perform S340.
S340, the volume according to the ambient noise and the predetermined noise grade criteria for classifying, determine ambient noise Grade.
Wherein, the predetermined noise grade criteria for classifying refers to carrying out the mark of noise grade division according to noise ration Standard, its can comprising noise grade divide foundation and division numbers, can be experience setting the criteria for classifying or Using the criteria for classifying of the intelligent algorithm adaptive setting of such as machine learning, can voluntarily it be set according to specific application scenarios It is fixed.The criteria for classifying of above-mentioned adaptive setting needs equipment first in corresponding external environmental noise learning or training a period of time (such as 30-60 minutes), and the noise characteristic of the external environmental noise gathered within this period is analyzed, it is special according to the noise Property determines the noise grade criteria for classifying.
It should be noted that division numbers for noise grade, it is necessary to according to the actually located usage scenario of equipment with And ambient noise characteristic comes specifically chosen.Grade classification quantity is more, and volume gain adjustment is more frequent, and target audio volume is put outside Change it is also more smooth, but the enhancing of volume and the change of decrease can seem that comparison is slow, less timely;Conversely, grade is drawn Dosis refracta is fewer, and volume gain adjustment is more rare, and volume change can respond very fast, but the outer change for putting target audio volume Change the sensation for having mutation.For example, when equipment be in the noise type such as indoor mall and noise grade it is substantially constant over or When changing slowly similar site, occur or suddenly disappear because the noise in such place will not happen suddenly, it is possible to By noise grade division numbers set it is more so that the adjustment of outer playback amount seems smooth.And when equipment is in outdoor field During institute, because such place has the burst noise of some high intensity, such as the vehicle crossed, it is possible to by noise grade It is few that division numbers are set so that outer sound reproduction sound can with the change of burst noise quick response.Work as intense noise When occurring suddenly, audio volume is put outside and is lifted therewith so that user is unlikely to not hearing in burst of noise puts audio content outside And lose and listen to information;When intense noise suddenly disappears, audio volume is put outside and is weakened therewith so that user will not feel making an uproar Sound switchs to still think that outer playback frequency is excessively loud ear-piercing under relatively quiet environment after having disappeared.
Specifically, it is assumed that the predetermined noise grade criteria for classifying is empirically set, as shown in table 2.According in table 2 The noise grade criteria for classifying and S320 in ambient noise volume, ambient noise is divided into corresponding 4 grades, that is, determined Environmental noise level, is designated as En, wherein n representatives are to the detection cycle of ambient noise, and the detection in each cycle is to obtain a ring Border noise grade E.Be in the present embodiment real-time continuous ambient noise is detected, and synchronously treat playing audio signal Carry out volume gain adjustment.
The noise grade criteria for classifying and the volume gain factor table of comparisons of the experience of table 2 setting
Noise grade En Noise energy/dB Ambient noise type Volume gain factor-alpha
0 <40 Quiet environment 1.0
1 40~60 Small noise environment 2.8
2 60~80 Medium noise circumstance 3.7
3 >80 Strong noise environment 5.5
S350, according to the environmental noise level and the mapping relations of the default volume gain factor, wait to broadcast described in adjustment Put the volume gain factor of at least one frequency range of audio signal.
Wherein, the mapping relations of the default volume gain factor refer to that the volume gain factor set in advance is made an uproar with environment What one-to-one between sound grade was reflected penetrates relation, and it can be the as shown in table 2 look-up table pre-established or in advance Certain mapping relations formula set up.
Specifically, mapping relations that can be according to the default volume gain factor in table 2, determine the environment in S310 Under influence of noise, the volume gain factor-alpha of the corresponding each frequency range of audio signal to be playedj(j ∈ [0,3]), is performed afterwards S370.Wherein, α0Value be constantly equal to 1, it is meant that environmental noise level be 0 (under quiet environment) when, audio signal to be played Volume gain adjustment need not be carried out;Other αjThe value of (j ∈ (0,3]) is greater than 1.0 numerical value, and it must meet α12 <…<αj, represent that environmental noise level is higher, the volume gain adjustment of audio signal to be played is bigger.
S360, the audio frequency characteristic according to audio signal to be played, are adjusted at least one in the audio signal to be played The volume gain factor of the audio signal of individual frequency range.
The volume of each frequency range of audio signal to be played is adjusted based on the audio frequency characteristic of audio signal to be played Gain factor, performs S370 afterwards.
S370, using described in the volume gain factor pair of each frequency range audio signal carry out volume gain adjustment.
Illustrated with the processing of actual audio signal to be played, the volume gain factor adjustment side constituted to S340 and S350 Case (being designated as scheme one) carries out analysis contrast.Referring to Fig. 7, ambient noise 710 is the change according to its energy size in change 7 noise intervals can be divided into.Then, with the noise grade criteria for classifying in above-mentioned table 2 and volume gain factor map relation, Grade classification is carried out to ambient noise 710, and obtains the volume gain factor of corresponding 7 frequency ranges of audio signal to be played, such as Shown in table 3.
The interval correlation analysis of corresponding 7 noises and calculating parameter in the Fig. 7 of table 3
Volume gain adjustment is carried out using the volume gain factor pair audio signal 720 to be played in table 3, target sound is obtained Frequency signal 730.It can be seen from figure 7 that audio signal 720 to be played is to maintain invariable energy level substantially, and pass through After the volume gain adjustment for crossing scheme one, the target audio signal 730 changed with different-energy is formd.By target audio The time domain beamformer of signal 730 is visible, under strong noise environment, the gain improving of the target audio after being handled by scheme one Clearly so that its volume increases, and mesh is put so as to make user not hear the outer of equipment under the influence of adverse noise Mark with phonetic symbols frequency.
It should be noted that above two volume gain factor Adjusted Option, i.e. scheme one and S360 volume gain because Sub- Adjusted Option (being designated as scheme two), both can be used alone, can also be used in combination, when being used in combination, scheme one and side The priority of case two is unfettered using order.That is, in the present embodiment, S360 can not be performed;Or do not perform S340 And S350;Or perform all steps, but execution sequence can according to above-mentioned steps order, can also be suitable with above-mentioned steps Sequence is opposite.Above-mentioned that setting can be voluntarily selected according to practical situations, the integral principle for voluntarily selecting setting is at guarantee Signal can be more easy to perceive in a noisy environment after reason, and without the distortion (such as peak clipping anomaly) for having a strong impact on experience.
For example, referring to Fig. 8, when audio signal 820 to be played inherently has higher energy magnitude, its time domain Signal amplitude closely or reaches default data signal threshold value 81.External ambient noise signal in figure Under the influence of 810, the processing of Utilization plan one obtains target audio signal 830.For first paragraph ambient noise signal 811, target The first paragraph target audio signal 831 of audio signal 830 has peak clipping phenomenon after volume gain adjustment;And for worse Second segment ambient noise signal 812, the second segment target audio signal 832 of target audio signal 830 is after volume gain adjustment More serious peak clipping phenomenon will be produced.Audio signal after peak clipping can produce distorsion and other effects, have a strong impact on tonequality And audio experience.Therefore for similar original audio signal amplitude just close to the to be played of default data signal threshold value 81 Audio signal, and do not apply to scheme one to handle, but to be handled using scheme two.
The technical scheme of the present embodiment, ambient noise is obtained by microphone;Reached in the volume of the ambient noise pre- If during volume threshold, triggering volume gain adjustment;It is less than default data signal door in the signal amplitude of audio signal to be played During limit value, according to the volume and the predetermined noise grade criteria for classifying of the ambient noise, environmental noise level is determined, and According to the environmental noise level and the mapping relations of the default volume gain factor, the audio signal to be played is adjusted extremely The volume gain factor of a few frequency range;And/or, according to the audio frequency characteristic of audio signal to be played, adjustment is described The volume gain factor of the audio signal of at least one frequency range in audio signal to be played;Using the volume gain factor of each frequency range Volume gain adjustment is carried out to the audio signal.The outer playback amount for solving the intelligent hardware devices in outside noisy environment is adjusted Whole inadequate automation, intelligentized problem, can be adaptively according to ambient noise characteristic and/or audio signal frequency to be played Characteristic carries out the volume gain adjustment of audio signal to be played so that the outer playback amount of intelligent hardware devices can more intelligently Effect with outside noisy environment, further improves Consumer's Experience.
Example IV
Fig. 9 is a kind of flow chart for method for regulation of sound volume that the embodiment of the present invention four is provided, and the present embodiment is in above-mentioned implementation On the basis of example, to " according to the audio frequency characteristic of audio signal to be played, adjusting at least one in the audio signal to be played The volume gain factor of the audio signal of individual frequency range " has carried out further optimization.Wherein, it is same as the previously described embodiments or corresponding The explanation of term, is repeated no more in the present embodiment.
Illustrated with reference to Fig. 9 method for regulation of sound volume provided the embodiment of the present invention four, the method for the present embodiment Including:
S410, ambient noise obtained by microphone.
If S420, the volume of the ambient noise reach default volume threshold, triggering volume gain adjustment.
S430, the noise frequency characteristic according to the ambient noise and audio signal to be played audio frequency characteristic, are adjusted The volume gain factor of the audio signal of at least one frequency range in the whole audio signal to be played.
Due to the diffusion effect of ambient noise so that it is (low in being that the ambient noise that microphone is obtained is essentially white noise Frequency range), so in above-mentioned any embodiment, middle low-frequency range is all defaulted as the noise frequency characteristic of ambient noise, and do not have There is carry out special consideration.But in order to more carry out to precision making an uproar to ambient noise in volume gain adjustment, the present embodiment Acoustic frequency characteristic is considered, and by the noise frequency characteristic of ambient noise and the audio frequency characteristic knot of audio signal to be played Close, carry out comprehensive analysis, the sound of the audio signal of at least one frequency range in audio signal to be played is adjusted with this analysis result The flow gain factor.
Exemplarily, said process can be:
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is middle low frequency, then to described to be played The volume gain factor of the audio signal of middle low-frequency range in audio signal is raised;
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is medium-high frequency, then to described to be played The volume gain factor of the audio signal of medium-high frequency section in audio signal is raised;
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is full range, then to the sound to be played The volume gain factor of the audio signal of medium-high frequency section in frequency signal is raised, and the volume to the audio signal of low-frequency range increases The beneficial factor is lowered or kept constant;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is middle low frequency, then to described The volume gain factor of the audio signal of middle low-frequency range in audio signal to be played is raised;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is medium-high frequency, then to described The volume gain factor of the audio signal of medium-high frequency section in audio signal to be played is raised;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is full range, then is treated to described The volume gain factor of full frequency band in playing audio signal is raised.
Above-mentioned situation can be summarized as the content shown in table 4.
Table 4 is based on noise frequency characteristic and audio frequency characteristic carries out volume gain factor Adjusted Option
Exemplarily, example is specifically applied for some, such as the type of different audio signal to be played, above-mentioned mistake Journey can be:
When the audio signal to be played is voice, and the noise frequency characteristic is middle low frequency, in the voice The volume gain factor of the audio signal of middle low-frequency range is raised;
When the audio signal to be played is absolute music, and the noise frequency characteristic is middle low frequency, to the absolute music In the volume gain factor of audio signal of medium-high frequency section raised;
When the audio signal to be played is pop, and the noise frequency characteristic is middle low frequency, to the pop In the volume gain factor of audio signal of medium-high frequency section raised, the volume gain factor of the audio signal of middle low-frequency range Keep constant, the volume gain factor of the audio signal of low-frequency range and high band is lowered;
When the audio signal to be played is rock music, and the noise frequency characteristic is middle low frequency, to the rock music In the volume gain factor of audio signal of middle low-frequency range raised.
Specifically, it can be seen from the description of the Mid Frequency characteristic of table 1, the frequency characteristic of voice is concentrated mainly on 300-8KHz's Frequency range, i.e., middle low frequency band, so when audio signal to be played is pure voice, then needing the audio signal of middle low-frequency range The volume gain factor is raised, and the contrast of volume is formed with this.Absolute music is mainly the combination of a variety of musical instrument sounds, its frequency Characteristic is concentrated mainly on 8K-16KHz frequency range, i.e. medium-high frequency frequency range, so when audio signal to be played is absolute music, then needing The volume gain factor of the audio signal of medium-high frequency section is raised, the contrast of volume is formed with this.Pop is main Based on voice and musical instrument, its frequency characteristic is full frequency band, in order to protrude the sound of voice and musical instrument, can be by its medium-high frequency The volume gain factor of the audio signal of section is raised, and the volume gain factor of the audio signal of middle low-frequency range keeps constant, The volume gain factor of low-frequency range and the audio signal of high band is lowered.And had in rock music and highlight the again low of timing Music device, then need to raise the volume gain factor of the audio signal of wherein low-frequency range, its rhythm is protruded with this Sense.
S440, using described in the volume gain factor pair of each frequency range audio signal carry out volume gain adjustment.
The technical scheme of the present embodiment, ambient noise is obtained by microphone;Reached in the volume of the ambient noise pre- If during volume threshold, triggering volume gain adjustment;Noise frequency characteristic and audio signal to be played according to the ambient noise Audio frequency characteristic, adjust the volume gain factor of the audio signal of at least one frequency range in the audio signal to be played; Volume gain adjustment is carried out using audio signal described in the volume gain factor pair of each frequency range.Solve in outside noisy environment The adjustment of outer playback amount not enough automation, the intelligentized problem of intelligent hardware devices, can consider ambient noise and be broadcast with waiting Put the frequency characteristic of audio signal so that the outer playback amount of intelligent hardware devices can more precisely, more intelligently match outside noise Heterocycle border, obtains preferable Consumer's Experience.
The following is the embodiment of volume adjusting apparatus provided in an embodiment of the present invention, the sound of the device and the various embodiments described above Amount adjustment method belongs to same inventive concept, the detail content of not detailed description in the embodiment of volume adjusting apparatus, can With the embodiment with reference to above-mentioned method for regulation of sound volume.
Embodiment five
Figure 10 is a kind of structural representation for volume adjusting apparatus that the present embodiment five is provided, and the device is specifically included:
Ambient noise acquisition module 1010, for obtaining ambient noise by microphone;
Gain tuning trigger module 1020, if the volume for the ambient noise reaches default volume threshold, is triggered Volume gain is adjusted;
First gain factor adjusting module 1030, for the audio frequency characteristic according to audio signal to be played, adjusts institute State the volume gain factor of the audio signal of at least one frequency range in audio signal to be played;
Gain regulation module 1040, volume increasing is carried out for audio signal described in the volume gain factor pair using each frequency range Benefit adjustment.
Alternatively, above-mentioned first gain factor adjusting module 1030 includes:
Frequency range determination sub-module to be adjusted, draws for the audio frequency characteristic and default frequency range according to audio signal to be played Divider then, determines at least one frequency range of the audio signal to be played, is used as frequency range to be adjusted;
First gain factor adjusts submodule, for according to the band characteristic between the frequency range to be adjusted and default frequency range Corresponding relation, adjusts the volume gain factor of the audio signal of the frequency range to be adjusted.
Alternatively, on the basis of said apparatus, the device also includes:Second gain factor adjusting module, described second Gain factor adjusting module includes:
Signal amplitude judging submodule, if for reaching default volume threshold in the volume of the ambient noise, Trigger after volume gain adjustment, judge whether the signal amplitude of the audio signal to be played is less than default data signal door Limit value;
Noise grade determination sub-module, is divided for the volume according to the ambient noise and predetermined noise grade Standard, determines environmental noise level;
Second gain factor adjusts submodule, for according to the environmental noise level and the default signal gain factor Mapping relations, adjust the gain factor of at least one frequency range of the audio signal to be played.
Alternatively, above-mentioned first gain factor adjusting module 1030 also includes:
3rd gain factor adjusts submodule, for the noise frequency characteristic according to the ambient noise and audio to be played The audio frequency characteristic of signal, adjust the volume gain of the audio signal of at least one frequency range in the audio signal to be played because Son.
Further, above-mentioned 3rd gain factor adjustment submodule specifically for:
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is middle low frequency, then to described to be played The volume gain factor of the audio signal of middle low-frequency range in audio signal is raised;
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is medium-high frequency, then to described to be played The volume gain factor of the audio signal of medium-high frequency section in audio signal is raised;
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is full range, then to the sound to be played The volume gain factor of the audio signal of medium-high frequency section in frequency signal is raised, and the volume to the audio signal of low-frequency range increases The beneficial factor is lowered or kept constant;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is middle low frequency, then to described The volume gain factor of the audio signal of middle low-frequency range in audio signal to be played is raised;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is medium-high frequency, then to described The volume gain factor of the audio signal of medium-high frequency section in audio signal to be played is raised;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is full range, then is treated to described The volume gain factor of full frequency band in playing audio signal is raised.
Alternatively, above-mentioned 3rd gain factor adjustment submodule also particularly useful for:
When the audio signal to be played is voice, and the noise frequency characteristic is middle low frequency, in the voice The volume gain factor of the audio signal of middle low-frequency range is raised;
When the audio signal to be played is absolute music, and the noise frequency characteristic is middle low frequency, to the absolute music In the volume gain factor of audio signal of medium-high frequency section raised;
When the audio signal to be played is pop, and the noise frequency characteristic is middle low frequency, to the pop In the volume gain factor of audio signal of medium-high frequency section raised, the volume gain factor of the audio signal of middle low-frequency range Keep constant, the volume gain factor of the audio signal of low-frequency range and high band is lowered;
When the audio signal to be played is rock music, and the noise frequency characteristic is middle low frequency, to the rock music In the volume gain factor of audio signal of middle low-frequency range raised.
By a kind of volume adjusting apparatus of the embodiment of the present invention five, solve the Intelligent hardware in outside noisy environment and set The standby adjustment of outer playback amount not enough automation, intelligentized problem, has reached that the outer playback amount of intelligent hardware devices being capable of more intelligence The effect of the outside noisy environment of energy ground matching, improves Consumer's Experience.
The volume adjusting apparatus that the embodiment of the present invention is provided can perform the volume tune that any embodiment of the present invention is provided Adjusting method, possesses the corresponding functional module of execution method and beneficial effect.
It is worth noting that, in the embodiment of above-mentioned volume adjusting apparatus, included modules and submodule are Divided according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized;Separately Outside, the specific name of each functional module is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
Embodiment six
Figure 11 is a kind of structural representation for equipment that the embodiment of the present invention six is provided.The embodiments of the invention provide one kind Equipment, it includes:
One or more processors 1110;
Storage device 1120, for storing one or more programs;
Microphone 1130, for gathering ambient noise;
Loudspeaker 1140, for playing media information;
When one or more of programs are performed by one or more of processors 1110 so that one or more of Processor 1110 realizes the method for regulation of sound volume that the embodiment of the present invention is provided, including:
Ambient noise is obtained by microphone;
If the volume of the ambient noise reaches default volume threshold, triggering volume gain adjustment;
According to the audio frequency characteristic of audio signal to be played, at least one frequency range in the audio signal to be played is adjusted Audio signal the volume gain factor;
Volume gain adjustment is carried out using audio signal described in the volume gain factor pair of each frequency range.
Certainly, it will be understood by those skilled in the art that processor 1110 can also realize that any embodiment of the present invention is carried The technical scheme of the method for regulation of sound volume of confession.
Figure 11 shows the block diagram suitable for being used for the example devices for realizing embodiment of the present invention.The equipment that Figure 11 is shown Only an example, should not carry out any limitation to the function of the embodiment of the present invention and using range band.
As shown in figure 11, the equipment includes processor 1110, memory 1120, input unit 1150, the and of microphone 1130 Loudspeaker 1140;The quantity of processor 1110 can be one or more in equipment, in Figure 11 by taking a processor 1110 as an example; Processor 1110, memory 1120, input unit 1150, microphone 1130 and loudspeaker 1140 in equipment can pass through bus Or other modes are connected, in Figure 11 exemplified by being connected by bus.
Memory 1120 can perform as a kind of computer-readable recording medium available for storage software program, computer Corresponding programmed instruction/the module of method for regulation of sound volume in program and module, such as embodiment of the present invention is (for example, volume is adjusted Ambient noise acquisition module 1010, Gain tuning trigger module 1020, the and of the first gain factor adjusting module 1030 in device Gain regulation module 1040).
Memory 1120 can mainly include storing program area and storage data field, wherein, storing program area can store operation Application program needed for system, at least one function;Storage data field can be stored uses created data etc. according to terminal. In addition, memory 1120 can include high-speed random access memory, nonvolatile memory, for example, at least one can also be included Individual disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 1120 can Further comprise the memory remotely located relative to processor 1110, these remote memories can be by network connection to setting It is standby.The example of above-mentioned network includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 1150 can be used for the numeral or character information for receiving input, such as audio signal to be played, and production The key signals that life is set with the user of equipment and function control is relevant are inputted.
Embodiment seven
The embodiment of the present invention seven also provides a kind of storage medium for including computer executable instructions, and the computer can be held Row instruction is used to perform a kind of method for regulation of sound volume when being performed by computer processor, and this method includes:
Ambient noise is obtained by microphone;
If the volume of the ambient noise reaches default volume threshold, triggering volume gain adjustment;
According to the audio frequency characteristic of audio signal to be played, at least one frequency range in the audio signal to be played is adjusted Audio signal the volume gain factor;
Volume gain adjustment is carried out using audio signal described in the volume gain factor pair of each frequency range.
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer The method operation that executable instruction is not limited to the described above, can also carry out the volume adjustment that any embodiment of the present invention is provided Associative operation in method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to realized by hardware, but the former is more in many cases Good embodiment.Understood based on such, what technical scheme substantially contributed to prior art in other words Part can be embodied in the form of software product, and the computer software product can be stored in computer-readable recording medium In, such as floppy disk, read-only storage (Read-Only Memory, ROM), the random access memory (Random of computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are to cause a computer to set Standby (can be personal computer, server, or network equipment etc.) performs the volume adjustment described in each embodiment of the invention Method.
Note, 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 it is various it is obvious change, Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example 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)

1. a kind of method for regulation of sound volume, it is characterised in that including:
Ambient noise is obtained by microphone;
If the volume of the ambient noise reaches default volume threshold, triggering volume gain adjustment;
According to the audio frequency characteristic of audio signal to be played, the sound of at least one frequency range in the audio signal to be played is adjusted The volume gain factor of frequency signal;
Volume gain adjustment is carried out using audio signal described in the volume gain factor pair of each frequency range.
2. according to the method described in claim 1, it is characterised in that the audio frequency according to audio signal to be played is special Property, adjusting the volume gain factor of the audio signal of at least one frequency range in the audio signal to be played includes:
According to the audio frequency characteristic and default frequency range division rule of audio signal to be played, the audio signal to be played is determined At least one frequency range, be used as frequency range to be adjusted;
According to the band characteristic corresponding relation between the frequency range to be adjusted and default frequency range, the sound of the frequency range to be adjusted is adjusted The volume gain factor of frequency signal.
3. according to the method described in claim 1, it is characterised in that if the volume in the ambient noise reaches default sound Measure threshold value, then after the adjustment of triggering volume gain, in addition to:
Judge whether the signal amplitude of the audio signal to be played is less than default data signal threshold value;
If so, the then volume and the predetermined noise grade criteria for classifying according to the ambient noise, determines ambient noise etc. Level;
According to the environmental noise level and the mapping relations of the default volume gain factor, the audio signal to be played is adjusted At least one frequency range the volume gain factor.
4. the method according to claim 1 or 3, it is characterised in that the audio frequency according to audio signal to be played Characteristic, adjusting the volume gain factor of the audio signal of at least one frequency range in the audio signal to be played includes:
According to the noise frequency characteristic and the audio frequency characteristic of audio signal to be played of the ambient noise, wait to broadcast described in adjustment Put the volume gain factor of the audio signal of the frequency range of at least one in audio signal.
5. method according to claim 4, it is characterised in that the noise frequency characteristic according to the ambient noise and The audio frequency characteristic of audio signal to be played, adjusts the audio signal of at least one frequency range in the audio signal to be played The volume gain factor includes:
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is middle low frequency, then to the audio to be played The volume gain factor of the audio signal of middle low-frequency range in signal is raised;
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is medium-high frequency, then to the audio to be played The volume gain factor of the audio signal of medium-high frequency section in signal is raised;
If the noise frequency characteristic is middle low frequency, and the audio frequency characteristic is full range, then the audio to be played is believed The volume gain factor of audio signal of medium-high frequency section in number is raised, to the volume gain of the audio signal of low-frequency range because Son is lowered or kept constant;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is middle low frequency, then waits to broadcast to described The volume gain factor for putting the audio signal of the middle low-frequency range in audio signal is raised;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is medium-high frequency, then waits to broadcast to described The volume gain factor for putting the audio signal of the section of the medium-high frequency in audio signal is raised;
If the noise frequency characteristic is medium-high frequency or full range, and the audio frequency characteristic is full range, then to described to be played The volume gain factor of full frequency band in audio signal is raised.
6. method according to claim 4, it is characterised in that the noise frequency characteristic according to the ambient noise and The audio frequency characteristic of audio signal to be played, adjusts the audio signal of at least one frequency range in the audio signal to be played The volume gain factor includes:
When the audio signal to be played is voice, and the noise frequency characteristic is middle low frequency, to low in the voice The volume gain factor of the audio signal of frequency range is raised;
When the audio signal to be played is absolute music, and the noise frequency characteristic is middle low frequency, in the absolute music The volume gain factor of the audio signal of medium-high frequency section is raised;
When the audio signal to be played is pop, and the noise frequency characteristic is middle low frequency, in the pop The volume gain factor of the audio signal of medium-high frequency section is raised, and the volume gain factor of the audio signal of middle low-frequency range is kept Constant, the volume gain factor of the audio signal of low-frequency range and high band is lowered;
When the audio signal to be played is rock music, and the noise frequency characteristic is middle low frequency, in the rock music The volume gain factor of the audio signal of middle low-frequency range is raised.
7. a kind of volume adjusting apparatus, it is characterised in that including:
Ambient noise acquisition module, for obtaining ambient noise by microphone;
Gain tuning trigger module, if the volume for the ambient noise reaches default volume threshold, triggers volume gain Adjustment;
First gain factor adjusting module, for the audio frequency characteristic according to audio signal to be played, is adjusted described to be played The volume gain factor of the audio signal of the frequency range of at least one in audio signal;
Gain regulation module, volume gain adjustment is carried out for audio signal described in the volume gain factor pair using each frequency range.
8. device according to claim 7, it is characterised in that also include:Second gain factor adjusting module, described second Gain factor adjusting module includes:
Signal amplitude judging submodule, if for reaching default volume threshold in the volume of the ambient noise, triggering After volume gain adjustment, judge whether the signal amplitude of the audio signal to be played is less than default data signal thresholding Value;
Noise grade determination sub-module, mark is divided for the volume according to the ambient noise and predetermined noise grade Standard, determines environmental noise level;
Second gain factor adjusts submodule, for the mapping according to the environmental noise level and the default signal gain factor Relation, adjusts the gain factor of at least one frequency range of the audio signal to be played.
9. the device according to claim 7 or 8, it is characterised in that the first gain factor adjusting module also includes:
3rd gain factor adjusts submodule, for the noise frequency characteristic according to the ambient noise and audio signal to be played Audio frequency characteristic, adjust the volume gain factor of the audio signal of at least one frequency range in the audio signal to be played.
10. a kind of equipment, it is characterised in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
Microphone, for gathering ambient noise;
Loudspeaker, for playing media information;
When one or more of programs are by one or more of computing devices so that one or more of processors are real The existing method for regulation of sound volume as described in any in claim 1-6.
CN201710312351.XA 2017-05-05 2017-05-05 Volume adjustment method, device and equipment Active CN107124149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710312351.XA CN107124149B (en) 2017-05-05 2017-05-05 Volume adjustment method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710312351.XA CN107124149B (en) 2017-05-05 2017-05-05 Volume adjustment method, device and equipment

Publications (2)

Publication Number Publication Date
CN107124149A true CN107124149A (en) 2017-09-01
CN107124149B CN107124149B (en) 2020-12-01

Family

ID=59727892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710312351.XA Active CN107124149B (en) 2017-05-05 2017-05-05 Volume adjustment method, device and equipment

Country Status (1)

Country Link
CN (1) CN107124149B (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108369805A (en) * 2017-12-27 2018-08-03 深圳前海达闼云端智能科技有限公司 Voice interaction method and device and intelligent terminal
CN109067989A (en) * 2018-08-17 2018-12-21 联想(北京)有限公司 Information processing method and electronic equipment
CN109195068A (en) * 2018-09-09 2019-01-11 昊智信息技术(深圳)有限公司 Audio-frequency processing method, device and audio frequency apparatus
CN109213471A (en) * 2018-10-23 2019-01-15 北京奇艺世纪科技有限公司 A kind of adjusting method and system of volume
CN109360577A (en) * 2018-10-16 2019-02-19 广州酷狗计算机科技有限公司 The method, apparatus storage medium that audio is handled
CN109889665A (en) * 2019-02-26 2019-06-14 努比亚技术有限公司 A kind of volume adjusting method, mobile terminal and storage medium
CN110392299A (en) * 2019-06-17 2019-10-29 北京达佳互联信息技术有限公司 Processing method, device, electronic equipment and the storage medium of volume
CN111508520A (en) * 2020-04-01 2020-08-07 成都德芯数字科技股份有限公司 Audio gain control method and device, broadcasting terminal and storage medium
CN111565344A (en) * 2019-02-14 2020-08-21 青岛海信移动通信技术股份有限公司 Audio processing method and electronic equipment
CN111726730A (en) * 2019-03-18 2020-09-29 塞舌尔商元鼎音讯股份有限公司 Sound playing device and method for adjusting output sound
CN111935429A (en) * 2020-07-06 2020-11-13 瑞声新能源发展(常州)有限公司科教城分公司 Sound quality self-adaptive adjusting method, related system and equipment and storage medium
WO2021098698A1 (en) * 2019-11-20 2021-05-27 维沃移动通信有限公司 Audio playback method and terminal device
CN112954115A (en) * 2021-03-16 2021-06-11 腾讯音乐娱乐科技(深圳)有限公司 Volume adjusting method and device, electronic equipment and storage medium
CN113194381A (en) * 2021-04-28 2021-07-30 国光电器(香港)有限公司 Volume adjusting method and device, sound equipment and storage medium
CN113409800A (en) * 2020-03-16 2021-09-17 浙江宇视科技有限公司 Processing method and device for monitoring audio, storage medium and electronic equipment
CN113497852A (en) * 2020-04-07 2021-10-12 北京字节跳动网络技术有限公司 Automatic volume adjustment method, apparatus, medium, and device
CN113556654A (en) * 2021-07-16 2021-10-26 RealMe重庆移动通信有限公司 Audio data processing method and device and electronic equipment
CN113573213A (en) * 2021-09-23 2021-10-29 深圳市微我科技有限公司 Sound quality optimization method for intelligent sound equipment with screen, intelligent sound equipment and playing system
CN114928790A (en) * 2022-05-07 2022-08-19 皓角科技(上海)有限公司 Audio signal processing circuit and audio terminal
WO2023071425A1 (en) * 2021-10-25 2023-05-04 Oppo广东移动通信有限公司 Volume control method and apparatus, and electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5666426A (en) * 1996-10-17 1997-09-09 Advanced Micro Devices, Inc. Automatic volume control to compensate for ambient noise variations
US5790671A (en) * 1996-04-04 1998-08-04 Ericsson Inc. Method for automatically adjusting audio response for improved intelligibility
CN1773847A (en) * 2004-11-12 2006-05-17 乐金电子(昆山)电脑有限公司 Automatic regulating sound volume device and method for portable terminal machine
CN101997498A (en) * 2009-08-27 2011-03-30 北京宏景捷讯网络技术股份有限公司 Volume adjusting method and device
CN103152668A (en) * 2012-12-22 2013-06-12 深圳先进技术研究院 Adjusting method of output audio and system thereof
CN105827852A (en) * 2016-04-29 2016-08-03 维沃移动通信有限公司 Method and terminal for adjusting volume

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790671A (en) * 1996-04-04 1998-08-04 Ericsson Inc. Method for automatically adjusting audio response for improved intelligibility
US5666426A (en) * 1996-10-17 1997-09-09 Advanced Micro Devices, Inc. Automatic volume control to compensate for ambient noise variations
CN1773847A (en) * 2004-11-12 2006-05-17 乐金电子(昆山)电脑有限公司 Automatic regulating sound volume device and method for portable terminal machine
CN101997498A (en) * 2009-08-27 2011-03-30 北京宏景捷讯网络技术股份有限公司 Volume adjusting method and device
CN103152668A (en) * 2012-12-22 2013-06-12 深圳先进技术研究院 Adjusting method of output audio and system thereof
CN105827852A (en) * 2016-04-29 2016-08-03 维沃移动通信有限公司 Method and terminal for adjusting volume

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019127112A1 (en) * 2017-12-27 2019-07-04 深圳前海达闼云端智能科技有限公司 Voice interaction method and device and intelligent terminal
CN108369805B (en) * 2017-12-27 2019-08-13 深圳前海达闼云端智能科技有限公司 Voice interaction method and device and intelligent terminal
CN108369805A (en) * 2017-12-27 2018-08-03 深圳前海达闼云端智能科技有限公司 Voice interaction method and device and intelligent terminal
CN109067989A (en) * 2018-08-17 2018-12-21 联想(北京)有限公司 Information processing method and electronic equipment
CN109195068A (en) * 2018-09-09 2019-01-11 昊智信息技术(深圳)有限公司 Audio-frequency processing method, device and audio frequency apparatus
CN109360577B (en) * 2018-10-16 2022-11-04 广州酷狗计算机科技有限公司 Method, apparatus, and storage medium for processing audio
CN109360577A (en) * 2018-10-16 2019-02-19 广州酷狗计算机科技有限公司 The method, apparatus storage medium that audio is handled
CN109213471A (en) * 2018-10-23 2019-01-15 北京奇艺世纪科技有限公司 A kind of adjusting method and system of volume
CN109213471B (en) * 2018-10-23 2021-08-31 北京奇艺世纪科技有限公司 Volume adjusting method and system
CN111565344B (en) * 2019-02-14 2022-06-17 青岛海信移动通信技术股份有限公司 Audio processing method and electronic equipment
CN111565344A (en) * 2019-02-14 2020-08-21 青岛海信移动通信技术股份有限公司 Audio processing method and electronic equipment
CN109889665B (en) * 2019-02-26 2021-08-03 努比亚技术有限公司 Volume adjusting method, mobile terminal and storage medium
CN109889665A (en) * 2019-02-26 2019-06-14 努比亚技术有限公司 A kind of volume adjusting method, mobile terminal and storage medium
CN111726730A (en) * 2019-03-18 2020-09-29 塞舌尔商元鼎音讯股份有限公司 Sound playing device and method for adjusting output sound
CN110392299A (en) * 2019-06-17 2019-10-29 北京达佳互联信息技术有限公司 Processing method, device, electronic equipment and the storage medium of volume
WO2021098698A1 (en) * 2019-11-20 2021-05-27 维沃移动通信有限公司 Audio playback method and terminal device
CN113409800A (en) * 2020-03-16 2021-09-17 浙江宇视科技有限公司 Processing method and device for monitoring audio, storage medium and electronic equipment
CN113409800B (en) * 2020-03-16 2024-07-12 浙江宇视科技有限公司 Processing method and device for monitoring audio, storage medium and electronic equipment
CN111508520A (en) * 2020-04-01 2020-08-07 成都德芯数字科技股份有限公司 Audio gain control method and device, broadcasting terminal and storage medium
CN113497852A (en) * 2020-04-07 2021-10-12 北京字节跳动网络技术有限公司 Automatic volume adjustment method, apparatus, medium, and device
US11822854B2 (en) 2020-04-07 2023-11-21 Beijing Bytedance Network Technology Co., Ltd. Automatic volume adjustment method and apparatus, medium, and device
CN111935429A (en) * 2020-07-06 2020-11-13 瑞声新能源发展(常州)有限公司科教城分公司 Sound quality self-adaptive adjusting method, related system and equipment and storage medium
CN111935429B (en) * 2020-07-06 2021-10-19 瑞声新能源发展(常州)有限公司科教城分公司 Sound quality self-adaptive adjusting method, related system and equipment and storage medium
WO2022007239A1 (en) * 2020-07-06 2022-01-13 瑞声声学科技(深圳)有限公司 Sound quality adaptive adjustment method, related system and device, and storage medium
CN112954115A (en) * 2021-03-16 2021-06-11 腾讯音乐娱乐科技(深圳)有限公司 Volume adjusting method and device, electronic equipment and storage medium
CN113194381A (en) * 2021-04-28 2021-07-30 国光电器(香港)有限公司 Volume adjusting method and device, sound equipment and storage medium
CN113556654B (en) * 2021-07-16 2022-11-22 RealMe重庆移动通信有限公司 Audio data processing method and device and electronic equipment
CN113556654A (en) * 2021-07-16 2021-10-26 RealMe重庆移动通信有限公司 Audio data processing method and device and electronic equipment
CN113573213A (en) * 2021-09-23 2021-10-29 深圳市微我科技有限公司 Sound quality optimization method for intelligent sound equipment with screen, intelligent sound equipment and playing system
WO2023071425A1 (en) * 2021-10-25 2023-05-04 Oppo广东移动通信有限公司 Volume control method and apparatus, and electronic device and storage medium
CN114928790A (en) * 2022-05-07 2022-08-19 皓角科技(上海)有限公司 Audio signal processing circuit and audio terminal

Also Published As

Publication number Publication date
CN107124149B (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN107124149A (en) A kind of method for regulation of sound volume, device and equipment
US10466957B2 (en) Active acoustic filter with automatic selection of filter parameters based on ambient sound
CN102016994B (en) An apparatus for processing an audio signal and method thereof
CN112954115B (en) Volume adjusting method and device, electronic equipment and storage medium
CN102498482B (en) System for adaptive voice intelligibility processing
US11817114B2 (en) Content and environmentally aware environmental noise compensation
CN107170463A (en) Method for regulating audio signal and system
CN104754462A (en) Automatic regulating device and method for volume and earphone
US20240323608A1 (en) Dynamics processing across devices with differing playback capabilities
CN105430563A (en) Multiband ducker
CN115348507A (en) Impulse noise suppression method, system, readable storage medium and computer equipment
CN114902560B (en) Apparatus and method for automatic volume control with ambient noise compensation
Francombe et al. Modelling listener distraction resulting from audio-on-audio interference
US11579840B2 (en) Method for adjusting sound playback and portable device thereof
CN109213471B (en) Volume adjusting method and system
WO2022022211A1 (en) Volume adjustment method and apparatus based on speech control
CN117153192B (en) Audio enhancement method, device, electronic equipment and storage medium
CN114422893A (en) Noise reduction processing method and device, earphone and storage medium
CN113730914A (en) Audio adjusting method and device and computer readable storage medium
CN118042348A (en) Audio processing method, device, audio playing equipment and storage medium
RU2022105152A (en) ACOUSTIC ECHO CANCELLATION CONTROL FOR DISTRIBUTED AUDIO DEVICES
TWI584275B (en) Electronic device and method for analyzing and playing sound signal
Lee et al. Sound customizing system for high-quality TV sound based on hearing threshold measurement

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210513

Address after: 201210 4th floor, building 1, 701 Naxian Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: Shanghai Xiaodu Technology Co.,Ltd.

Address before: 100088 room 2031, building 2, 5 Huayuan Road, Haidian District, Beijing.

Patentee before: AINEMO Inc.

TR01 Transfer of patent right