CN105207635A - Method and device for automatic volume control - Google Patents
Method and device for automatic volume control Download PDFInfo
- Publication number
- CN105207635A CN105207635A CN201510738746.7A CN201510738746A CN105207635A CN 105207635 A CN105207635 A CN 105207635A CN 201510738746 A CN201510738746 A CN 201510738746A CN 105207635 A CN105207635 A CN 105207635A
- Authority
- CN
- China
- Prior art keywords
- module
- audio frequency
- input
- baseline
- input voltage
- 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.)
- Pending
Links
Landscapes
- Circuit For Audible Band Transducer (AREA)
Abstract
The invention provides a method and device for automatic volume control. The method comprises the following steps: collecting voltage amplitude of input audio frequency with a sampling rate R; obtaining the average input voltage Xa according to the voltage amplitude of input audio frequency; obtaining input voltage base line Xas corresponding to a current input volume base line Vbs; adjusting the output voltage base line to the input voltage base line Xas. According to the invention, the input audio frequency is delayed to a certain extent, the sampling of voltage amplitude is carried out while delaying, then, the average value of the voltage amplitude of input audio frequency is calculated, and is compared with the input voltage base line corresponding to the volume base line set by a user, and outputting is performed after gain adjustment is carried out according to the comparison result, so that the gain adjustment is carried out on output audio frequency in advance.
Description
Technical field
The present invention relates to vehicle electronics technical field, particularly relate to a kind of automatic volume control method and device.
Background technology
Weigh the play quality that the very important technical indicator of vehicle entertainment system is audio frequency, the consistency of volume is then the obvious project of user's subjective sensation, the gain used when recording due to various audio frequency media is different, even differ greatly, and some vehicle entertainment system does not control the volume that audio frequency is play, rely on the gain built-in with audio frequency media completely, therefore just occur playing different audio files, time and volume is little of can not hear clearly, Shi Er great is to taking sb. aback, and Consumer's Experience is poor.At present for Automatic control of sound volume, mainly by outer setting pick-up, the sound that loudspeaker play back is sampled, judges whether to exceed threshold value, thus adjust.This volume automatic control method implementation cost is high, and only could it act on when larger change occurs sound, and now the unhappy mood of user has produced, and is obviously unfavorable for the performance improving product.
Summary of the invention
The invention provides a kind of automatic volume control method and device, be intended to solve the problem that in current Automatic control of sound volume technology, existence adjustment is delayed, just regulated before audio file exports, strengthen Consumer's Experience.
For achieving the above object, the technical solution used in the present invention is:
One aspect of the present invention provides a kind of automatic volume control method, comprising:
The voltage amplitude Xn of audio frequency input is gathered with sample rate R;
Average input voltage Xa is obtained with the voltage amplitude Xn of described audio frequency input;
Obtain the input voltage baseline Xas that current input volume baseline Vbs is corresponding;
The voltage baseline of output is adjusted to input voltage baseline Xas.
Particularly, described sample rate R=10Hz.
Particularly, described Vbs=20lg (Xas/775mV).
Particularly, the described voltage baseline by output adjusts to the step of input voltage baseline Xas, is specially:
By the mode that gain controls, the voltage baseline of output is adjusted to input voltage baseline, gain controlling elements k=Xas/Xa.
The present invention provides a kind of automatic volume control device on the other hand, comprises Audio Input Modules, audio frequency input voltage acquisition module, volume adjusting module, volume memory module, time delay module, volume control module, dio Output Modules;
Described Audio Input Modules, for inputting the audio frequency needing to play;
Described audio frequency input voltage acquisition module, for the voltage amplitude of Gather and input audio frequency;
Described volume adjusting module, regulates current system volume for user;
Described volume memory module, for remembering the system sound volume after user's adjustment;
Described time delay module, for carrying out time delay to input audio frequency;
Described volume control module, for regulating the gain of current input audio frequency according to system sound volume;
Described dio Output Modules, for exporting the audio frequency after overregulating;
Particularly, described volume control module, comprises cache module, average input voltage computing module, input voltage baseline computing module, output gain adjustment module;
Described cache module, the numerical value of voltage amplitude of the audio frequency obtained of sampling for buffer memory;
Described average input voltage computing module, the mean value of the voltage amplitude of the audio frequency obtained for calculating sampling;
Described input voltage baseline computing module, for calculating the voltage baseline of its correspondence according to current system volume;
Described output gain adjustment module, for regulating the output gain of audio file.
Beneficial effect of the present invention is: the present invention is by carrying out certain time delay to the audio frequency of input, and while time delay, carry out the sampling of voltage amplitude, then the mean value of the voltage amplitude of input audio frequency is calculated, and the input voltage baseline corresponding with the volume baseline that user sets compares, export again after carrying out gain-adjusted according to comparative result, achieve and in advance Gain tuning is carried out to the audio frequency exported, make it remain on the volume range of user's setting, substantially increase Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that automatic volume of the present invention controls;
Fig. 2 is the structural representation that automatic volume of the present invention controls.
Embodiment
Specifically illustrate embodiments of the present invention below in conjunction with accompanying drawing, accompanying drawing is only for reference and use is described, does not form the restriction to scope of patent protection of the present invention.
As shown in Figure 1, embodiments of the invention provide a kind of automatic volume control method on the one hand, comprising:
S10. the voltage amplitude Xn of audio frequency input is gathered with sample rate R.
Particularly, for local audio, the such as audio file of the inside such as USB, SD card, video disc, can gather a first complete audio file and carry out delay buffer; For online audio frequency, such as radio reception, consider and the time should not postpone oversize, the audio frequency that can gather in 1-3 second carries out delay buffer.Sample rate is R, preferably, and R=10Hz.
S20. average input voltage Xa is obtained with the voltage amplitude Xn of described audio frequency input.
Particularly, calculate by the voltage amplitude X1, X2, the X3 that obtain of sampling ... arithmetic average Xa=(the X1+X2+ of Xn ... + Xn)/n.
S30. the input voltage baseline Xas that current input volume baseline Vbs is corresponding is obtained.
Usually, volume baseline is usually with the numerical values recited of volume (as 10,20 etc. represent), the input volume baseline Vbs0 preset can be set to 20, and the input voltage baseline Xas0 of its correspondence can be set to 775 (mV), i.e. Vbs0=20lg (Xas0/775mV).When user needs to feel current, volume is too small, increases volume by the mode adjusting volume, then using volume now as the new input volume baseline Vbs1 preset, such as Vbs1=23, then the input voltage baseline Xas1=891mV of its correspondence.
S40. the voltage baseline of output is adjusted to input voltage baseline Xas.
Particularly, the mode controlled by gain, adjusts to input voltage baseline by the voltage baseline of output, gain controlling elements k=Xas/Xa.
As shown in Figure 2, the present invention provides a kind of automatic volume control device on the other hand, comprises Audio Input Modules, audio frequency input voltage acquisition module, volume adjusting module, volume memory module, time delay module, volume control module, dio Output Modules;
Described Audio Input Modules, for inputting the audio frequency needing to play;
Described audio frequency input voltage acquisition module, for the voltage amplitude of Gather and input audio frequency;
Described volume adjusting module, regulates current system volume for user;
Described volume memory module, for remembering the system sound volume after user's adjustment;
Described time delay module, for carrying out time delay to input audio frequency;
Described volume control module, for regulating the gain of current input audio frequency according to system sound volume;
Described dio Output Modules, for exporting the audio frequency after overregulating;
Particularly, described volume control module, comprises cache module, average input voltage computing module, input voltage baseline computing module, output gain adjustment module;
Described cache module, the numerical value of voltage amplitude of the audio frequency obtained of sampling for buffer memory;
Described average input voltage computing module, the mean value of the voltage amplitude of the audio frequency obtained for calculating sampling;
Described input voltage baseline computing module, for calculating the voltage baseline of its correspondence according to current system volume;
Described output gain adjustment module, for regulating the output gain of audio file.
The course of work of automatic volume control device of the present invention is:
Audio file is inputted by Audio Input Modules, audio frequency input voltage acquisition module gathers the voltage amplitude Xn of described input audio frequency, specifically: for local audio file, the such as audio file of the inside such as USB, SD card, video disc, can gather a first complete audio file and carry out delay buffer; For online audio frequency, such as radio reception, consider and the time should not postpone oversize, the audio frequency that can gather in 1-3 second carries out delay buffer.Sample rate is R, preferably, and R=10Hz.
The numerical value Xn of the voltage amplitude of the described input audio frequency obtained of sampling is carried out buffer memory in cache module, and average input voltage computing module calculates by the voltage amplitude X1, X2, the X3 that obtain of sampling ... the arithmetic mean Xa of Xn, specific formula for calculation is:
Xa=(X1+X2+……+Xn)/n。
Input voltage baseline computing module calculates the voltage baseline of its correspondence according to current system volume, volume baseline is usually with the numerical values recited of volume (as 10,20 etc. represent), the input volume baseline Vbs0 preset can be set to 20, the input voltage baseline Xas0 of its correspondence can be set to 775 (mV), i.e. Vbs0=20lg (Xas0/775mV).When user needs to feel current, volume is too small, volume is increased by volume adjusting module (such as volume knob), volume after adjustment is remembered by volume memory module, and using volume now as the new input volume baseline Vbs1 preset.Such as, the volume baseline Vbs1=23 after adjustment, then can calculate the input voltage baseline Xas1=891mV of its correspondence.By that analogy.
Output gain adjustment module carries out gain control according to the arithmetic mean Xa of the voltage amplitude of described input audio frequency, input voltage baseline Xas that current volume baseline is corresponding, the voltage baseline of output is adjusted to input voltage baseline, gain controlling elements k=Xas/Xa.
Above disclosedly be only preferred embodiment of the present invention, the scope of the present invention can not be limited with this, therefore according to the equivalent variations that the present patent application the scope of the claims is done, still belong to the scope that the present invention is contained.
Claims (8)
1. an automatic volume control method, is characterized in that, comprising:
The voltage amplitude Xn of audio frequency input is gathered with sample rate R;
Average input voltage Xa is obtained with the voltage amplitude Xn of described audio frequency input;
Obtain the input voltage baseline Xas that current input volume baseline Vbs is corresponding;
The voltage baseline of output is adjusted to input voltage baseline Xas.
2. automatic volume control method according to claim 1, is characterized in that, described sample rate R=10Hz.
3. automatic volume control method according to claim 1, is characterized in that, described Vbs=20lg (Xas/775mV).
4. automatic volume control method according to claim 1, is characterized in that, the described voltage baseline by output adjusts to the step of input voltage baseline Xas, is specially:
By the mode that gain controls, the voltage baseline of output is adjusted to input voltage baseline, gain controlling elements k=Xas/Xa.
5. an automatic volume control device, is characterized in that, comprising: Audio Input Modules, audio frequency input voltage acquisition module, volume adjusting module, volume memory module, time delay module, volume control module, dio Output Modules;
Described Audio Input Modules, for inputting the audio frequency needing to play;
Described audio frequency input voltage acquisition module, for the voltage amplitude of Gather and input audio frequency;
Described volume adjusting module, regulates current system volume for user;
Described volume memory module, for remembering the system sound volume after user's adjustment;
Described time delay module, for carrying out time delay to input audio frequency;
Described volume control module, for regulating the gain of current input audio frequency according to system sound volume;
Described dio Output Modules, for exporting the audio frequency after overregulating;
Described volume control module, comprises cache module, average input voltage computing module, input voltage baseline computing module, output gain adjustment module;
Described cache module, the numerical value of voltage amplitude of the audio frequency obtained of sampling for buffer memory;
Described average input voltage computing module, the mean value of the voltage amplitude of the audio frequency obtained for calculating sampling;
Described input voltage baseline computing module, for calculating the voltage baseline of its correspondence according to current system volume;
Described output gain adjustment module, for regulating the output gain of audio file.
6. automatic volume control device according to claim 5, is characterized in that, the sample rate R=10Hz of described audio frequency input voltage acquisition module.
7. automatic volume control device according to claim 5, is characterized in that, the formula that input voltage baseline computing module calculates corresponding input voltage baseline Xas according to current input volume baseline Vbs is:
Vbs=20lg(Xas/775mV)。
8. automatic volume control device according to claim 5, is characterized in that, the gain controlling elements k=Xas/Xa of output gain adjustment module, and wherein Xas is input voltage baseline, and Xa is average input voltage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510738746.7A CN105207635A (en) | 2015-10-31 | 2015-10-31 | Method and device for automatic volume control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510738746.7A CN105207635A (en) | 2015-10-31 | 2015-10-31 | Method and device for automatic volume control |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105207635A true CN105207635A (en) | 2015-12-30 |
Family
ID=54955116
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510738746.7A Pending CN105207635A (en) | 2015-10-31 | 2015-10-31 | Method and device for automatic volume control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105207635A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107172560A (en) * | 2017-06-28 | 2017-09-15 | 青岛海信移动通信技术股份有限公司 | The method for detecting abnormality and mobile terminal of microphone in a kind of mobile terminal |
CN109151648A (en) * | 2018-10-30 | 2019-01-04 | 歌尔科技有限公司 | A kind of dynamic regulating method of earpiece volume, device and wireless headset |
CN109274345A (en) * | 2018-11-14 | 2019-01-25 | 上海艾为电子技术股份有限公司 | A kind of signal processing method, device and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006063255A2 (en) * | 2004-12-08 | 2006-06-15 | Cordeus, Inc. | Determining of stroke volume using the brachial artery |
CN101958693A (en) * | 2009-07-13 | 2011-01-26 | 深圳富泰宏精密工业有限公司 | Volume-adjusting device and method |
CN102098015A (en) * | 2009-12-10 | 2011-06-15 | 东友科技股份有限公司 | Volume output adjusting circuit |
CN102497168A (en) * | 2011-12-05 | 2012-06-13 | 常州声泰龙电子音响有限公司 | Intelligent volume limiting device and method |
CN102571010A (en) * | 2010-12-30 | 2012-07-11 | 深圳富泰宏精密工业有限公司 | Volume control system and method |
JP2013219709A (en) * | 2012-04-12 | 2013-10-24 | Mitsubishi Electric Corp | Voice signal amplification device and television set |
-
2015
- 2015-10-31 CN CN201510738746.7A patent/CN105207635A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006063255A2 (en) * | 2004-12-08 | 2006-06-15 | Cordeus, Inc. | Determining of stroke volume using the brachial artery |
CN101958693A (en) * | 2009-07-13 | 2011-01-26 | 深圳富泰宏精密工业有限公司 | Volume-adjusting device and method |
CN102098015A (en) * | 2009-12-10 | 2011-06-15 | 东友科技股份有限公司 | Volume output adjusting circuit |
CN102571010A (en) * | 2010-12-30 | 2012-07-11 | 深圳富泰宏精密工业有限公司 | Volume control system and method |
CN102497168A (en) * | 2011-12-05 | 2012-06-13 | 常州声泰龙电子音响有限公司 | Intelligent volume limiting device and method |
JP2013219709A (en) * | 2012-04-12 | 2013-10-24 | Mitsubishi Electric Corp | Voice signal amplification device and television set |
Non-Patent Citations (1)
Title |
---|
灵修: "射手播放器3.2", 《HTTP://ITBBS.PCONLINE.COM.CN/SOFT/10760269.HTML》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107172560A (en) * | 2017-06-28 | 2017-09-15 | 青岛海信移动通信技术股份有限公司 | The method for detecting abnormality and mobile terminal of microphone in a kind of mobile terminal |
CN109151648A (en) * | 2018-10-30 | 2019-01-04 | 歌尔科技有限公司 | A kind of dynamic regulating method of earpiece volume, device and wireless headset |
CN109274345A (en) * | 2018-11-14 | 2019-01-25 | 上海艾为电子技术股份有限公司 | A kind of signal processing method, device and system |
CN109274345B (en) * | 2018-11-14 | 2023-11-03 | 上海艾为电子技术股份有限公司 | Signal processing method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190327558A1 (en) | Encoded Audio Metadata-Based Loudness Equalization and Dynamic Equalization During DRC | |
CN101552595B (en) | Electronic product volume regulating method and device thereof | |
CN103456332A (en) | Audio playing device and volume adjusting method | |
US20160365083A1 (en) | Low-Power-Consumption Active Noise-Reduction In-Ear Music Headphones and Method for Noise Reduction | |
GB2506458A (en) | Automatic gain control system for an analogue to digital converter | |
CN105207635A (en) | Method and device for automatic volume control | |
US10284943B2 (en) | Method and apparatus for adjusting sound field of an earphone and a terminal | |
CN103746668A (en) | Sound volume control method and system | |
CN104486668B (en) | A kind of volume adjusting method | |
CN101183859A (en) | Audio compressor | |
CN204408287U (en) | A kind of intelligent controlling device of portable loudspeaker box volume | |
CN110246508A (en) | A kind of signal modulating method, device and storage medium | |
JP2012165377A5 (en) | ||
CN111508510A (en) | Audio processing method and device, storage medium and electronic equipment | |
CN103780214A (en) | Method and device for adjusting audio equalizer | |
KR20190049727A (en) | Multi-path analog front end with adaptive path | |
CN101022518A (en) | Automatic sound volume adjusting method and system | |
CN106909360A (en) | A kind of electronic installation, sound play device and balanced device method of adjustment | |
WO2019033942A1 (en) | Volume adjustment method and apparatus, terminal device, and storage medium | |
CN107682802B (en) | Method and device for debugging sound effect of audio equipment | |
CN104349244B (en) | A kind of information processing method and electronic equipment | |
CN203984620U (en) | A kind of singing device that can automatic regulating volume | |
CN103383852B (en) | Acoustic signal processing method and the electronic device for supporting the method | |
CN203243288U (en) | Automatic control device of volume | |
CN109887474B (en) | Control method and device for equipment with screen and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151230 |
|
RJ01 | Rejection of invention patent application after publication |