[go: up one dir, main page]

CN1983804A - Audio-frequency processor and volume management - Google Patents

Audio-frequency processor and volume management Download PDF

Info

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
Application number
CN 200510120714
Other languages
Chinese (zh)
Other versions
CN1983804B (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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2005101207147A priority Critical patent/CN1983804B/en
Publication of CN1983804A publication Critical patent/CN1983804A/en
Application granted granted Critical
Publication of CN1983804B publication Critical patent/CN1983804B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Abstract

本发明提供了一种音量管理方法,包括下列步骤:周期性地获得一音频信号在一第一预设时间段内的多个取样值及当前增益值;根据该多个取样值及当前增益值,计算该第一预设时间段内的实际音频能量值;侦测环境噪音的音量级;根据该环境噪音的音量级获得一参考音频能量值;比较该实际音频能量值与该参考音频能量值,当该实际音频能量值大于该参考音频能量值时,调低当前增益值。本发明提供了一种音量管理系统。该音量管理方法既能够保护用户的听力免受伤害,又能够使得用户在环境噪音较大时仍能够在适当的音量级下欣赏音频。

Figure 200510120714

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.

Figure 200510120714

Description

音频处理装置及音量管理方法Audio processing device and volume management method

【技术领域】【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 audio processing device 10 includes a storage unit 11, an input unit 12, a central processing unit 13, a decoding unit 14, a digital-to-analog converter 15, a volume control unit 16, an audio output device 17, a volume management unit 18. A microphone 19 and an analog-to-digital converter 20 .

该存储单元11存储有多个音频文档及解码程序。该输入单元12用于响应用户的操作,从而产生并向该中央处理单元13发送一命令信号。该中央处理单元13用于控制该音频处理装置中各单元的操作,其识别该命令信号并向该解码单元14发送一控制信号。该解码单元14响应该中央处理单元13发送的一请求播放音频的控制信号,读取一音频文档,并执行解码程序解码该音频文档从而生成数字音频信号。该数模转换器15将该数字音频信号转换为模拟音频信号。该音量控制单元16用于放大该模拟音频信号。该音频输出装置17用于输出该模拟音频信号对应的声音。该音频输出装置17可为一耳机或一扬声器。The storage unit 11 stores a plurality of audio files and decoding programs. The input unit 12 is used for generating and sending a command signal to the central processing unit 13 in response to a user's operation. The central processing unit 13 is used to control the operation of each unit in the audio processing device, which recognizes the command signal and sends a control signal to the decoding unit 14 . The decoding unit 14 reads an audio file in response to a control signal requesting to play audio sent by the central processing unit 13 , and executes a decoding program to decode the audio file to generate a digital audio signal. The digital-to-analog converter 15 converts the digital audio signal into an analog audio signal. The volume control unit 16 is used to amplify the analog audio signal. The audio output device 17 is used to output the sound corresponding to the analog audio signal. The audio output device 17 can be an earphone or a speaker.

该音量管理单元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 volume management unit 18 samples the digital audio signal output by the decoding unit 14, periodically obtains a plurality of amplitude values mi within a first preset time period T1; and obtains the current gain value V from the volume control unit 16 ; Then according to the multiple amplitude values mi and the gain value V, apply a mathematical algorithm to calculate the actual audio energy value Q in the first preset time period T1, for example, the mathematical algorithm can be but not limited to: Q=[ ∑(mi*V)2/N]1/2 (wherein, i is from 1 to N), Q represents the actual audio energy value, V represents the current gain value, and N represents the value obtained within the first preset time period T1 The number of amplitude values mi of the digital audio signal.

同时,麦克风19实时地感应环境噪音并生成模拟噪音信号。该模数转换器20将该模拟噪音信号转换为数字噪音信号。该音量管理单元18计算出该数字噪音信号的音量级,并根据该数字噪音信号的音量级获得一参考音频能量值。At the same time, the microphone 19 senses the ambient noise in real time and generates an analog noise signal. The analog-to-digital converter 20 converts the analog noise signal into a digital noise signal. The volume management unit 18 calculates the volume level of the digital noise signal, and obtains a reference audio energy value according to the volume level of the digital noise signal.

其中,获得该参考音频能量值的方法可为:读取存储于该存储单元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 storage unit 11, the volume level and the volume of a plurality of environmental noises are stored in the correspondence table. Its corresponding reference audio energy value.

另外,获得该参考音频能量值的方法还可为:计算出该数字噪音信号的音量级相较于一预设噪音音量级的变化率,然后根据该变化率及一预设音频能量值,生成一参考音频能量值。该参考音频能量值随着环境噪音的增减而适当地增减,使得噪音较小的环境下,输出声音的最大音量稍微小些,而使得噪音较大的环境下,输出声音的最大音量稍微大些,从而既能保护用户听力又使得用户能够听清音频。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 volume management unit 18 compares the actual audio energy value with the reference audio energy value, and when the actual audio energy value is greater than the reference audio energy value, the volume management unit 18 automatically lowers the current gain value, or drives the The central processing unit 13 outputs a prompt sound to remind the user to lower the current gain value. Wherein, the automatic lowering of the current gain value may specifically be lowering a fixed gain value each time until the actual audio energy value is not greater than the reference audio energy value.

如图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 volume management unit 18 in an embodiment. The volume management unit 18 includes: a sampling module 180 , an obtaining module 181 , a calculation module 182 , a noise processing module 183 and a gain control module 184 . The sampling module 180 periodically obtains a plurality of sampling values mi of the digital audio signal within the first preset time period T1. The obtaining module 181 is configured to obtain the current gain value from the volume control unit 16 . The calculation module 182 calculates the actual audio energy value Q within the first preset time period T1 by applying the above-mentioned mathematical algorithm according to the plurality of sampled values mi and the current gain value V. The noise processing module 183 is used for detecting the volume level of the ambient noise. The gain control module 184 obtains a reference audio energy value according to the volume level of the ambient noise; compares the actual audio energy value with the reference audio energy value, and lowers the current audio energy value when the actual audio energy value is greater than the reference audio energy value. gain value.

如图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 input unit 12, the input unit 12 sends a command signal requesting audio playback to the central processing unit 13, and the central processing unit 13 recognizes the command signal and sends it to the decoding unit 14. a control signal (step S30). The decoding unit 14 reads the audio file from the storage unit 11 in response to the control signal (step S31), and decodes the audio file under the control of the central processing unit 13 to generate a digital audio signal, and then the digital audio The signal is sent to the digital-to-analog converter 15 (step S32). The digital-to-analog converter 15 converts the digital audio signal into an analog audio signal, and transmits the analog audio signal to the volume control unit 16 (step S33). The volume control unit 16 amplifies the analog audio signal according to the current gain value, and transmits the amplified analog audio signal to the audio output device 17 (step S34). The audio output device 17 outputs the sound corresponding to the analog audio signal (step S35).

如图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 volume management unit 18 samples the digital audio signal output by the decoding unit 14 to obtain a plurality of amplitude values mi within the first preset time period T1 (step S40); And obtain the current gain value V from the volume control unit 16 (step S41); then the volume management unit 18 calculates the actual audio energy in the first preset time period T1 according to the multiple amplitude values mi and the gain value V value Q (step S42). At the same time, the microphone 19 senses ambient noise and generates an analog noise signal (step S43). The analog-to-digital converter 20 converts the analog noise signal into a digital noise signal (step S44). The volume management unit 18 calculates the volume level of the digital noise signal (step S45), and calculates the rate of change of the volume level of the digital noise signal compared to a preset noise level (step S46), and then according to the change rate and a preset audio energy value to generate a reference audio energy value (step S47). Then the volume management unit 18 judges whether the actual audio energy value is greater than the reference audio energy value (step S48)? If the actual audio energy value is not greater than the reference audio energy value, the process returns to the start step, that is, the above-mentioned process is cyclically carried out; if the actual audio energy value is greater than the reference audio energy value, the volume management unit 18 automatically lowers the current gain value , and then the process returns to the start step, that is, the above-mentioned process is performed in a loop (step S49).

如图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 volume management unit 18 samples the digital audio signal output by the decoding unit 14, and periodically obtains a plurality of amplitude values mi within the first preset time period T1 (step S50); and obtain the current gain value V from the volume control unit 16 (step S51); then the volume management unit 18 calculates the first preset time period T1 according to the multiple amplitude values mi and the gain value V Actual audio energy value Q (step S52). At the same time, the microphone 19 senses ambient noise and generates an analog noise signal (step S53). The analog-to-digital converter 20 converts the analog noise signal into a digital noise signal (step S54). The volume management unit 18 calculates the volume level of the digital noise signal (step S55 ), and reads the reference audio energy value corresponding to the volume level of the digital noise signal in a correspondence table (step S56 ). Then the volume management unit 18 judges whether the actual audio energy value is greater than the reference audio energy value (step S57)? If the actual audio energy value is not greater than the reference audio energy value, the flow returns to the initial step; if the actual audio energy value is greater than the reference audio energy value, the central processing unit 13 controls the audio processing device to output a prompt sound to remind the user to adjust Lower the current gain value (step S58). Then the process returns to the start step, and continues to calculate the above-mentioned actual audio energy value and reference audio energy value, if the actual audio energy value is still greater than the reference audio energy value, the volume management unit 18 increases the gain value of the prompt sound and/or improves the prompt The output frequency of the sound; until the actual audio energy value is not greater than the reference audio energy value, the central processing unit 13 controls the audio processing device to stop outputting the prompt sound.

Claims (12)

1.一种音量管理方法,用于管理一音频处理装置输出音频时的音量,其特征在于,包括步骤:1. A volume management method, for managing the volume when an audio processing device outputs audio, it is characterized in that, comprising steps: 周期性地获得一数字音频信号在一预设时间段内的多个取样值及当前增益值;Periodically obtain multiple sampling values and current gain values of a digital audio signal within a preset time period; 根据该多个取样值及当前增益值,计算该预设时间段内该数字音频信号的实际音频能量值;calculating an actual audio energy value of the digital audio signal within the preset time period according to the multiple sampling values and the current gain value; 侦测环境噪音的音量级;Detect the volume level of ambient noise; 根据该环境噪音的音量级获得一参考音频能量值;及obtaining a reference audio energy value according to the volume level of the ambient noise; and 比较该实际音频能量值与该参考音频能量值,当该实际音频能量值大于该参考音频能量值时,调低当前增益值。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. 2.如权利要求1所述的音量管理方法,其特征在于,获得该参考音频能量值的方法可为提供一对应表,读取该对应表中该环境噪音的音量级对应的参考音频能量值。2. The volume management method according to claim 1, wherein the method for obtaining the reference audio energy value is to provide a correspondence table, and read the reference audio energy value corresponding to the volume level of the ambient noise in the correspondence table . 3.如权利要求1所述的音量管理方法,其特征在于,获得该参考音频能量值的方法可为比较该环境噪音的音量级与一预设噪音音量级,计算一变化率;根据该变化率及一预设音频能量值,生成一参考音频能量值。3. The volume management method according to claim 1, wherein the method for obtaining the reference audio energy value is to compare the volume level of the ambient noise with a preset noise level, and calculate a rate of change; according to the change rate and a preset audio energy value to generate a reference audio energy value. 4.如权利要求1所述的音量管理方法,其特征在于,调低当前增益值的方法可为自动调低当前增益值。4. The volume management method according to claim 1, wherein the method of lowering the current gain value is to automatically lower the current gain value. 5.如权利要求1所述的音量管理方法,其特征在于,调低当前增益值的方法可为输出提示音提醒用户手动调低当前增益值。5. The volume management method according to claim 1, wherein the method of lowering the current gain value is to output a prompt sound to remind the user to manually lower the current gain value. 6.如权利要求5所述的音量管理方法,其特征在于,如果下一周期的实际音频能量值仍然大于参考音频能量值,则提高该提示音的音量及/或该提示音的输出频率。6. The volume management method according to claim 5, wherein if the actual audio energy value in the next period is still greater than the reference audio energy value, then increase the volume of the prompt sound and/or the output frequency of the prompt sound. 7.一种音频处理装置,包括一中央处理单元、一解码单元、一音量控制单元及一音量管理单元,该解码单元用于解码一音频文档,生成一数字音频信号;其特征在于:7. An audio processing device, comprising a central processing unit, a decoding unit, a volume control unit and a volume management unit, the decoding unit is used to decode an audio file to generate a digital audio signal; it is characterized in that: 该音量管理单元,在该中央处理单元的控制下,周期性地获得该数字音频信号在一预设时间段内的多个取样值,并从该音量控制单元获得当前增益值;根据该多个取样值及当前增益值,计算该预设时间段内该数字音频信号的实际音频能量值;侦测环境噪音的音量级;根据该环境噪音的音量级获得一参考音频能量值;比较该实际音频能量值与该参考音频能量值,当该实际音频能量值大于该参考音频能量值时,调低当前增益值。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 preset time period, and obtains a current gain value from the volume control unit; according to the plurality of sampling values Sampling value and current gain value, calculate the actual audio energy value of the digital audio signal within the preset time period; detect the volume level of the ambient noise; obtain a reference audio energy value according to the volume level of the environmental noise; compare the actual audio energy value and the reference audio energy value, when the actual audio energy value is greater than the reference audio energy value, the current gain value is lowered. 8.如权利要求7所述的音频处理装置,其特征在于,该音量管理单元获得该参考音频能量值具体可为提供一对应表,读取该对应表中该环境噪音的音量级对应的参考音频能量值。8. The audio processing device according to claim 7, wherein the volume management unit obtains the reference audio energy value by providing a correspondence table, and reading the reference corresponding to the volume level of the ambient noise in the correspondence table. Audio energy value. 9.如权利要求7所述的音频处理装置,其特征在于,该音量管理单元获得该参考音频能量值具体可为,比较该环境噪音的音量级与一预设噪音音量级,计算一变化率;根据该变化率及一预设音频能量值,生成一参考音频能量值。9. The audio processing device according to claim 7, wherein the volume management unit obtains the reference audio energy value by comparing the volume level of the ambient noise with a preset noise level, and calculating a rate of change ; Generate a reference audio energy value according to the change rate and a preset audio energy value. 10.如权利要求7所述的音频处理装置,其特征在于,该音量管理单元调低当前增益值具体可为,自动调低当前增益值。10 . The audio processing device according to claim 7 , wherein the volume management unit lowers the current gain value, specifically, automatically lowers the current gain value. 11 . 11.如权利要求7所述的音频处理装置,其特征在于,该音频处理单元调低当前增益值的方法可为,输出提示音提醒用户手动调低当前增益值。11. The audio processing device according to claim 7, wherein the audio processing unit lowers the current gain value by outputting a prompt sound to remind the user to manually lower the current gain value. 12.如权利要求11所述的音频处理装置,其特征在于,如果下一周期的实际音频能量值仍然大于参考音频能量值,该音量管理单元则提高该提示音的音量及/或该提示音的输出频率。12. The audio processing device according to claim 11, wherein if the actual audio energy value of the next period is still greater than the reference audio energy value, the volume management unit increases the volume of the prompt sound and/or the prompt sound output frequency.
CN2005101207147A 2005-12-16 2005-12-16 Audio-frequency processor and volume management method Expired - Fee Related CN1983804B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2694428Y (en) * 2004-03-26 2005-04-20 韩震 Noise protection for earmuffs

Cited By (7)

* Cited by examiner, † Cited by third party
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