CN102122927B - Volume control circuit and method thereof - Google Patents
Volume control circuit and method thereof Download PDFInfo
- Publication number
- CN102122927B CN102122927B CN 201010003574 CN201010003574A CN102122927B CN 102122927 B CN102122927 B CN 102122927B CN 201010003574 CN201010003574 CN 201010003574 CN 201010003574 A CN201010003574 A CN 201010003574A CN 102122927 B CN102122927 B CN 102122927B
- Authority
- CN
- China
- Prior art keywords
- signal strength
- value
- strength values
- gain value
- original gain
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000001914 filtration Methods 0.000 claims abstract description 8
- 230000008859 change Effects 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 11
- 238000005070 sampling Methods 0.000 claims description 2
- 241001269238 Data Species 0.000 claims 11
- 230000001186 cumulative effect Effects 0.000 claims 4
- FGUUSXIOTUKUDN-IBGZPJMESA-N C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 Chemical class C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 FGUUSXIOTUKUDN-IBGZPJMESA-N 0.000 claims 2
- 238000005096 rolling process Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 13
- 230000005236 sound signal Effects 0.000 description 7
- 230000003247 decreasing effect Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000010355 oscillation Effects 0.000 description 3
- 230000007704 transition Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Control Of Amplification And Gain Control (AREA)
Abstract
本发明是一种音量控制电路及其方法,音量控制电路包括信号强度运算电路、低通滤波器、平均器、增益运算电路、缓冲器电路及音量调整电路。信号强度运算电路产生对应至声道数据的信号强度的第一信号强度值。低通滤波器对第一信号强度值进行低通滤波操作,以产生第二信号强度值。平均器对第二信号强度值与前M-1笔第二信号强度值进行平均运算,以得到第三信号强度值,M为大于1的自然数。增益运算电路参照调整条件,根据第三信号强度值得到原始增益值。缓冲器暂存声道数据。音量调整电路根据原始增益值产生调整增益值来调整缓冲器所储存的声道数据。
The present invention relates to a volume control circuit and its method. The volume control circuit comprises a signal strength calculation circuit, a low-pass filter, an averager, a gain calculation circuit, a buffer circuit and a volume adjustment circuit. The signal strength computing circuit generates a first signal strength value corresponding to the signal strength of the channel data. The low-pass filter performs a low-pass filtering operation on the first signal strength value to generate a second signal strength value. The averager performs an average operation on the second signal strength value and the previous M-1 second signal strength values to obtain a third signal strength value, where M is a natural number greater than 1. The gain calculation circuit refers to the adjustment condition and obtains the original gain value according to the third signal strength value. The buffer temporarily stores channel data. The volume adjustment circuit generates an adjustment gain value according to the original gain value to adjust the channel data stored in the buffer.
Description
技术领域 technical field
本发明是关于一种音量控制电路及其方法,且特别是关于一种可自动音量控制(Automatic Volume Control,AVC)的音量控制电路及其方法。The present invention relates to a volume control circuit and its method, and in particular to an automatic volume control (Automatic Volume Control, AVC) volume control circuit and its method.
背景技术 Background technique
在科技发展日新月异的现今时代中,具有自动音量控制的音量控制电路已广泛地应用在多种不同电子产品中。举例来说,此音量控制电路应用在数字电视中。当数字电视播放的声音的强度产生剧烈变化时,例如是转台或是进广告时,音量控制电路自动地产生调整增益值来调整声音大小,使得声音的强度能维持在特定范围之内,让使用者转台或收看广告时,不会感受到大幅的音量变化,而能避免听觉上的不舒适感。In today's era of rapid technological development, volume control circuits with automatic volume control have been widely used in various electronic products. For example, the volume control circuit is applied in digital television. When the intensity of the sound played by digital TV changes drastically, for example, when the channel is turned or an advertisement is entered, the volume control circuit automatically generates an adjustment gain value to adjust the volume of the sound, so that the intensity of the sound can be maintained within a specific range, allowing users to use When the audience turns the channel or watches an advertisement, they will not feel a large volume change, but can avoid hearing discomfort.
一般来说,为了精准判断声音信号的强度变化趋势,传统音量控制器是需参考较多笔的声音信号来对调整增益值进行运算。如此,将导致传统音量控制电路对声音信号进行控制的延迟时间td较长,如图1所示,其绘示传统音量控制电路的操作示意图,信号S代表受控于传统音量控制电路的声音信号。当信号S的强度在时间点T1过度提高时,传统音量控制电路在时间点T2才反应产生调整增益值来抑制信号S的强度,时间点T1与T2定义的期间为延迟时间td。Generally speaking, in order to accurately judge the change trend of the intensity of the sound signal, the traditional volume controller needs to refer to a large number of sound signals to calculate the adjustment gain value. In this way, the delay time td for the traditional volume control circuit to control the sound signal will be longer, as shown in Figure 1, which shows the operation schematic diagram of the traditional volume control circuit, and the signal S represents the sound signal controlled by the traditional volume control circuit . When the strength of the signal S is excessively increased at the time point T1, the traditional volume control circuit responds at the time point T2 to adjust the gain value to suppress the strength of the signal S. The period defined by the time points T1 and T2 is the delay time td.
为了解决延迟时间td过长的问题,传统音量控制电路需设置较长的缓冲器(Buffer)来储存这些时间点的声音数据。如此,将使得传统音量控制电路的成本过高,而降低产品竞争力。In order to solve the problem that the delay time td is too long, the traditional volume control circuit needs to set a long buffer (Buffer) to store the sound data at these time points. In this way, the cost of the traditional volume control circuit will be too high, thereby reducing product competitiveness.
发明内容 Contents of the invention
本发明的目的是提供一种音量控制电路及其方法,可减少所需的缓冲器的大小、成本低及进行自动音量调整的延迟时间较短。The purpose of the present invention is to provide a volume control circuit and its method, which can reduce the required buffer size, low cost and short delay time for automatic volume adjustment.
根据本发明提出一种音量控制电路,用以产生调整增益值来调整多个声道的多笔声道数据。音量控制电路包括信号强度运算电路、低通滤波器、平均器、增益运算电路、缓冲器电路及音量调整电路。信号强度运算电路用以接收并产生对应至声道数据的信号强度的第一信号强度值。低通滤波器用以对第一信号强度值进行低通滤波操作,以产生第二信号强度值。平均器用以接收第二信号强度值,并对第二信号强度值与前M-1个时间点的前M-1笔第二信号强度值进行平均运算,以得到第三信号强度值,M为大于1的自然数。增益运算电路用以参照至少一调整条件,根据第三信号强度值,以得到原始增益值。缓冲器用以暂存声道数据。音量调整电路用以根据原始增益值来产生调整增益值,并根据调整增益值来调整缓冲器所储存的声道数据。According to the present invention, a volume control circuit is provided for generating adjustment gain values to adjust multiple pieces of channel data of multiple channels. The volume control circuit includes a signal strength calculation circuit, a low-pass filter, an averager, a gain calculation circuit, a buffer circuit and a volume adjustment circuit. The signal strength computing circuit is used for receiving and generating a first signal strength value corresponding to the signal strength of the channel data. The low-pass filter is used for low-pass filtering the first signal strength value to generate the second signal strength value. The averager is used to receive the second signal strength value, and perform an average operation on the second signal strength value and the first M-1 second signal strength values of the previous M-1 time points to obtain a third signal strength value, and M is A natural number greater than 1. The gain computing circuit is used for obtaining the original gain value according to the third signal strength value with reference to at least one adjustment condition. The buffer is used to temporarily store channel data. The volume adjustment circuit is used for generating an adjustment gain value according to the original gain value, and adjusting the channel data stored in the buffer according to the adjustment gain value.
根据本发明提出一种音量控制方法,用以产生调整增益值来调整多个声道的多笔声道数据。音量控制方法包括下列的步骤:首先产生对应至声道数据的信号强度的第一信号强度值;接着对第一信号强度值进行低通滤波操作,以产生第二信号强度值;然后对第二信号强度值与前M-1个时间点的前M-1笔第二信号强度值进行平均运算,以得到第三信号强度值,M为大于1的自然数;接着参照调整条件,根据第三信号强度值得到原始增益值;然后使用缓冲器暂存声道数据;以及之后根据原始增益值产生调整增益值,并根据调整增益值来调整缓冲器所储存的声道数据。According to the present invention, a volume control method is provided, which is used for generating adjustment gain values to adjust multiple pieces of channel data of multiple channels. The volume control method includes the following steps: firstly generate a first signal strength value corresponding to the signal strength of the channel data; then perform a low-pass filter operation on the first signal strength value to generate a second signal strength value; then The signal strength value is averaged with the first M-1 second signal strength values of the first M-1 time points to obtain the third signal strength value, M is a natural number greater than 1; then, referring to the adjustment condition, according to the third signal strength value The intensity value is used to obtain the original gain value; then the buffer is used to temporarily store the channel data; and then the adjusted gain value is generated according to the original gain value, and the channel data stored in the buffer is adjusted according to the adjusted gain value.
附图说明 Description of drawings
为让本发明的上述内容能更明显易懂,下面将结合附图对本发明的较佳实施例作详细说明,其中:In order to make the above content of the present invention more obvious and understandable, preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:
图1绘示传统音量控制电路的操作示意图。FIG. 1 is a schematic diagram illustrating the operation of a conventional volume control circuit.
图2绘示音量控制电路的方块图。FIG. 2 is a block diagram of a volume control circuit.
图3绘示依照本发明实施例的音量控制电路的方块图。FIG. 3 is a block diagram of a volume control circuit according to an embodiment of the invention.
图4绘示增益运算电路的增益关系图。FIG. 4 is a diagram showing a gain relationship diagram of the gain operation circuit.
图5绘示迟滞运算放大器的输入输出关系图。FIG. 5 is a graph showing the input-output relationship of the hysteretic operational amplifier.
图6A及图6B分别绘示与声道数据DA1对应的声音信号及信号强度值VA1的波形图。FIG. 6A and FIG. 6B are waveform diagrams of the sound signal corresponding to the channel data DA1 and the signal strength value VA1 respectively.
图7绘示信号强度值VA2′与VA3的波形图。FIG. 7 shows waveforms of signal strength values VA2 ′ and VA3 .
图8绘示依照本发明实施例的音量控制方法的流程图。FIG. 8 is a flowchart of a volume control method according to an embodiment of the present invention.
具体实施方式Detailed ways
请参照图2,其绘示一种音量控制电路10的方块图。音量控制电路10包括信号强度运算电路11、低通滤波器12、增益运算电路13、缓冲器14及音量调整电路15。信号强度运算电路11接收至少一个声道的至少一笔声道数据,并计算得到信号强度值VA1。信号强度运算电路11包括运算单元11a、11b、加法单元11c及乘法单元11d,运算单元11a及11b分别接收声道数据DA1及声道数据DA2;加法单元11c用以计算声道数据DA1及DA2之和,乘法单元11d将加法单元11c得到的声道数据DA1及DA2之和与一参数相乘,例如数值0.5,得到信号强度值VA1,于此实施例中,将左右两个声道数据取平均值,可以避免两个声道音量不平均的情形。Please refer to FIG. 2 , which shows a block diagram of a
低通滤波器12响应于计算时间参数TAV,对与计算时间参数TAV对应的一段计算时间中的信号强度值VA1进行低通滤波操作,以运算得到信号强度值VA2。In response to the calculation time parameter TAV, the low-pass filter 12 performs a low-pass filtering operation on the signal strength value VA1 in a period of calculation time corresponding to the calculation time parameter TAV to obtain a signal strength value VA2 through calculation.
增益运算电路13用以参照调整条件Adj,将信号强度值VA2运算以得到原始增益值GA1;缓冲器14暂存预定长度的声道数据DA1及DA2;音量调整电路15根据原始增益值GA1产生调整增益值GA2,并根据调整增益值来调整缓冲器13所储存的声道数据DA1及DA2,以分别产生调整后的声道数据DA1′及DA2’。如此,音量控制电路10可对接收到的声道数据DA1及DA2进行适当的音量调整。The gain calculation circuit 13 is used to refer to the adjustment condition Adj, and calculate the signal strength value VA2 to obtain the original gain value GA1; the buffer 14 temporarily stores the predetermined length of channel data DA1 and DA2; the
然而,为了要有良好的音量调整的品质,在图2所示的电路中,必需将计算时间参数TAV增大,降低低通滤波器12的频宽。如此,音量控制电路10将需要较长的时间才可得知声音大小的变化,以对应地产生调整增益值,来对缓冲器14中所储存的声道数据DA进行调整。所以,如果所设置的缓冲器14的大小不够大的话,则无法于音量产生大幅变化时,对音量进行实时的调整。如此,将导致使用者听到过大的声音而有不适感。由于所需要的缓冲器14的储存容量较大,将使得音量控制电路10的成本提高。However, in order to have a good volume adjustment quality, in the circuit shown in FIG. 2 , it is necessary to increase the calculation time parameter TAV and reduce the bandwidth of the low-pass filter 12 . In this way, the
图3绘示依照本发明实施例的音量控制电路的方块图。音量控制电路20包括信号强度运算电路21、低通滤波器22、平均器23、增益运算电路24、缓冲器25及音量调整电路26。于本实施例中,通过使用平均器23,可以解决图2的音量控制电路10的需设置大容量的缓冲器14的问题,而降低音量控制电路20的成本。FIG. 3 is a block diagram of a volume control circuit according to an embodiment of the invention. The
信号强度运算电路21接收i个声道上的声道数据,并根据其计算得到信号强度值VA1,i为大于1的自然数。举例来说,i等于2,此2个声道上的声道数据DA1与DA2分别为左声道数据与右声道数据。于本实施例中,信号强度运算电路21包括运算单元21a(1)及21a(2),其分别用以对声道数据DA1及DA2进行绝对值运算,以分别运算得到声道数据abs[DA1]及abs[DA2]。The signal
信号强度运算电路21还包括运算单元21b及21c,用以根据声道数据abs[DA1]及abs[DA2]来运算得到声道数据abs[DA1]及abs[DA2]的数据平均值,并将其做为信号强度值VA1′输出。举例而言,运算单元21b及21c分别为用以执行加法运算及乘法运算的运算单元。The signal
低通滤波器22用以对信号强度值VA1′进行低通滤波操作,以产生信号强度值VA2′。举例来说,低通滤波器22为无限脉冲响应(Infinite Impulse Response,IIR)滤波器,包含延迟单元22a、加法单元22b、22c及乘法单元22d。延迟单元22a用以输出前一个时间点的信号强度值VA2′至加法单元22b及22c;加法单元22b用以计算信号强度值VA1′及前一个时间点的信号强度值VA2′的差值;乘法单元22d用以将加法单元22b得到的差值与计算时间参数TAV′相乘,得到第二运算数值;加法单元22c将第二运算数值与前一个时间点的信号强度值VA2′相加,以得到并输出目前的信号强度值VA2′。The low-
计算时间参数TAV′与低通滤波器22的截止频率(cutoff frequency)相关,也就是时间参数TAV′与低通滤波器22的进行平均运算的时间长度相关。计算时间参数TAV′越小,则低通滤波器22的进行平均运算的时间长度越短,且低通滤波器22的截止频率越高。举例来说,若计算时间参数TAV′对应到100ms的话,则低通滤波器22大致上会以100ms内的信号强度值VA1′的值来进行平均,以完成低通滤波的动作。The calculation time parameter TAV' is related to the cutoff frequency (cutoff frequency) of the low-
平均器23用以接收信号强度值VA2′,并对信号强度值VA2′与前M-1个时间点之前M-1笔信号强度值VA2′进行平均运算,以得到信号强度值VA3,M为大于1的自然数。较佳地,平均器23包括移动平均(Moving Average)滤波器23a及取样保持(sample-and-hold)单元23b,平均器23可以是一加权平均器提供加权调整的平均。The
移动平均滤波器23a例如为有限脉冲响应(Finite Impulse Response,FIR)滤波器。假设M值等于48,其转移函数(Transfer Function)H(z)为:The moving
其可对延迟47、46、45、…及0个周期时间后的信号强度值VA2′进行加总及平均,以得到一移动平均数值。It can sum up and average the signal strength values VA2' after delays of 47, 46, 45, . . . and 0 cycle time to obtain a moving average value.
取样保持单元23b用以每隔多个时间周期对移动平均滤波器23a运算得到的平均数值进行取样,以产生信号强度值VA3。The sample-and-
增益运算电路24用以参照一个调整条件Adj′来调整信号强度值VA3,以得到一笔调整后的信号强度值。增益运算电路24根据信号强度值VA3与此调整后的信号强度值运算得到原始增益值GA1′。举例来说,增益运算电路24用以判断信号强度值VA3是否高于一强度临界值Vth,以调整信号强度值VA3。当信号强度值VA3大于强度临界值Vth时,增益运算电路24产生实质上等于强度临界值Vth的此调整后的信号强度值;当信号强度值VA3小于强度临界值Vth时,增益运算电路24产生数值实质上等于j倍于信号强度值VA3的此调整后的信号强度值;数值j为实数,例如为数值2。The
举例来说,请参照图4,其绘示增益运算电路24的增益关系图的一例。横坐标为信号强度值VA3的强度,而纵轴为此调整后的信号强度值VA3’的强度。曲线302为增益运算电路24未进行调整时的曲线,曲线304为增益运算电路24进行调整后的曲线。如图4所示,假设强度临界值Vth等于-18分贝(Decibel,dB),j等于2。如此,当信号强度值VA3小于-18dB时,增益运算电路24产生数值实质上等于2倍信号强度值VA3的此调整后的信号强度值,亦即此调整后的信号强度值的强度等于信号强度值VA3加上6分贝(dB)。而当信号强度值VA3大于-18dB时,增益运算电路24产生的此调整后的信号强度值则恒为-18dB。For example, please refer to FIG. 4 , which shows an example of a gain relationship diagram of the
增益运算电路24根据方程式产生原始增益值GA1′:The
其中VA3’为此调整后的信号强度值,据此,增益运算电路24根据信号强度值VA3与此调整后的信号强度值计算产生原始增益值GA1′。Wherein VA3' is the adjusted signal strength value, accordingly, the
缓冲器25包括缓冲器单元25a及25b,分别暂存声道数据DA1与DA2。音量调整电路26根据原始增益值GA1′来产生调整增益值GA2′,并根据调整增益值GA2′来调整缓冲器25所储存的声道数据DA1及DA2,以分别产生调整后的声道数据DA1′及DA2′。The
音量调整电路26包括收敛运算单元26a及增益变化率检测单元26b。增益变化率检测单元26b用以接收原始增益值GA1′,并根据原始增益值GA1′与前一笔原始增益值的大小关系,来判断原始增益值GA1′的变化趋势为由大变小或由小变大,来得知声道数据DA1及DA2所对应的音量大小是由小变大,还是由大变小,以对应地分别以渐增收敛参数AT或渐减收敛参数RT做为收敛参数Pc输出。收敛运算单元26a根据收敛参数Pc与原始增益值GA1′来运算得到调整增益值GA2′。The
更进一步地,增益变化率检测单元26b包括延迟单元26b1、加法单元26b2、迟滞(Hysteresis)运算放大器26b3及多路复用器(Multiplexer)单元26b4;延迟单元26b1用以输出前一笔原始增益值GA1’至加法单元26b2;加法单元26b2计算前一笔原始增益值GA1’与原始增益值GA1′的差值ΔG;迟滞运算放大器26b3用以接收差值ΔG,而产生迟滞控制信号SC。Furthermore, the gain change
请参照图5,其绘示本实施例的迟滞运算放大器的输入输出关系图。当差值ΔG大于高临界值Gth1时,迟滞运算放大器26b3判断差值ΔG的变化趋势为由小变大,并产生第一电平的迟滞控制信号SC。当差值ΔG小于低临界值Gth2时,迟滞运算放大器26b3判断差值ΔG的变化趋势为由大变小,并产生第二电平的迟滞控制信号SC。当差值ΔG介于临界值Gth1与Gth2之间时,迟滞运算放大器26b3不改变迟滞控制信号SC的电平。Please refer to FIG. 5 , which shows an input-output relationship diagram of the hysteresis operational amplifier of this embodiment. When the difference ΔG is greater than the high threshold Gth1, the hysteresis operational amplifier 26b3 judges that the variation trend of the difference ΔG is from small to large, and generates a hysteresis control signal SC of the first level. When the difference ΔG is smaller than the low threshold Gth2, the hysteresis operational amplifier 26b3 judges that the variation trend of the difference ΔG is from large to small, and generates a hysteresis control signal SC of a second level. When the difference ΔG is between the critical values Gth1 and Gth2, the hysteresis operational amplifier 26b3 does not change the level of the hysteresis control signal SC.
多路复用器单元26b4响应于第一电平的迟滞控制信号SC,选择渐增收敛参数AT做为收敛参数Pc输出;而响应于第二电平的迟滞控制信号SC,选择渐减收敛参数RT做为收敛参数Pc输出。较佳地,渐增收敛参数AT与渐减收敛参数RT的值可以不相同。The multiplexer unit 26b4 responds to the hysteresis control signal SC of the first level, selects the gradually increasing convergence parameter AT as the output of the convergence parameter Pc; and responds to the hysteresis control signal SC of the second level, selects the gradually decreasing convergence parameter RT is output as the convergence parameter Pc. Preferably, the values of the increasing convergence parameter AT and the decreasing convergence parameter RT may be different.
收敛运算单元26a包括加法单元26a1、26a2、乘法单元26a3及延迟单元26a6。延迟单元26a6用以输出前一笔调整增益值GA2′至加法单元26a1及26a2。加法单元26a1用以产生目前的原始增益值GA1′与目前的调整增益值GA2′的差值;乘法单元26a3将加法单元26a1提供的差值与收敛参数Pc相乘,以得到收敛运算后的差值。加法单元26a2对收敛后的差值与前一笔调整增益值GA2′进行加法运算,以产生目前的调整增益值GA2′。The
音量调整电路26还包括乘法单元26a4与26a5,乘法单元26a4及26a5分别接收暂存于缓冲器25中的声道数据DA1及DA2,并根据调整增益值GA2′来分别对声道数据DA1及DA2进行调整,以分别产生调整后的声道数据DA1′与DA2′;声道数据DA1及DA2根据对应的调整增益值GA2′来调整。亦即,如果目前缓冲器单元25a与25b所输出的声道数据DA1及DA2是时间点t输入至运算单元21a(1)与21a(2)的声道数据DA1及DA2的话,则用以调整此声道数据DA1及DA2的调整增益值GA2′是基于时间点t输入至运算单元21a(1)与21a(2)的声道数据DA1及DA2所产生。The
于本实施例中,音量控制电路20用以在对应的声道数据DA1及DA2的信号强度有特定变化趋势时,产生对应的调整增益值GA2′,来对声道数据DA1及DA2进行调整,使得声道数据DA1及DA2的信号强度介于某一范围内。In this embodiment, the
请再参照图1。如前文所述,图1的音量控制电路10必需将计算时间参数TAV增大,降低低通滤波器12的频宽,才能有良好的音量调整的品质。然这样一来将会增大所需的缓冲器14的储存容量。但如果直接将图1的计算时间参数TAV变小,提高低通滤波器12的频宽来减少所需的缓冲器14的储存容量的话,低通滤波器12输出的信号强度值VA2将可能产生大幅振荡,而使得音量调整电路15产生误判,而导致产生错误的调整增益值而无法正确地对声道数据DA1及DA2进行调整的问题。Please refer to Figure 1 again. As mentioned above, the
举例来说,与声道数据DA1对应的声音信号SA1与信号强度值VA1的波形图分别如图6A及图6B所示。当声音信号SA1的强度由小变大时,信号强度值VA1会有大幅振荡的抖动的情况产生。For example, the waveform diagrams of the sound signal SA1 and the signal strength value VA1 corresponding to the channel data DA1 are shown in FIG. 6A and FIG. 6B , respectively. When the strength of the sound signal SA1 changes from small to large, the signal strength value VA1 will oscillate and jitter.
本实施例的图3的音量控制电路20具有较小的计算时间参数TAV’,较高的低通滤波器12的频宽,故不需大量的缓冲器14的储存容量。为了避免图2的音量控制电路20产生类似于上述的信号强度值VA1会有大幅振荡的抖动的情况,而导致音量调整电路15产生误判的情形,在本实施例的图3的音量控制电路20中,设置有平均器23,以对低通滤波器22产生的信号强度值VA2′进行平均运算,以得到信号强度值VA3。The
举例来说,信号强度值VA3与VA2’的波形图之一例如图7所示。信号强度值VA2’经过平均器23的运算后可得到强度变化程度较为缓和,没有大幅振荡现象的信号强度值VA3,允许本实施例的音量控制电路20遭遇音量产生大幅改变时,快速地产生对应的调整增益值来调整音量,缩短自动音量调整所需的延迟时间,并且减少所使用的缓冲器的储存容量,以达到高品质的声音处理并且减少成本的优点。For example, one of the waveform diagrams of the signal strength values VA3 and VA2' is shown in FIG. 7 . After the signal strength value VA2' is calculated by the
在本实施例中,迟滞运算放大器26b3的高与低临界值Gth1及Gth2的数值是相关于原始增益值GA1′的强度变化波动程度。较佳地,当原始增益值GA1′的抖动的情况较严重时,迟滞运算放大器26b3的转态临界值Gth1及Gth2需为较高的数值,以避免误判声道数据DA1及DA2的变动趋势;而当原始增益值GA1′的波动幅度较小时,转态临界值Gth1及Gth2可对应地设置为较低的数值。In this embodiment, the values of the high and low thresholds Gth1 and Gth2 of the hysteresis operational amplifier 26b3 are relative to the degree of intensity variation fluctuation of the original gain value GA1'. Preferably, when the jitter of the original gain value GA1' is serious, the transition critical values Gth1 and Gth2 of the hysteresis operational amplifier 26b3 need to be higher values, so as to avoid misjudgment of the change trend of the channel data DA1 and DA2 ; and when the fluctuation range of the original gain value GA1 ′ is relatively small, the transition thresholds Gth1 and Gth2 can be correspondingly set to lower values.
在本实施例中,移动平均滤波器23a的M值亦可依照信号强度值VA2′的状态而调整之,虽仅以数值M等于48的情形为例作说明,然而,本实施例的平均器23参考的信号强度值VA2′的数量并不局限于为数值M,而可为其它数值。转态临界值Gth1及Gth2的数值的选择亦可与数值M相关。In this embodiment, the M value of the moving
本发明亦提出一种音量控制方法,用以产生调整增益值来调整多个声道的多笔声道数据。请参照图8,其绘示依照本发明实施例的音量控制方法的流程图。于步骤S800中,产生对应至声道数据的信号强度的第一信号强度值。接着,于步骤S810中,对第一信号强度值进行低通滤波操作,以产生第二信号强度值。然后,于步骤S820中,对第二信号强度值与前M-1个时间点的前M-1笔第二信号强度值进行平均运算,以得到第三信号强度值,M为大于1的自然数。接着,于步骤S830中,参照调整条件,根据第三信号强度值得到原始增益值。然后,于步骤S840中,使用缓冲器暂存声道数据。之后,于步骤S850中,根据原始增益值产生调整增益值,并根据调整增益值来调整缓冲器所储存的声道数据。The present invention also proposes a volume control method for generating and adjusting gain values to adjust multiple pieces of channel data of multiple channels. Please refer to FIG. 8 , which shows a flowchart of a volume control method according to an embodiment of the present invention. In step S800, a first signal strength value corresponding to the signal strength of the channel data is generated. Next, in step S810, a low-pass filter operation is performed on the first signal strength value to generate a second signal strength value. Then, in step S820, the second signal strength value and the first M-1 second signal strength values of the previous M-1 time points are averaged to obtain a third signal strength value, where M is a natural number greater than 1 . Next, in step S830, referring to the adjustment condition, the original gain value is obtained according to the third signal strength value. Then, in step S840, use the buffer to temporarily store the channel data. After that, in step S850, an adjusted gain value is generated according to the original gain value, and the channel data stored in the buffer is adjusted according to the adjusted gain value.
上述的音量控制方法的操作原理是已详述于音量控制电路20中,故于此不再重述。The operating principle of the above volume control method has been described in detail in the
本发明通过于音量控制电路中适当地设置加权平均器,使得本发明的低通滤波器的计算时间参数可以缩短,且缓冲器中的缓存器单元的储存容量可大幅降低。这样一来,相较于传统音量控制电路,本发明的音量控制电路更具有低成本及可快速收敛音量的调整而防止爆音的优点。The present invention properly sets the weighted averager in the volume control circuit, so that the calculation time parameter of the low-pass filter of the present invention can be shortened, and the storage capacity of the register unit in the buffer can be greatly reduced. In this way, compared with the traditional volume control circuit, the volume control circuit of the present invention has the advantages of low cost and fast convergence of volume adjustment to prevent popping.
综上所述,虽然本发明已以实施例揭露如上,然而其并非用以限定本发明。本发明所属技术领域中具有通常知识者,在不脱离本发明的精神和范围内,当可作出各种等同的改变或替换。因此,本发明的保护范围当视后附的本申请权利要求范围所界定的为准。To sum up, although the present invention has been disclosed by the above embodiments, they are not intended to limit the present invention. Those skilled in the art to which the present invention belongs may make various equivalent changes or substitutions without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be defined by the appended claims of the application.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010003574 CN102122927B (en) | 2010-01-11 | 2010-01-11 | Volume control circuit and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010003574 CN102122927B (en) | 2010-01-11 | 2010-01-11 | Volume control circuit and method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102122927A CN102122927A (en) | 2011-07-13 |
CN102122927B true CN102122927B (en) | 2013-10-02 |
Family
ID=44251404
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010003574 Expired - Fee Related CN102122927B (en) | 2010-01-11 | 2010-01-11 | Volume control circuit and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102122927B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110113270B (en) * | 2019-04-11 | 2021-04-23 | 北京达佳互联信息技术有限公司 | Network communication jitter control method, device, terminal and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6868162B1 (en) * | 2000-11-17 | 2005-03-15 | Mackie Designs Inc. | Method and apparatus for automatic volume control in an audio system |
CN1725827A (en) * | 2004-07-24 | 2006-01-25 | 三星电子株式会社 | Equipment and method in response to the automatic compensating audio volume of channel change |
CN101512898A (en) * | 2006-08-31 | 2009-08-19 | 索尼爱立信移动通讯有限公司 | Volume control circuits for use in electronic devices and related methods and electronic devices |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020173864A1 (en) * | 2001-05-17 | 2002-11-21 | Crystal Voice Communications, Inc | Automatic volume control for voice over internet |
-
2010
- 2010-01-11 CN CN 201010003574 patent/CN102122927B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6868162B1 (en) * | 2000-11-17 | 2005-03-15 | Mackie Designs Inc. | Method and apparatus for automatic volume control in an audio system |
CN1725827A (en) * | 2004-07-24 | 2006-01-25 | 三星电子株式会社 | Equipment and method in response to the automatic compensating audio volume of channel change |
CN101512898A (en) * | 2006-08-31 | 2009-08-19 | 索尼爱立信移动通讯有限公司 | Volume control circuits for use in electronic devices and related methods and electronic devices |
Also Published As
Publication number | Publication date |
---|---|
CN102122927A (en) | 2011-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5138874B2 (en) | Volume automatic correction device by changing channel and method thereof | |
US6084907A (en) | Adaptive auto equalizer | |
RU2433525C1 (en) | Time-dependent audio volume with using time-dependent assessment probability density | |
US20080260170A1 (en) | Signal processing apparatus, signal processing method, and recording medium having program recorded thereon | |
US10574261B2 (en) | System and method for low-power digital signal processing | |
CN104918181A (en) | Level adjustment device and method | |
US20090122997A1 (en) | Audio processing apparatus and program | |
JP6556463B2 (en) | Filter generation device, filter generation method, and filter generation program | |
JP2007166195A (en) | Signal processing apparatus, and signal processing method | |
US20150125001A1 (en) | Audio Device and Method Having Bypass Function for Effect Change | |
CN102122927B (en) | Volume control circuit and method thereof | |
JP4613966B2 (en) | Volume adjusting device and volume adjusting program | |
TWI425844B (en) | Audio volume controlling circuit and method thereof | |
JP5691224B2 (en) | Parameter setting method and sound processing apparatus | |
KR101051036B1 (en) | Apparatus and method for controlling sound quality of audio equipments according to the hearing of individual users | |
RU2279758C2 (en) | Adaptive equalizer | |
JP2000316199A (en) | Howling preventing device | |
US8934996B2 (en) | Transmission apparatus and transmission method | |
CN101383924A (en) | Method for implementing virtual 10 wave range television volume tuning using 5 range equalizer | |
KR970002195B1 (en) | Voice element removing device and its controlling method in a digital equipment | |
JP2007028329A (en) | Muting apparatus, digital audio apparatus and muting method | |
EP2530952B1 (en) | Sound processing apparatus and parameter setting method | |
JPH04360424A (en) | Digital compressor | |
US20060233393A1 (en) | Digital volume control circuit and method calibrated in decibels | |
JP2012060333A (en) | Acoustic field support device |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20131002 Termination date: 20210111 |