CN1983804A - Audio-frequency processor and volume management - Google Patents
Audio-frequency processor and volume management Download PDFInfo
- Publication number
- CN1983804A CN1983804A CN 200510120714 CN200510120714A CN1983804A CN 1983804 A CN1983804 A CN 1983804A CN 200510120714 CN200510120714 CN 200510120714 CN 200510120714 A CN200510120714 A CN 200510120714A CN 1983804 A CN1983804 A CN 1983804A
- Authority
- CN
- China
- Prior art keywords
- energy value
- audio
- audio energy
- volume
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Circuit For Audible Band Transducer (AREA)
- Control Of Amplification And Gain Control (AREA)
Abstract
本发明提供了一种音量管理方法,包括下列步骤:周期性地获得一音频信号在一第一预设时间段内的多个取样值及当前增益值;根据该多个取样值及当前增益值,计算该第一预设时间段内的实际音频能量值;侦测环境噪音的音量级;根据该环境噪音的音量级获得一参考音频能量值;比较该实际音频能量值与该参考音频能量值,当该实际音频能量值大于该参考音频能量值时,调低当前增益值。本发明提供了一种音量管理系统。该音量管理方法既能够保护用户的听力免受伤害,又能够使得用户在环境噪音较大时仍能够在适当的音量级下欣赏音频。
The present invention provides a volume management method, comprising the following steps: periodically obtain a plurality of sampling values and current gain values of an audio signal within a first preset time period; , calculating the actual audio energy value within the first preset time period; detecting the volume level of the ambient noise; obtaining a reference audio energy value according to the volume level of the ambient noise; comparing the actual audio energy value with the reference audio energy value , when the actual audio energy value is greater than the reference audio energy value, lower the current gain value. The invention provides a volume management system. The volume management method can not only protect the user's hearing from damage, but also enable the user to enjoy audio at an appropriate volume level when the ambient noise is large.
Description
【技术领域】【Technical field】
本发明涉及一种音频处理装置及音量管理方法,尤其是涉及一种通过限制音量从而保护听力的装置及方法。The invention relates to an audio processing device and a volume management method, in particular to a device and a method for protecting hearing by limiting the volume.
【背景技术】【Background technique】
随着数字产品的发展,手持音频播放设备得到广泛应用。在噪音比较大的环境中,用户为了能够听到渴望的音频信号,就会随着环境噪音的增大而不断地增大音量。然而,用户都存在一听力生理极限,即响度不适级(Loudness Discomfort Level,LDL),如果用户的耳朵长时间暴露在超过该响度不适级的环境下,则会对该用户的听力造成伤害。With the development of digital products, handheld audio playback devices are widely used. In a noisy environment, in order to hear the desired audio signal, the user will continuously increase the volume as the ambient noise increases. However, users all have a physiological hearing limit, that is, the Loudness Discomfort Level (LDL). If the user's ears are exposed to an environment exceeding the loudness discomfort level for a long time, it will cause damage to the user's hearing.
为了解决该问题,市场上出现了一种音量控制装置及方法,该音量控制装置提供一音量设定表,该音量设定表列出了各噪音值对应的增益值。该音量控制装置首先感应外部噪音,并计算一预设时间段内该外部噪音的噪音水平;然后在该音量设定表中读取该噪音水平对应的一预设增益值,并根据该预设增益值调节音量。即使得该音量控制装置输出声音的音量随着外部噪音的增减而增减。In order to solve this problem, a volume control device and method appear on the market. The volume control device provides a volume setting table, and the volume setting table lists the gain values corresponding to each noise value. The volume control device first senses external noise, and calculates the noise level of the external noise within a preset time period; then reads a preset gain value corresponding to the noise level from the volume setting table, and The gain value adjusts the volume. That is to make the volume of the output sound of the volume control device increase or decrease with the increase or decrease of the external noise.
然而,如果用户处于环境噪音变化较频繁的环境时,该音量控制装置将会频繁地改变输出声音的音量。而频繁地改变输出声音的音量将使得用户在欣赏音乐或收听广播时感觉不舒服。并且,单纯考虑音量级也无法真正体现不同振幅的声音对听力的伤害。However, if the user is in an environment where the ambient noise changes frequently, the volume control device will frequently change the volume of the output sound. And changing the volume of the output sound frequently will make the user feel uncomfortable when enjoying music or listening to the radio. Moreover, simply considering the volume level cannot truly reflect the hearing damage caused by sounds of different amplitudes.
【发明内容】【Content of invention】
有鉴于此,有必要提供一种音量管理方法,用于管理一音频处理装置输出音频时的音量,包括步骤:周期性地获得一数字音频信号在一第一预设时间段内的多个取样值及当前增益值;根据该多个取样值及当前增益值,计算该第一预设时间段内该数字音频信号的实际音频能量值;侦测环境噪音的音量级;根据该环境噪音的音量级获得一参考音频能量值;比较该实际音频能量值与该参考音频能量值,当该实际音频能量值大于该参考音频能量值时,调低当前增益值。In view of this, it is necessary to provide a volume management method for managing the volume when an audio processing device outputs audio, comprising the steps of: periodically obtaining a plurality of samples of a digital audio signal within a first preset time period value and the current gain value; according to the plurality of sampling values and the current gain value, calculate the actual audio energy value of the digital audio signal in the first preset time period; detect the volume level of the environmental noise; according to the volume of the environmental noise obtain a reference audio energy value; compare the actual audio energy value with the reference audio energy value, and lower the current gain value when the actual audio energy value is greater than the reference audio energy value.
有鉴于此,还有必要提供一种音频处理装置,包括一中央处理单元、一解码单元、一音量控制单元及一音量管理单元。该解码单元用于解码一音频文档,生成一数字音频信号。该音量管理单元,在该中央处理单元的控制下,周期性地获得该数字音频信号在一第一预设时间段内的多个取样值,并从该音量控制单元获得当前增益值;根据该多个取样值及当前增益值,计算该第一预设时间段内该数字音频信号的实际音频能量值;侦测环境噪音的音量级;根据该环境噪音的音量级获得一参考音频能量值;比较该实际音频能量值与该参考音频能量值,当该实际音频能量值大于该参考音频能量值时,调低当前增益值。In view of this, it is necessary to provide an audio processing device including a central processing unit, a decoding unit, a volume control unit and a volume management unit. The decoding unit is used for decoding an audio file to generate a digital audio signal. The volume management unit, under the control of the central processing unit, periodically obtains a plurality of sampling values of the digital audio signal within a first preset time period, and obtains a current gain value from the volume control unit; according to the A plurality of sampling values and current gain values, calculating the actual audio energy value of the digital audio signal within the first preset time period; detecting the volume level of ambient noise; obtaining a reference audio energy value according to the volume level of the environmental noise; comparing the actual audio energy value with the reference audio energy value, and lowering the current gain value when the actual audio energy value is greater than the reference audio energy value.
相较于现有技术,所述音量管理方法及自动调节音量的音频处理装置,获得环境噪音的音量级,并根据该环境噪音的音量级获得一参考音频能量值,当前输出的音频信号的实际音频能量值大于该参考音频能量值时,才调低当前增益值。使得既能够保护用户耳朵免受伤害,又能够使得用户在环境噪音较大时仍能够在适当的音量级下欣赏音乐。下面将结合附图对本发明的实施方式进行说明。Compared with the prior art, the volume management method and the audio processing device for automatically adjusting the volume obtain the volume level of the environmental noise, and obtain a reference audio energy value according to the volume level of the environmental noise. When the audio energy value is greater than the reference audio energy value, the current gain value is lowered. This not only protects the user's ears from damage, but also enables the user to enjoy music at an appropriate volume level when the ambient noise is relatively high. Embodiments of the present invention will be described below in conjunction with the accompanying drawings.
【附图说明】【Description of drawings】
图1是本发明的一实施方式中音频处理装置的架构图。FIG. 1 is a structural diagram of an audio processing device in an embodiment of the present invention.
图2是本发明的一实施方式中音量管理单元的模块图。Fig. 2 is a block diagram of a volume management unit in an embodiment of the present invention.
图3是传统上播放音频的流程图。Figure 3 is a flow chart of traditionally playing audio.
图4是本发明的一实施方式中调节音量的流程图。Fig. 4 is a flowchart of volume adjustment in an embodiment of the present invention.
图5是本发明的另一实施方式中调节音量的流程图。Fig. 5 is a flowchart of volume adjustment in another embodiment of the present invention.
【具体实施方式】【Detailed ways】
本发明提供的音量管理系统及方法可用于许多电子设备的音频处理装置中,该电子设备可为汽车音响、家庭影院、音频再现装置、电子阅读装置等,本实施方式列举一音频再现装置的音频处理装置进行介绍。The volume management system and method provided by the present invention can be used in audio processing devices of many electronic devices, such as car audio, home theater, audio reproduction devices, electronic reading devices, etc. The processing device is introduced.
如图1所示是一实施方式中音频处理装置的架构图。该音频处理装置10包括一存储单元11、一输入单元12、一中央处理单元13、一解码单元14、一数模转换器15、一音量控制单元16、一音频输出装置17、一音量管理单元18、一麦克风19及一模数转换器20。As shown in FIG. 1 , it is a structural diagram of an audio processing device in an embodiment. The
该存储单元11存储有多个音频文档及解码程序。该输入单元12用于响应用户的操作,从而产生并向该中央处理单元13发送一命令信号。该中央处理单元13用于控制该音频处理装置中各单元的操作,其识别该命令信号并向该解码单元14发送一控制信号。该解码单元14响应该中央处理单元13发送的一请求播放音频的控制信号,读取一音频文档,并执行解码程序解码该音频文档从而生成数字音频信号。该数模转换器15将该数字音频信号转换为模拟音频信号。该音量控制单元16用于放大该模拟音频信号。该音频输出装置17用于输出该模拟音频信号对应的声音。该音频输出装置17可为一耳机或一扬声器。The
该音量管理单元18对该解码单元14输出的数字音频信号进行取样,周期性地获得一第一预设时间段T1内的多个振幅值mi;并从该音量控制单元16获得当前增益值V;然后根据该多个振幅值mi及该增益值V,应用一数学算法计算该第一预设时间段T1内的实际音频能量值Q,例如,该数学算法可为但不限于:Q=[∑(mi*V)2/N]1/2(其中,i从1到N),Q表示该实际音频能量值,V表示当前增益值,N表示该第一预设时间段T1内获得该数字音频信号的振幅值mi的数目。The
同时,麦克风19实时地感应环境噪音并生成模拟噪音信号。该模数转换器20将该模拟噪音信号转换为数字噪音信号。该音量管理单元18计算出该数字噪音信号的音量级,并根据该数字噪音信号的音量级获得一参考音频能量值。At the same time, the
其中,获得该参考音频能量值的方法可为:读取存储于该存储单元11的一对应表中该音量级对应的参考音频能量值,该对应表中存储有多个环境噪音的音量级及其对应的参考音频能量值。Wherein, the method for obtaining the reference audio energy value may be: read the reference audio energy value corresponding to the volume level in a correspondence table stored in the
另外,获得该参考音频能量值的方法还可为:计算出该数字噪音信号的音量级相较于一预设噪音音量级的变化率,然后根据该变化率及一预设音频能量值,生成一参考音频能量值。该参考音频能量值随着环境噪音的增减而适当地增减,使得噪音较小的环境下,输出声音的最大音量稍微小些,而使得噪音较大的环境下,输出声音的最大音量稍微大些,从而既能保护用户听力又使得用户能够听清音频。In addition, the method for obtaining the reference audio energy value may also be: calculate the change rate of the volume level of the digital noise signal compared to a preset noise volume level, and then generate A reference audio energy value. The reference audio energy value is appropriately increased or decreased with the increase or decrease of the ambient noise, so that in an environment with low noise, the maximum volume of the output sound is slightly lower, and in a noisy environment, the maximum volume of the output sound is slightly lower. Larger, so as to not only protect the user's hearing but also enable the user to hear the audio clearly.
接着,该音量管理单元18比较该实际音频能量值与该参考音频能量值,当该实际音频能量值大于该参考音频能量值时,该音量管理单元18则自动调低当前增益值,或者驱动该中央处理单元13输出提示音,以提醒用户调低当前增益值。其中,自动调低当前增益值具体可为,每次调低一固定增益值,直到该实际音频能量值不大于该参考音频能量值为止。Next, the
如图2所示是一实施方式中音量管理单元18的模块图。该音量管理单元18包括:一取样模块180、一获得模块181、一计算模块182、一噪音处理模块183及一增益控制模块184。该取样模块180周期性地获得数字音频信号在该第一预设时间段T1内的多个取样值mi。该获得模块181,用于从该音量控制单元16获得当前增益值。该计算模块182,根据该多个取样值mi及当前增益值V,应用上述数学算法计算该第一预设时间段T1内的实际音频能量值Q。该噪音处理模块183,用于侦测环境噪音的音量级。该增益控制模块184,根据该环境噪音的音量级获得一参考音频能量值;比较该实际音频能量值与该参考音频能量值,当该实际音频能量值大于该参考音频能量值时,调低当前增益值。FIG. 2 is a block diagram of the
如图3所示是传统上播放音频的流程图。当用户根据该输入单元12选择一音频文档进行播放时,该输入单元12向该中央处理单元13发送一请求播放音频的命令信号,该中央处理单元13识别该命令信号并向该解码单元14发送一控制信号(步骤S30)。该解码单元14响应该控制信号,从该存储单元11中读取该音频文档(步骤S31),并在该中央处理单元13的控制下解码该音频文档产生一数字音频信号,然后将该数字音频信号传送至该数模转换器15(步骤S32)。该数模转换器15将该数字音频信号转换为模拟音频信号,并将该模拟音频信号传送至该音量控制单元16(步骤S33)。该音量控制单元16根据当前增益值放大该模拟音频信号,并将放大后的模拟音频信号传送到该音频输出装置17(步骤S34)。该音频输出装置17输出该模拟音频信号对应的声音(步骤S35)。As shown in Figure 3, it is a flow chart of traditionally playing audio. When the user selects an audio file to play according to the
如图4所示是一实施方式中调节音量的流程图。在该音频处理装置播放音频的过程中,该音量管理单元18对该解码单元14输出的数字音频信号进行取样,获得该第一预设时间段T1内的多个振幅值mi(步骤S40);并从该音量控制单元16获得当前增益值V(步骤S41);然后该音量管理单元18根据该多个振幅值mi及该增益值V,计算该第一预设时间段T1内的实际音频能量值Q(步骤S42)。同时,该麦克风19感应环境噪音并生成一模拟噪音信号(步骤S43)。该模数转换器20将该模拟噪音信号转换为数字噪音信号(步骤S44)。该音量管理单元18计算出该数字噪音信号的音量级(步骤S45),并计算出该数字噪音信号的音量级相较于一预设噪音音量级的变化率(步骤S46),然后根据该变化率及一预设音频能量值,生成一参考音频能量值(步骤S47)。接着该音量管理单元18判断该实际音频能量值是否大于该参考音频能量值(步骤S48)?如果该实际音频能量值不大于该参考音频能量值,流程返回开始步骤,即上述流程循环进行;如果该实际音频能量值大于该参考音频能量值,该音量管理单元18则自动调低当前增益值,然后流程返回开始步骤,即上述流程循环进行(步骤S49)。As shown in FIG. 4 , it is a flow chart of volume adjustment in an embodiment. During the process of playing audio by the audio processing device, the
如图5所示是另一实施方式中调节音量的流程图。在该音频处理装置播放音频的过程中,该音量管理单元18对该解码单元14输出的数字音频信号进行取样,周期性地获得该第一预设时间段T1内的多个振幅值mi(步骤S50);并从该音量控制单元16获得当前增益值V(步骤S51);然后该音量管理单元18根据该多个振幅值mi及该增益值V,计算该第一预设时间段T1内的实际音频能量值Q(步骤S52)。同时,该麦克风19感应环境噪音并生成一模拟噪音信号(步骤S53)。该模数转换器20将该模拟噪音信号转换为数字噪音信号(步骤S54)。该音量管理单元18计算出该数字噪音信号的音量级(步骤S55),并读取一对应表中该数字噪音信号的音量级对应的参考音频能量值(步骤S56)。然后该音量管理单元18判断该实际音频能量值是否大于该参考音频能量值(步骤S57)?如果该实际音频能量值不大于该参考音频能量值,流程返回开始步骤;如果该实际音频能量值大于该参考音频能量值,该中央处理单元13控制该音频处理装置输出提示音,以提醒用户调低当前增益值(步骤S58)。然后流程返回开始步骤,继续计算上述实际音频能量值及参考音频能量值,如果实际音频能量值仍然大于参考音频能量值,该音量管理单元18则增加该提示音的增益值及/或提高该提示音的输出频率;直到实际音频能量值不大于参考音频能量值时,该中央处理单元13控制该音频处理装置停止输出该提示音。As shown in FIG. 5 , it is a flow chart of volume adjustment in another embodiment. During the process of playing audio by the audio processing device, the
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2005101207147A CN1983804B (en) | 2005-12-16 | 2005-12-16 | Audio-frequency processor and volume management method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2005101207147A CN1983804B (en) | 2005-12-16 | 2005-12-16 | Audio-frequency processor and volume management method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1983804A true CN1983804A (en) | 2007-06-20 |
| CN1983804B CN1983804B (en) | 2012-05-23 |
Family
ID=38166106
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2005101207147A Expired - Fee Related CN1983804B (en) | 2005-12-16 | 2005-12-16 | Audio-frequency processor and volume management method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1983804B (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102571011A (en) * | 2011-12-15 | 2012-07-11 | 无锡中星微电子有限公司 | Method and device for adjusting sound volume |
| CN102600012A (en) * | 2012-03-16 | 2012-07-25 | 深圳市福智软件技术有限公司 | Method and device for preventing ear fatigue |
| CN106170112A (en) * | 2016-08-12 | 2016-11-30 | 苏州秀转电子有限公司 | The sound volume regulating system of automobile audio |
| CN106201430A (en) * | 2016-08-31 | 2016-12-07 | 维沃移动通信有限公司 | Method and electronic device for adjusting volume |
| CN108198572A (en) * | 2017-12-29 | 2018-06-22 | 珠海市君天电子科技有限公司 | A kind of audio-frequency processing method and device |
| CN111344950A (en) * | 2017-09-27 | 2020-06-26 | 杜比国际公司 | Automatic gain compensation inference and correction |
| CN116095563A (en) * | 2023-03-06 | 2023-05-09 | 中山亿联智能科技有限公司 | Automatic adjusting audio output system and method based on environmental noise |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN2694428Y (en) * | 2004-03-26 | 2005-04-20 | 韩震 | Noise protection for earmuffs |
-
2005
- 2005-12-16 CN CN2005101207147A patent/CN1983804B/en not_active Expired - Fee Related
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102571011A (en) * | 2011-12-15 | 2012-07-11 | 无锡中星微电子有限公司 | Method and device for adjusting sound volume |
| CN102600012A (en) * | 2012-03-16 | 2012-07-25 | 深圳市福智软件技术有限公司 | Method and device for preventing ear fatigue |
| CN106170112A (en) * | 2016-08-12 | 2016-11-30 | 苏州秀转电子有限公司 | The sound volume regulating system of automobile audio |
| CN106201430A (en) * | 2016-08-31 | 2016-12-07 | 维沃移动通信有限公司 | Method and electronic device for adjusting volume |
| CN111344950A (en) * | 2017-09-27 | 2020-06-26 | 杜比国际公司 | Automatic gain compensation inference and correction |
| CN108198572A (en) * | 2017-12-29 | 2018-06-22 | 珠海市君天电子科技有限公司 | A kind of audio-frequency processing method and device |
| CN116095563A (en) * | 2023-03-06 | 2023-05-09 | 中山亿联智能科技有限公司 | Automatic adjusting audio output system and method based on environmental noise |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1983804B (en) | 2012-05-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103152668B (en) | Adjusting method of output audio and system thereof | |
| US8363854B2 (en) | Device and method for automatically adjusting gain | |
| US20090315708A1 (en) | Method and system for limiting audio output in audio headsets | |
| US20090279707A1 (en) | Listener Specific Audio Reproduction System | |
| KR100916726B1 (en) | Hearing threshold measurement device and method and audio signal output device using same and method | |
| US20180098720A1 (en) | A Method and Device for Conducting a Self-Administered Hearing Test | |
| CN1964187A (en) | A system and method to manage sound volume | |
| CN104811155A (en) | Balance device adjusting method and device | |
| JP2008521028A (en) | How to normalize recording volume | |
| US7756280B2 (en) | Audio processing system and method for automatically adjusting volume | |
| CN103746668A (en) | Sound volume control method and system | |
| US20070078546A1 (en) | Sound output system and method | |
| CN101060314B (en) | Hearing protection method and sound output device | |
| CN101026362B (en) | Hearing protection system, method and sound output device | |
| US20120033835A1 (en) | System and method for modifying an audio signal | |
| US20090232319A1 (en) | Audio playing apparatus and method thereof | |
| CN1983804A (en) | Audio-frequency processor and volume management | |
| CN111580778B (en) | Volume correction method and device, audio playing device and readable storage medium | |
| CN101060313B (en) | Hearing protection method and sound output device | |
| US8462964B2 (en) | Recording apparatus, recording method, audio signal correction circuit, and program | |
| CN1980054B (en) | Audio-frequency processing device and sound-volume management method | |
| CN1929298B (en) | Audio frequency processing system and method | |
| CN101026363A (en) | Hearing protection system, method and sound output device | |
| CN1941619B (en) | Volume management system and method | |
| US20070116296A1 (en) | Audio processing system and method for hearing protection in an ambient environment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120523 Termination date: 20141216 |
|
| EXPY | Termination of patent right or utility model |