[go: up one dir, main page]

CN1980054B - Audio-frequency processing device and sound-volume management method - Google Patents

Audio-frequency processing device and sound-volume management method Download PDF

Info

Publication number
CN1980054B
CN1980054B CN2005101019913A CN200510101991A CN1980054B CN 1980054 B CN1980054 B CN 1980054B CN 2005101019913 A CN2005101019913 A CN 2005101019913A CN 200510101991 A CN200510101991 A CN 200510101991A CN 1980054 B CN1980054 B CN 1980054B
Authority
CN
China
Prior art keywords
audio
noise
volume
digital
signal
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.)
Expired - Fee Related
Application number
CN2005101019913A
Other languages
Chinese (zh)
Other versions
CN1980054A (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 CN2005101019913A priority Critical patent/CN1980054B/en
Publication of CN1980054A publication Critical patent/CN1980054A/en
Application granted granted Critical
Publication of CN1980054B publication Critical patent/CN1980054B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Abstract

一种音频处理装置及其音量管理方法,听众手动调节音量时,该音量管理系统计算一预设时间段的平均噪音音量级,并将该平均噪音音量级设定为一参考噪音音量级。此后周期性地计算当前平均噪音音量级,并计算当前平均噪音音量级相较于该参考噪音音量级的变化率;同时周期性地计算音频信号的音频能量值。根据该变化率及该音频能量值调节该音频能量值,并藉此计算出较佳增益值,然后发送该较佳增益值到一音量控制单元用于放大音频信号。在噪音大小频繁变化的环境中,本发明使得听众既能够减少手动操作,使得听众在适当的音量级下收听音频。

Figure 200510101991

An audio processing device and its volume management method. When a listener manually adjusts the volume, the volume management system calculates the average noise volume level for a preset time period, and sets the average noise volume level as a reference noise volume level. Thereafter, periodically calculate the current average noise volume level, and calculate the change rate of the current average noise volume level compared to the reference noise volume level; meanwhile, periodically calculate the audio energy value of the audio signal. The audio energy value is adjusted according to the change rate and the audio energy value to calculate a better gain value, and then send the better gain value to a volume control unit for amplifying the audio signal. In an environment where the noise level changes frequently, the present invention enables the listener to reduce manual operations, so that the listener can listen to the audio at an appropriate volume level.

Figure 200510101991

Description

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

【技术领域】 【Technical field】

本发明关于一种音频处理装置及其音量管理方法,尤其关于一种根据环境噪音的变换而自动调节音量的系统及方法。The present invention relates to an audio processing device and its volume management method, in particular to a system and method for automatically adjusting volume according to changes in ambient noise.

【背景技术】 【Background technique】

随着数字技术的发展,音频处理系统也越来越完善,音质越来越清晰且逼真。然而,普通的音频处理系统仍然无法补偿在环境噪音带来的影响,尤其当听众处于噪音音量变化比较频繁的环境中,听众听到的音频声音会时大时小,有时候甚至会被环境噪音所覆盖。有鉴于此,听众需要频繁地调节音量,即环境噪音较大时,调大音量,而当环境噪音音量较小时,调小音量。这样会使得听众非常厌烦,特别是当听众在驾驶汽车时还会带来潜在的危险。With the development of digital technology, the audio processing system has become more and more perfect, and the sound quality has become clearer and more realistic. However, ordinary audio processing systems are still unable to compensate for the impact of environmental noise, especially when the listener is in an environment where the noise volume changes frequently. covered by. In view of this, listeners need to adjust the volume frequently, that is, when the ambient noise is loud, turn up the volume, and when the ambient noise is low, turn down the volume. This can be very annoying to the listener, especially when the listener is driving a car and potentially dangerous.

为了解决该问题,市场上出现了一种为了补偿环境噪音而自动控制音量的装置及方法。该自动控制音量的方法包括下列步骤:当用户手动调节音量后,该自动控制音量的装置计算出信噪比,并将该信噪比设定为参考信噪比;然后该自动控制音量的装置周期性地计算当前实际信噪比;并将该当前实际信噪比与该参考信噪比进行比较,计算出放大增益系数;根据该放大增益系数发送一增益值信号到放大器,用于调节当前增益值从而调节音量;如果该自动控制音量的装置接收到用户手动调节音量的控制信号,则重新生成参考信噪比。In order to solve this problem, a device and method for automatically controlling volume in order to compensate for environmental noise have appeared on the market. The method for automatically controlling the volume comprises the following steps: after the user manually adjusts the volume, the device for automatically controlling the volume calculates the signal-to-noise ratio, and sets the signal-to-noise ratio as a reference signal-to-noise ratio; then the device for automatically controlling the volume Periodically calculate the current actual signal-to-noise ratio; compare the current actual signal-to-noise ratio with the reference signal-to-noise ratio, and calculate the amplification gain coefficient; send a gain value signal to the amplifier according to the amplification gain coefficient to adjust the current The gain value is used to adjust the volume; if the device for automatically controlling the volume receives a control signal for the user to manually adjust the volume, the reference signal-to-noise ratio is regenerated.

然而,根据信噪比的变化自动调节音量,如果开始噪音的音量非常小的情况下,则信噪比会非常大,而如果在保持信噪比不变的情况下,噪音的音量增加一倍事实上噪音也不会影响很大,然而如果信号的强度随之增加一倍将使得听众无法忍受。另外,音频信号对听众耳朵的冲击是由音频强度决定,而不仅仅是由增益值决定,所以单纯调节音量并不够合理。However, the volume is automatically adjusted according to the change of the signal-to-noise ratio. If the volume of the noise is very small at the beginning, the signal-to-noise ratio will be very large, and if the volume of the noise is doubled while keeping the signal-to-noise ratio unchanged. In fact, the noise will not affect much, but if the signal strength is doubled, it will make the listener intolerable. In addition, the impact of the audio signal on the listener's ears is determined by the audio intensity, not just by the gain value, so simply adjusting the volume is not reasonable enough.

【发明内容】 【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, including the step of: adjusting the current gain value in response to a control signal for manually adjusting the volume by the user. The digital noise signal is obtained, and the average noise volume level of the digital noise signal within a first preset time period is calculated, and the average noise volume level is set as a reference noise volume level. Obtain a digital noise signal, calculate the average noise volume level of the digital noise signal within the second preset time period, and calculate the change rate of the average noise volume level of the digital noise signal compared to the reference noise volume level. At the same time, periodically obtain a plurality of sampling values and current gain values of the digital audio signal in the second preset time period, and calculate the digital audio signal in the second preset time period according to the plurality of sampling values and the current gain value audio energy value. Taking the rate of change and the audio energy value of the digital audio signal as parameters, thereby determining the adjustment range of the audio energy value of the digital audio signal; calculating a better Gain value, and send the signal of the better gain 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, a microphone, an analog-to-digital converter and a volume management unit. The decoding unit is used for decoding an audio file to generate a digital audio signal. The microphone senses ambient noise to generate an analog noise signal. The analog-to-digital converter converts the analog noise signal into a digital noise signal. Wherein, the volume management unit, under the control of the central processing unit, adjusts the current gain value in response to the control signal of the user manually adjusting the volume; obtains the digital noise signal, and calculates the digital noise signal within a first preset time period The average noise volume level, setting the average noise volume level as a reference noise volume level; periodically obtaining the digital noise signal, calculating the average noise volume level of the digital noise signal within a second preset time period, and Calculate the change rate of the average noise volume level of the digital noise signal compared to the reference noise volume level; at the same time, periodically obtain a plurality of sampling values and current gain values of the digital audio signal within the second preset time period, and Calculate the audio energy value of the digital audio signal within the second preset time period according to the plurality of sampling values and the current gain value; use the rate of change and the audio energy value of the digital audio signal as parameters, thereby determining the digital audio signal The adjustment range of the audio energy value; calculate the optimal gain value according to the multiple sampling values of the audio signal and the adjusted audio energy value; and send the optimal gain value signal to the volume control unit.

相较于现有技术,所述音频处理装置及其音量管理方法,根据环境噪音音量的变化而调节音频再现装置输出音频的音量,使得用户在噪音环境下既能够在适当的音量级下欣赏音乐,又能避免许多不必要的手动调节音量的步骤。下面将结合附图对本发明的实施方式进行说明。Compared with the prior art, the audio processing device and its volume management method adjust the volume of the audio output from the audio reproduction device according to changes in the volume of ambient noise, so that users can enjoy music at an appropriate volume level in a noisy environment , and can avoid many unnecessary steps of manually adjusting the volume. 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 of the present invention in an embodiment.

图2是本发明音频处理装置中音量管理单元的模块图。Fig. 2 is a block diagram of the volume management unit in the audio processing device of the present invention.

图3是传统上播放音频的流程图。Figure 3 is a flow chart of traditionally playing audio.

图4是本发明的音量管理方法的流程图。Fig. 4 is a flow chart of the volume management method of the present invention.

【具体实施方式】 【Detailed ways】

本发明提供的音量管理方法可用于许多电子设备的音频处理装置中,该电子设备可为汽车音响、家庭影院、音频再现装置、电子阅读装置等,本实施方式列举一音频再现装置的音频处理装置进行介绍。The volume management method provided by the present invention can be used in audio processing devices of many electronic devices, such electronic devices can be car stereos, home theaters, audio reproduction devices, electronic reading devices, etc. This embodiment lists an audio processing device of an audio reproduction device Make an introduction.

如图1所示是本实施方式中该音频处理装置10的架构图。该音频处理装置10包括一存储单元11、一输入单元12、一中央处理单元13、一解码单元14、一数模转换器15、一音量控制单元16、一音频输出装置17、一音量管理单元18、一麦克风19及一模数转换器20。FIG. 1 is a structural diagram of the audio processing device 10 in this 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用于控制该音频处理装置中各单元的操作,其识别该输入单元12发送的该命令信号并向该解码单元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. It recognizes the command signal sent by the input unit 12 and sends a control signal requesting to play audio 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输出的数字音频信号进行取样,周期性地获得一第二预设时间段T2内的多个取样值mi,其中该取样值可为振幅值;并从该音量控制单元16获得当前增益值V;然后根据该多个取样值mi及该增益值V,应用一数学算法计算该第二预设时间段T2内的音频能量值Q,例如,该数学算法可为但不限于:Q=[∑(mi*V)2/N]1/2*T2(其中,i从1到N),Q表示该音频能量值,V表示当前增益值,T2表示第二预设时间段,N表示该第二预设时间段T2内获得该数字音频信号的取样值mi的数目。The volume management unit 18 samples the digital audio signal output by the decoding unit 14, and periodically obtains a plurality of sampling values mi within a second preset time period T2, wherein the sampling values can be amplitude values; and from the The volume control unit 16 obtains the current gain value V; and then applies a mathematical algorithm to calculate the audio energy value Q within the second preset time period T2 according to the plurality of sampled values mi and the gain value V. For example, the mathematical algorithm can be For but not limited to: Q=[∑(mi*V)2/N] 1/2 *T2 (wherein, i is from 1 to N), Q represents the audio energy value, V represents the current gain value, and T2 represents the second In the preset time period, N represents the number of sampling values mi of the digital audio signal obtained within the second preset time period T2.

同时,该麦克风19实时地感应环境噪音并生成模拟噪音信号。该模数转换器20将该模拟噪音信号转换为数字噪音信号。当该中央处理单元13接收到用户手动调节音量的控制信号时,该音量管理单元18获取该数字噪音信号,并计算出该数字噪音信号在一第一预设时间段内的平均噪音音量级,将该平均噪音音量级设定为一参考噪音音量级。然后周期性地获得数字噪音信号,计算出该数字噪音信号在该第二预设时间段内的平均噪音音量级,并计算出该数字噪音信号的平均噪音音量级相较于该参考噪音音量级的变化率。同时周期性地获得该第二预设时间段内数字音频信号的多个取样值及当前增益值,并根据该多个取样值及当前增益值,计算出该第二预设时间段内该数字音频信号的音频能量值。接着,该音量管理单元18将该变化率及该数字音频信号的音频能量值作为参数,从而确定该数字音频信号的音频能量值的调节幅度;根据该音频信号的多个取样值及调节后的音频能量值计算出较佳增益值;并将该较佳增益值信号发送到该音量控制单元16。At the same time, the microphone 19 senses 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. When the central processing unit 13 receives the control signal for the user to manually adjust the volume, the volume management unit 18 acquires the digital noise signal, and calculates the average noise volume level of the digital noise signal within a first preset time period, The average noise level is set as a reference noise level. Then periodically obtain the digital noise signal, calculate the average noise volume level of the digital noise signal in the second preset time period, and calculate the average noise volume level of the digital noise signal compared with the reference noise volume level rate of change. At the same time, periodically obtain a plurality of sampling values and the current gain value of the digital audio signal in the second preset time period, and calculate the digital audio signal in the second preset time period according to the plurality of sampling values and the current gain value The audio energy value of the audio signal. Then, the volume management unit 18 takes the rate of change and the audio energy value of the digital audio signal as parameters, thereby determining the adjustment range of the audio energy value of the digital audio signal; A better gain value is calculated from the audio energy value; and the better gain value signal is sent to the volume control unit 16 .

如图2所示是本实施方式中该音频处理装置10中该音量管理单元18的模块图。该音量管理单元18包括一噪音处理模块180、一音频处理模块181及一增益控制模块182。该中央处理单元13响应用户手动调节音量的控制信号,控制该音量控制单元16调节当前增益值。该噪音处理模块180响应用户手动调节音量的控制信号,从该模数转换器20获得数字噪音信号,并计算该数字噪音信号在一第一预设时间段T1内的平均噪音音量级,将该平均噪音音量级设定为一参考噪音音量级;然后周期性地从该模数转换器20获得数字噪音信号,计算该数字噪音信号在一第二预设时间段T2内的平均噪音音量级,并计算出该数字噪音信号的平均噪音音量级相较于该参考噪音音量级的变化率。该音频处理模块181,周期性地从该解码单元14获得该第二预设时间段T2内数字音频信号的多个取样值mi及当前增益值V,并根据该多个取样值及当前增益值应用上述数学算法计算该第二预设时间段T2内该数字音频信号的音频能量值Q。该增益控制模块182,将该变化率及该数字音频信号的音频能量值Q作为参数,从而确定该数字音频信号的音频能量值Q的调节幅度,根据该音频信号的多个取样值mi及调节后的音频能量值Q计算出较佳增益值,并将该较佳增益值信号发送到该音量控制单元16。FIG. 2 is a block diagram of the volume management unit 18 in the audio processing device 10 in this embodiment. The volume management unit 18 includes a noise processing module 180 , an audio processing module 181 and a gain control module 182 . The central processing unit 13 controls the volume control unit 16 to adjust the current gain value in response to the control signal for the user to manually adjust the volume. The noise processing module 180 responds to the control signal for the user to manually adjust the volume, obtains the digital noise signal from the analog-to-digital converter 20, and calculates the average noise volume level of the digital noise signal within a first preset time period T1, and the The average noise volume level is set as a reference noise volume level; then the digital noise signal is periodically obtained from the analog-to-digital converter 20, and the average noise volume level of the digital noise signal in a second preset time period T2 is calculated, And calculate the change rate of the average noise volume level of the digital noise signal compared with the reference noise volume level. The audio processing module 181 periodically obtains a plurality of sampling values mi and the current gain value V of the digital audio signal in the second preset time period T2 from the decoding unit 14, and according to the plurality of sampling values and the current gain value Applying the above mathematical algorithm to calculate the audio energy value Q of the digital audio signal within the second preset time period T2. The gain control module 182 takes the rate of change and the audio energy value Q of the digital audio signal as parameters, thereby determining the adjustment range of the audio energy value Q of the digital audio signal, and adjusting The final audio energy value Q calculates a better gain value, and sends the better gain value signal to the volume control unit 16 .

如图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所示是一实施方式中音量管理方法的流程图。该输入单元12响应用户调节音量的操作生成一调节音量的控制信号;该中央处理单元13响应该调节音量的控制信号,调节当前增益值(步骤S40)。该音量管理单元18从该模数转换器20获得数字噪音信号,并计算该数字噪音信号在一第一预设时间段T1内的平均噪音音量级,将该平均噪音音量级设定为一参考噪音音量级(步骤S41)。然后该音量管理单元18周期性地从该模数转换器20获得数字噪音信号,计算该数字噪音信号在一第二预设时间段T2内的平均噪音音量级(步骤S42),并计算出该数字噪音信号的平均噪音音量级相较于该参考噪音音量级的变化率(步骤S43)。同时该音量管理单元18从该解码单元14周期性地获得该第二预设时间段T2内数字音频信号的多个取样值mi,并从该音量控制单元16获得当前增益值V(步骤S44)。根据该多个取样值mi及当前增益值V计算该第二预设时间段T2内该数字音频信号的音频能量值Q(步骤S45)。该音量管理单元18判断该变化率是否为0(步骤S46)?如果该变化率为0,流程返回重新执行步骤S42及步骤S44;如果该变化率不为0,该中央处理单元13则侦测该输入单元12是否发送调节音量的控制信号(步骤S47)?如果该中央处理单元13接收到该输入单元12发送的调节音量的控制信号,流程返回重新执行步骤S41;如果该中央处理单元13未接收到该输入单元12发送的调节音量的控制信号,该音量管理单元18则将该变化率及该数字音频信号的音频能量值Q作为参数,从而确定该数字音频信号的音频能量值Q的调节幅度;也就是,如果该数字音频信号的音频能量值较大,则调节该数字音频信号的音频能量值Q的幅度相对较小,反的则调节该数字音频信号的音频能量值Q的幅度相对较大(步骤S48)。接着该音量管理单元18根据该数字音频信号的多个取样值mi及调节后的音频能量值计算出较佳增益值(步骤S49),并将该较佳增益值信号发送到该音量控制单元16,使得该音量控制单元16根据该较佳增益值放大音频信号(步骤S50),然后流程返回重新执行步骤S42及步骤S44。As shown in FIG. 4 , it is a flowchart of a volume management method in an embodiment. The input unit 12 generates a volume adjustment control signal in response to the user's volume adjustment operation; the central processing unit 13 adjusts the current gain value in response to the volume adjustment control signal (step S40). The volume management unit 18 obtains the digital noise signal from the analog-to-digital converter 20, and calculates the average noise volume level of the digital noise signal within a first preset time period T1, and sets the average noise volume level as a reference Noise volume level (step S41). Then the volume management unit 18 periodically obtains the digital noise signal from the analog-to-digital converter 20, calculates the average noise volume level of the digital noise signal within a second preset time period T2 (step S42), and calculates the The change rate of the average noise level of the digital noise signal compared to the reference noise level (step S43). At the same time, the volume management unit 18 periodically obtains a plurality of sampling values mi of the digital audio signal in the second preset time period T2 from the decoding unit 14, and obtains the current gain value V from the volume control unit 16 (step S44) . Calculate the audio energy value Q of the digital audio signal within the second preset time period T2 according to the plurality of sampled values mi and the current gain value V (step S45 ). The volume management unit 18 judges whether the rate of change is 0 (step S46)? If the rate of change is 0, the process returns to re-execute step S42 and step S44; if the rate of change is not 0, the central processing unit 13 detects whether the input unit 12 sends a control signal for adjusting the volume (step S47)? If the central processing unit 13 receives the control signal for adjusting the volume sent by the input unit 12, the process returns to re-execute step S41; if the central processing unit 13 does not receive the control signal for adjusting the volume sent by the input unit 12, the volume The management unit 18 then takes the rate of change and the audio energy value Q of the digital audio signal as parameters, thereby determining the adjustment range of the audio energy value Q of the digital audio signal; that is, if the audio energy value of the digital audio signal is larger , the amplitude of the audio energy value Q of the digital audio signal is adjusted to be relatively small; otherwise, the amplitude of the audio energy value Q of the digital audio signal is adjusted to be relatively large (step S48). Then the volume management unit 18 calculates a better gain value (step S49) according to a plurality of sampling values mi and the adjusted audio energy value of the digital audio signal, and sends the better gain value signal to the volume control unit 16 , so that the volume control unit 16 amplifies the audio signal according to the preferred gain value (step S50), and then the flow returns to re-execute steps S42 and S44.

Claims (8)

1. sound-volume management method, the volume when being used to manage an apparatus for processing audio output audio is characterized in that, comprises step:
The control signal of response user manual adjustments volume is regulated current gain value;
Obtain digital noise signal, and calculate the average noise volume level of this numeral noise signal in one first Preset Time section, this average noise volume level is set at one with reference to the noise volume level;
Periodically obtain digital noise signal, calculate the average noise volume level of this numeral noise signal in one second Preset Time section, and the average noise volume level that calculates this numeral noise signal is compared to this rate of change with reference to the noise volume level;
Periodically obtain simultaneously a plurality of sampling values and the current gain value of digital audio and video signals in this second Preset Time section, and calculate the audio energy values of this digital audio and video signals in this second Preset Time section based on these a plurality of sampling values and current gain value;
With the audio energy values of this rate of change and this digital audio and video signals as parameter, thereby confirm the amplitude of accommodation of the audio energy values of this digital audio and video signals;
Calculate preferable yield value based on a plurality of sampling values of this audio signal and the audio energy values after the adjusting; And
Send this preferable yield value signal.
2. sound-volume management method as claimed in claim 1 is characterized in that, in the process of output audio, if receive the control signal of user's manual adjustments volume, then need recomputate this with reference to the noise volume level.
3. sound-volume management method as claimed in claim 1 is characterized in that, when regulating the audio energy values of this digital audio and video signals, if when the audio energy values of this digital audio and video signals is big, the amplitude of then regulating this audio energy values is less relatively; And if the audio energy values of this digital audio and video signals is less, the amplitude of then regulating this audio energy values is relatively large.
4. sound-volume management method as claimed in claim 1; It is characterized in that; If this rate of change is zero; Then do not regulate the audio energy values of this digital audio and video signals, and the average noise volume level that recomputates this numeral noise signal reaches the audio energy values of this digital audio and video signals compared to this rate of change with reference to the noise volume level.
5. an apparatus for processing audio comprises a CPU, a decoding unit, a volume control unit, a microphone, an analog to digital converter and a volume administrative unit; This decoding unit audio file that is used to decode generates a digital audio and video signals; This microphone induced environment noise generates the man made noise signal; This analog to digital converter becomes digital noise signal with this man made noise conversion of signals; It is characterized in that:
This volume administrative unit, under the control of this CPU, the control signal of response user manual adjustments volume is regulated current gain value; Obtain digital noise signal, and calculate the average noise volume level of this numeral noise signal in one first Preset Time section, this average noise volume level is set at one with reference to the noise volume level; Periodically obtain digital noise signal, calculate the average noise volume level of this numeral noise signal in one second Preset Time section, and the average noise volume level that calculates this numeral noise signal is compared to this rate of change with reference to the noise volume level; Periodically obtain simultaneously a plurality of sampling values and the current gain value of digital audio and video signals in this second Preset Time section, and calculate the audio energy values of this digital audio and video signals in this second Preset Time section according to these a plurality of sampling values and current gain value; With the audio energy values of this rate of change and this digital audio and video signals as parameter, thereby confirm the amplitude of accommodation of the audio energy values of this digital audio and video signals; Calculate preferable yield value according to a plurality of sampling values of this audio signal and the audio energy values after the adjusting; And should send to this volume control unit by preferable yield value signal.
6. apparatus for processing audio as claimed in claim 5; It is characterized in that; In the process of output audio, if this CPU receives the control signal of user's manual adjustments volume, this volume administrative unit then need recomputate this with reference to the noise volume level.
7. apparatus for processing audio as claimed in claim 5; It is characterized in that; When this volume administrative unit was regulated the audio energy values of this digital audio and video signals, if the audio energy values of this digital audio and video signals is bigger, the amplitude of then regulating this audio energy values was less relatively; And if the audio energy values of this digital audio and video signals is less, the amplitude of then regulating this audio energy values is relatively large.
8. apparatus for processing audio as claimed in claim 5; It is characterized in that; If this rate of change is zero; This volume administrative unit is not then regulated the audio energy values of this digital audio and video signals, and the average noise volume level that recomputates this numeral noise signal reaches the audio energy values of this digital audio and video signals compared to this rate of change with reference to the noise volume level.
CN2005101019913A 2005-11-30 2005-11-30 Audio-frequency processing device and sound-volume management method Expired - Fee Related CN1980054B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2005101019913A CN1980054B (en) 2005-11-30 2005-11-30 Audio-frequency processing device and sound-volume management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2005101019913A CN1980054B (en) 2005-11-30 2005-11-30 Audio-frequency processing device and sound-volume management method

Publications (2)

Publication Number Publication Date
CN1980054A CN1980054A (en) 2007-06-13
CN1980054B true CN1980054B (en) 2012-05-23

Family

ID=38131100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2005101019913A Expired - Fee Related CN1980054B (en) 2005-11-30 2005-11-30 Audio-frequency processing device and sound-volume management method

Country Status (1)

Country Link
CN (1) CN1980054B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4640461B2 (en) * 2008-07-08 2011-03-02 ソニー株式会社 Volume control device and program
CN101740037B (en) * 2008-11-21 2011-12-28 联芯科技有限公司 Method for controlling automatic gain and dynamic range of voice based on sliding gain
CN102724462B (en) * 2012-06-01 2017-02-15 Tcl集团股份有限公司 Volume adjusting method and device
CN105446697A (en) * 2015-12-31 2016-03-30 广东小天才科技有限公司 Automatic earphone volume adjusting method, device and system
CN105721657B (en) * 2016-01-22 2018-11-06 深圳市智汇十方科技有限公司 A kind of method and apparatus of adjustment receiver audio frequency parameter
CN109348335B (en) * 2018-10-30 2024-05-10 歌尔科技有限公司 Earphone gain adjusting method and device and electronic equipment
WO2023142363A1 (en) * 2022-01-27 2023-08-03 海信视像科技股份有限公司 Display device and audio processing method

Citations (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

Patent Citations (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

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JP特开2003-244785A 2003.08.29
JP特开2004-297747A 2004.10.21

Also Published As

Publication number Publication date
CN1980054A (en) 2007-06-13

Similar Documents

Publication Publication Date Title
CN1964187B (en) A system, device and method to manage sound volume
CN1981433A (en) Method of and system for automatically adjusting the loudness of an audio signal
US9148104B2 (en) Reproduction apparatus, reproduction method, provision apparatus, and reproduction system
CN103345929B (en) Method and device for adjusting volume
CN105390144A (en) Audio processing method and audio processing device
US20070078546A1 (en) Sound output system and method
US20070126503A1 (en) Audio processing system and method for automatically adjusting volume
CN1980054B (en) Audio-frequency processing device and sound-volume management method
CN102255607B (en) Method for adjusting output volume and system thereof
CN102549669B (en) System and method for modifying an audio signal
JP2007047539A (en) Sound field correcting apparatus and sound field correcting method
CN101060314B (en) Hearing protection method and sound output device
CN111580778B (en) Volume correction method and device, audio playing device and readable storage medium
WO2007007523A1 (en) Vehicle-mounted sound control system
CN1983804B (en) Audio-frequency processor and volume management method
US8462964B2 (en) Recording apparatus, recording method, audio signal correction circuit, and program
CN101075803B (en) Method for automatically controlling gain value and sound output device
CN1964447B (en) Volume management system and method
JP2008211602A (en) Audio apparatus and audio signal providing method
US20070078544A1 (en) Sound output system and method
CN101026363A (en) Hearing protection system, method and sound output device
CN1941619B (en) Volume management system and method
JP2009031357A (en) Music piece distribution system, music piece editing device, music piece playback device, music piece storage device, and program
JP6501223B2 (en) Electronic device, electronic system, voice output program and voice output method
KR101171398B1 (en) Compensate Apparatus and method for Audio sound

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: 20161130

CF01 Termination of patent right due to non-payment of annual fee