JP3519935B2 - Automatic gain control device - Google Patents

Automatic gain control device

Info

Publication number
JP3519935B2
JP3519935B2 JP3398598A JP3398598A JP3519935B2 JP 3519935 B2 JP3519935 B2 JP 3519935B2 JP 3398598 A JP3398598 A JP 3398598A JP 3398598 A JP3398598 A JP 3398598A JP 3519935 B2 JP3519935 B2 JP 3519935B2
Authority
JP
Japan
Prior art keywords
gain control
threshold value
input signal
signal level
threshold
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
JP3398598A
Other languages
Japanese (ja)
Other versions
JPH11220345A (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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP3398598A priority Critical patent/JP3519935B2/en
Publication of JPH11220345A publication Critical patent/JPH11220345A/en
Application granted granted Critical
Publication of JP3519935B2 publication Critical patent/JP3519935B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は自動利得制御装置
に関し、特にたとえば電話システム、音声メモなどにお
いて音声レベルを調整するために用いられる、音声用の
自動利得制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic gain control device, and more particularly to an automatic gain control device for voice used for adjusting a voice level in a telephone system, voice memo, etc.

【0002】[0002]

【従来の技術】従来、電話システムや音声メモなどの音
声信号を扱うシステムにおいて、入力レベルの小さい音
声を自動的に最適なレベルまで増幅する音声用の自動利
得制御装置が用いられている。図14は、従来の自動利
得制御装置1の主要部の一例を示す機能ブロック図であ
る。自動利得制御装置1では、入力信号レベル算出部2
によって入力信号レベルが算出され、その入力信号レベ
ルと所定の閾値とが動作決定部3で比較され、その比較
結果に応じて利得制御部4がON/OFFされる。入力
信号レベルが閾値より大きいときには利得制御部4はO
Nされ、出力信号レベル算出部5で算出された出力信号
レベルが一定になるように、利得制御部4によって増幅
部6での利得が制御される。一方、入力信号レベルが閾
値以下であれば利得制御部4はOFFされ、利得制御を
停止することによって、無音区間における背景ノイズの
不要な増幅を防いでいた。
2. Description of the Related Art Conventionally, in a telephone system, a system for handling a voice signal such as a voice memo, an automatic gain control device for a voice which automatically amplifies a voice having a small input level to an optimum level is used. FIG. 14 is a functional block diagram showing an example of a main part of the conventional automatic gain control device 1. In the automatic gain control device 1, the input signal level calculation unit 2
The input signal level is calculated by the operation determination unit 3, the operation determination unit 3 compares the input signal level with a predetermined threshold value, and the gain control unit 4 is turned on / off according to the comparison result. When the input signal level is higher than the threshold value, the gain control unit 4 outputs O
The gain control section 4 controls the gain of the amplification section 6 so that the output signal level calculated by the output signal level calculation section 5 becomes constant. On the other hand, if the input signal level is less than or equal to the threshold value, the gain control unit 4 is turned off and the gain control is stopped to prevent unnecessary amplification of background noise in the silent section.

【0003】[0003]

【発明が解決しようとする課題】しかし、従来の自動利
得制御装置1において、より小さい入力信号に対して利
得制御を実行したい場合、利得制御のON/OFFを決
定する閾値を小さくする必要がある。この場合、語尾部
分などのレベルの低い入力信号区間で必ず利得が増幅傾
向になる。また、閾値よりも大きな背景ノイズに対して
も、自動利得制御装置1が誤動作(誤った利得制御)す
る可能性が高くなる。
However, in the conventional automatic gain control device 1, when it is desired to perform gain control for a smaller input signal, it is necessary to reduce the threshold value for determining ON / OFF of the gain control. . In this case, the gain always tends to be amplified in the input signal section having a low level such as the word tail portion. In addition, there is a high possibility that the automatic gain control device 1 malfunctions (erroneous gain control) with respect to background noise larger than the threshold value.

【0004】一方、ノイズに対する誤動作や、語尾部分
の不要な利得上昇を防ぐためには、閾値を大きくする必
要があるが、この場合、自動利得制御装置1の最大利得
を大きくとることができなくなる。
On the other hand, in order to prevent malfunction due to noise and unnecessary gain increase at the end of the word, it is necessary to increase the threshold value. In this case, however, the maximum gain of the automatic gain control device 1 cannot be increased.

【0005】また、背景ノイズレベルに対して閾値が追
従するように閾値を可変にすれば、背景ノイズに対する
誤動作をかなり防ぐことができるが、語尾部分に対する
利得の不要な上昇を防ぐことはできない。
Further, if the threshold value is made variable so that the threshold value follows the background noise level, it is possible to prevent a malfunction due to the background noise, but it is not possible to prevent an unnecessary increase in the gain for the ending portion.

【0006】それゆえにこの発明の主たる目的は、音声
の語尾部分や背景ノイズに対する不要な利得制御を抑え
るとともに、より大きな最大利得が得られる自動利得制
御装置を提供することである。
Therefore, a main object of the present invention is to provide an automatic gain control device capable of suppressing unnecessary gain control for the end portion of voice and background noise and obtaining a larger maximum gain.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、請求項1に記載の自動利得制御装置は、入力信号に
利得をかけて増幅し出力信号を得る自動利得制御装置で
あって、入力信号に基づいて入力信号レベルを算出する
入力信号レベル算出手段、出力信号に基づいて出力信号
レベルを算出する出力信号レベル算出手段、出力信号レ
ベルと予め設定された目標レベルとに基づいて利得を制
御する利得制御手段、第1閾値および第1閾値より大き
い第2閾値がそれぞれ記憶される記憶手段、入力信号レ
ベルが第1閾値より小さければ利得制御手段による利得
制御を停止する第1手段、入力信号レベルが第2閾値よ
り大きければ利得制御手段による利得制御を実行する第
2手段、および入力信号レベルが第1閾値以上でありか
つ第2閾値以下である場合において、入力信号レベルが
第1閾値より小さい値から増加してきたときには利得制
御手段による利得制御を実行し、一方、入力信号レベル
が第2閾値より大きな値から減少してきたときには利得
制御手段による利得制御を停止する第3手段を備える。
In order to achieve the above object, an automatic gain control apparatus according to claim 1 is an automatic gain control apparatus which applies an gain to an input signal to amplify the input signal to obtain an output signal. Input signal level calculating means for calculating the input signal level based on the input signal, output signal level calculating means for calculating the output signal level based on the output signal, and gain based on the output signal level and a preset target level. Gain control means for controlling, storage means for storing a first threshold value and a second threshold value larger than the first threshold value, first means for stopping gain control by the gain control means if the input signal level is smaller than the first threshold value, input Second means for performing gain control by the gain control means if the signal level is higher than the second threshold, and if the input signal level is higher than the first threshold and lower than the second threshold. In this case, when the input signal level increases from a value smaller than the first threshold value, the gain control means executes the gain control, while when the input signal level decreases from a value larger than the second threshold value, the gain control means performs it. A third means for stopping the gain control is provided.

【0008】請求項2に記載の自動利得制御装置は、請
求項1に記載の自動利得制御装置において、入力信号レ
ベルが第1閾値より小さい値から増加してきたか第2閾
値より大きい値から減少してきたかを示すフラグを含
み、第3手段は、フラグを参照して利得制御手段による
利得制御を実行するか停止するかを判断する手段を含む
ものである。
The automatic gain control apparatus according to a second aspect is the automatic gain control apparatus according to the first aspect, in which the input signal level has increased from a value smaller than the first threshold value or decreased from a value greater than the second threshold value. The third means includes means for determining whether to execute or stop the gain control by the gain control means by referring to the flag.

【0009】請求項3に記載の自動利得制御装置は、請
求項2に記載の自動利得制御装置において、第1閾値お
よび第2閾値を可変に設定する閾値設定手段をさらに含
み、閾値設定手段は、入力信号レベルと背景ノイズ基準
値との比較結果に応じて背景ノイズ基準値を設定する手
段、設定された背景ノイズ基準値に基づい第1閾値を設
定する第1閾値設定手段、および第1閾値設定手段によ
って設定された第1閾値に基づいて第2閾値を設定する
第2閾値設定手段を含むものである。
An automatic gain control apparatus according to a third aspect is the automatic gain control apparatus according to the second aspect, further comprising threshold setting means for variably setting the first threshold value and the second threshold value, and the threshold setting means. Means for setting a background noise reference value in accordance with the result of comparison between the input signal level and the background noise reference value, first threshold value setting means for setting a first threshold value based on the set background noise reference value, and first threshold value The second threshold value setting means for setting the second threshold value based on the first threshold value set by the setting means is included.

【0010】請求項4に記載の自動利得制御装置は、請
求項3に記載の自動利得制御装置において、第1閾値設
定手段は、背景ノイズ基準値に第1所定値を乗算するこ
とによって第1閾値を設定する手段を含み、第2閾値設
定手段は、第1閾値に第2所定値を加算することによっ
て第2閾値を設定する手段を含むものである。
An automatic gain control device according to a fourth aspect is the automatic gain control device according to the third aspect, wherein the first threshold value setting means multiplies the background noise reference value by a first predetermined value. The second threshold setting means includes means for setting a threshold, and the second threshold setting means includes means for setting a second threshold by adding a second predetermined value to the first threshold.

【0011】請求項1に記載の自動利得制御装置では、
出力信号レベル算出手段によって算出された出力信号レ
ベルと予め設定された目標レベルとに基づいて、利得制
御手段によって利得が制御される。入力信号レベル算出
手段によって算出された入力信号レベルが第1閾値より
小さければ利得制御は停止され、入力信号レベルが第2
閾値より大きければ利得制御は実行される。入力信号レ
ベルが第1閾値より小さい値から増加して第1閾値以上
かつ第2閾値以下になったときには、利得制御が実行さ
れ、一方、入力信号レベルが第2閾値より大きな値から
減少して第1閾値以上かつ第2閾値以下になったときに
は、利得制御が停止される。利得制御時には、利得制御
手段によって決定された利得を入力信号にかけて増幅し
出力信号が得られる。
In the automatic gain control device according to the first aspect,
The gain is controlled by the gain control means based on the output signal level calculated by the output signal level calculation means and the preset target level. If the input signal level calculated by the input signal level calculating means is smaller than the first threshold value, the gain control is stopped and the input signal level is set to the second value.
If it is larger than the threshold value, the gain control is executed. When the input signal level increases from a value smaller than the first threshold value and becomes equal to or higher than the first threshold value and equal to or lower than the second threshold value, the gain control is executed, while the input signal level decreases from the value higher than the second threshold value. When it is equal to or more than the first threshold and equal to or less than the second threshold, the gain control is stopped. During gain control, the gain determined by the gain control means is applied to the input signal and amplified to obtain the output signal.

【0012】請求項2に記載の自動利得制御装置では、
フラグを参照して入力信号レベルの履歴が判断され、利
得制御を実行するか否かが判断される。
In the automatic gain control device according to the second aspect,
The history of the input signal level is determined by referring to the flag, and it is determined whether or not the gain control is executed.

【0013】このように入力信号レベルに対して2種類
の閾値を設定し、それらの閾値間にヒステリシス性を持
たせる。すなわち、低めに設定された第1閾値と高めに
設定された第2閾値とが用意され、第1閾値を基準とす
ることによって、利得制御の最小レベルをより小さくす
ることができ、大きな最大利得が得られる。また、第2
閾値を基準とすることによって、語尾部分や背景ノイズ
に対する不要な利得制御が抑えられる。
In this way, two kinds of thresholds are set for the input signal level, and hysteresis is provided between these thresholds. That is, the first threshold value set to a lower value and the second threshold value set to a higher value are prepared. By using the first threshold value as a reference, the minimum level of gain control can be made smaller, and a large maximum gain can be obtained. Is obtained. Also, the second
By using the threshold value as a reference, unnecessary gain control with respect to the ending portion and background noise can be suppressed.

【0014】また、第1閾値および第2閾値は可変にさ
れてもよい。
The first threshold and the second threshold may be variable.

【0015】請求項3に記載の自動利得制御装置では、
閾値設定手段において、まず、入力信号レベルと背景ノ
イズ基準値との比較結果に応じて背景ノイズ基準値が設
定される。そして、第1閾値設定手段によって、設定さ
れ背景ノイズ基準値に基づいて第1閾値が設定される。
たとえば背景ノイズ基準値に第1所定値を乗算すること
によって第1閾値が設定されてもよい(請求項4)。第
1閾値設定手段によって設定された第1閾値に基づい
て、第2閾値設定手段によって第2閾値が設定される。
たとえば第1閾値に第2所定値を加算することによって
第2閾値が設定されてもよい(請求項4)。
In the automatic gain control device according to the third aspect,
In the threshold setting means, first, the background noise reference value is set according to the result of comparison between the input signal level and the background noise reference value. Then, the first threshold value setting means sets the first threshold value based on the background noise reference value that has been set.
For example, the first threshold value may be set by multiplying the background noise reference value by the first predetermined value (claim 4). The second threshold value setting unit sets the second threshold value based on the first threshold value set by the first threshold value setting unit.
For example, the second threshold value may be set by adding the second predetermined value to the first threshold value (claim 4).

【0016】このように第1閾値および第2閾値を可変
とすることによって、背景ノイズレベルの変動に追従し
た第1閾値および第2閾値が設定される。
By making the first threshold value and the second threshold value variable in this way, the first threshold value and the second threshold value that follow the fluctuation of the background noise level are set.

【0017】[0017]

【発明の実施の形態】以下、この発明の実施の形態につ
いて図面を参照して説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings.

【0018】図1を参照して、この発明の実施の形態の
自動利得制御装置10は、アナログの入力信号をディジ
タル化するA/D変換器12を含み、ディジタル化され
た入力信号はCPU14に入力される。CPU14は、
フラグ1およびフラグ2を有し、フラグ1によって利得
制御を実行するか否かが示され、フラグ2によって、入
力信号レベルin_levが閾値Thl1以上でありかつ閾値
Thl2以下である場合において、入力信号レベルin_l
evが、閾値Thl1より小さい値から増加してきたか、
閾値Thl2より大きな値から減少してきたかが示され
る。また、CPU14には、ROM16およびRAM1
8が接続される。
Referring to FIG. 1, an automatic gain control device 10 according to an embodiment of the present invention includes an A / D converter 12 for digitizing an analog input signal, and the digitized input signal is sent to CPU 14. Is entered. CPU14
The flag 1 and the flag 2 are provided, and the flag 1 indicates whether or not the gain control is executed. The flag 2 indicates that the input signal level in_lev is equal to or greater than the threshold Thl1 and equal to or less than the threshold Thl2. in_l
Whether ev has increased from a value smaller than the threshold Thl1,
It is indicated whether the value has decreased from a value larger than the threshold Thl2. Further, the CPU 14 has a ROM 16 and a RAM 1
8 are connected.

【0019】ROM16には、自動利得制御装置10の
動作を制御するためのプログラムや予め設定されたデー
タが格納される。ROM16に格納されるデータとして
は、自動利得制御装置10によって出力信号レベルout_
levを合わせるための目標値となる目標レべル、入力信
号にかける利得AGC_gainの初期値、利得を増加する場合
の単位時間当たりの利得増加幅G_up、利得を減少する場
合の単位時間当たりの利得減少幅G_down、利得制御を行
うか否かを決定するための閾値Thl1、閾値Thl1
より大きい閾値Thl2等が含まれる。RAM18に
は、CPU14での演算によって得られた計算値等のデ
ータが一時的に格納される。RAM18に格納されるデ
ータとしては、入力信号にかける利得AGC_gain、入力信
号レベルin_lev、出力信号レベルout_lev等が含まれ
る。
The ROM 16 stores a program for controlling the operation of the automatic gain control device 10 and preset data. The data stored in the ROM 16 is output signal level out_ by the automatic gain control device 10.
Target level that is the target value for adjusting lev, initial value of gain AGC_gain applied to the input signal, gain increase width G_up per unit time when gain is increased, gain per unit time when gain is decreased Reduction amount G_down, threshold value Thl1 and threshold value Thl1 for determining whether to perform gain control
Larger threshold values Thl2 and the like are included. The RAM 18 temporarily stores data such as a calculated value obtained by the calculation by the CPU 14. The data stored in the RAM 18 includes the gain AGC_gain applied to the input signal, the input signal level in_lev, the output signal level out_lev, and the like.

【0020】CPU14によって得られるディジタル化
された出力信号は、D/A変換器20によってアナログ
化され、出力される。
The digitized output signal obtained by the CPU 14 is converted into an analog signal by the D / A converter 20 and output.

【0021】このように構成される自動利得制御装置1
0の自動利得制御は、CPU14、ROM16およびR
AM18によって実行され、その機能ブロック図を図2
に示す。
The automatic gain control device 1 configured as described above
Automatic gain control of 0, CPU14, ROM16 and R
2 is a functional block diagram executed by the AM18.
Shown in.

【0022】図2および図3を参照して、自動利得制御
装置10全体の動作を説明する。
The operation of the entire automatic gain control device 10 will be described with reference to FIGS. 2 and 3.

【0023】まず、各値が初期化される(ステップS
1)。このとき、入力信号にかける利得AGC_gainが初期
値に設定され、入力信号レベルin_lev、出力信号レベル
out_levがそれぞれゼロクリアされ、それぞれRAM1
8に格納される。また、CPU14内のフラグ1および
フラグ2がクリアされる。
First, each value is initialized (step S).
1). At this time, the gain AGC_gain applied to the input signal is set to the initial value, and the input signal level in_lev and the output signal level
out_lev is cleared to zero, RAM1
8 is stored. Further, the flag 1 and the flag 2 in the CPU 14 are cleared.

【0024】そして、A/D変換器12によってディジ
タル化された入力信号がCPU14に与えられ、その入
力信号レベルin_levが算出され、算出された入力信号レ
ベルin_levは一時的にRAM18に格納される(ステッ
プS3)。入力信号レベルin_levは、たとえばサンプリ
ング周波数8KHzで抽出された連続する20サンプル
の2乗和によって算出される。後述する出力信号レベル
out_levについても同様である。ステップS3は、入力
信号レべル算出部22での処理に相当する。
Then, the input signal digitized by the A / D converter 12 is given to the CPU 14, the input signal level in_lev thereof is calculated, and the calculated input signal level in_lev is temporarily stored in the RAM 18 ( Step S3). The input signal level in_lev is calculated, for example, by the sum of squares of 20 consecutive samples extracted at a sampling frequency of 8 KHz. Output signal level described later
The same applies to out_lev. Step S3 corresponds to the processing in the input signal level calculation unit 22.

【0025】ついで、CPU14は、RAM18に格納
された入力信号レベルin_levに基づいて、後述する図4
に示す動作によって利得制御を行うか否かを決定する
(ステップS5)。利得制御を行わないよう決定された
ときにはCPU14内のフラグ1は「0」に設定され、
利得制御を行うよう決定されたときにはフラグ1は
「1」に設定される。ステップS5は、動作決定部24
による利得制御部26のON/OFF決定処理に相当す
る。
Next, the CPU 14 will be described later with reference to FIG. 4 based on the input signal level in_lev stored in the RAM 18.
It is determined whether or not to perform the gain control by the operation shown in (step S5). When it is determined not to perform the gain control, the flag 1 in the CPU 14 is set to "0",
When it is decided to perform the gain control, the flag 1 is set to "1". In step S5, the action determining unit 24
Corresponds to the ON / OFF determination process of the gain control unit 26.

【0026】利得制御を行うか否かがフラグ1を参照し
てCPU14によって判断され(ステップS7)、利得
制御を行う場合には、出力信号レベルout_levが目標レ
べルに近づくようにCPU14によって利得AGC_gainが
制御される(ステップS9)。ステップS7は、利得制
御部26がONされているか否かに相当し、ステップS
9は、利得制御部26による利得制御処理に相当する。
Whether or not the gain control is performed is determined by the CPU 14 with reference to the flag 1 (step S7). When the gain control is performed, the gain is controlled by the CPU 14 so that the output signal level out_lev approaches the target level. AGC_gain is controlled (step S9). Step S7 corresponds to whether or not the gain control unit 26 is turned on.
9 corresponds to a gain control process by the gain control unit 26.

【0027】そして、CPU14は、入力信号を増幅し
て出力する(ステップS11)。ステップS7において
利得制御を行うと判断された場合には、調整された利得
AGC_gainによって入力信号は増幅される。一方、ステッ
プS7において利得制御を行わないと判断された場合に
は、ステップS11に進み、利得制御が停止される直前
に決定された利得AGC_gainをそのまま保持しその利得AG
C_gainによって増幅される。これによって、利得制御の
ON/OFFの切り替わりによる不要な利得変化を防止
できる。ステップS11は、増幅部28による入力信号
の増幅処理に相当する。
Then, the CPU 14 amplifies and outputs the input signal (step S11). If it is determined in step S7 that gain control is performed, the adjusted gain is adjusted.
The input signal is amplified by AGC_gain. On the other hand, when it is determined that the gain control is not performed in step S7, the process proceeds to step S11, and the gain AGC_gain determined immediately before the gain control is stopped is held as it is.
It is amplified by C_gain. As a result, it is possible to prevent unnecessary gain change due to ON / OFF switching of gain control. Step S11 corresponds to the amplification processing of the input signal by the amplification unit 28.

【0028】そして、CPU14によって、出力信号レ
ベルout_levが算出され、一時的にRAM18に格納さ
れる(ステップS13)。ステップS13は、出力信号
レべル算出部30による出力信号レベルout_lev算出処
理に相当する。
Then, the CPU 14 calculates the output signal level out_lev and temporarily stores it in the RAM 18 (step S13). Step S13 corresponds to the output signal level out_lev calculation processing by the output signal level calculation unit 30.

【0029】その後、ステップS3に戻り、上述の動作
が繰り返される。
Then, the process returns to step S3, and the above-described operation is repeated.

【0030】ついで、図4を参照して、ステップS5に
おける動作を詳細に説明する。
The operation in step S5 will be described in detail with reference to FIG.

【0031】まず、CPU14はRAM18に格納され
た入力信号レベルin_levを読み出す(ステップS2
1)。ステップS21は、入力信号レベル算出部22か
ら動作決定部24への入力信号レベルin_levの入力に相
当する。
First, the CPU 14 reads the input signal level in_lev stored in the RAM 18 (step S2).
1). Step S21 corresponds to the input of the input signal level in_lev from the input signal level calculation unit 22 to the operation determination unit 24.

【0032】そして、入力信号レベルin_lev<閾値Th
l1か否かが判断される(ステップS23)。入力信号
レベルin_lev<閾値Thl1であれば、フラグ2=
「1」に設定され(ステップS25)、利得制御を行わ
ないよう決定され、フラグ1=「0」に設定されて(ス
テップS27)、終了する。
Input signal level in_lev <threshold Th
It is determined whether or not it is 11 (step S23). If the input signal level in_lev <threshold Thl1, flag 2 =
The value is set to "1" (step S25), it is determined not to perform gain control, the flag 1 is set to "0" (step S27), and the process ends.

【0033】ステップS23において、入力信号レベル
in_lev<閾値Thl1でなければ、入力信号レベルin_l
ev>閾値Thl2か否かが判断される(ステップS2
9)。入力信号レベルin_lev>閾値Thl2であれば、
フラグ2=「0」に設定され(ステップS31)、利得
制御を行うよう決定され、フラグ1=「1」に設定され
て(ステップS33)、終了する。
In step S23, the input signal level
in_lev <threshold value Thl1, unless the input signal level in_l
It is determined whether or not ev> threshold Thl2 (step S2
9). If the input signal level in_lev> threshold Thl2,
The flag 2 is set to "0" (step S31), it is determined to perform gain control, the flag 1 is set to "1" (step S33), and the process is ended.

【0034】一方、ステップS29において、入力信号
レベルin_lev>閾値Thl2でなければ、閾値Thl1
≦入力信号レベルin_lev≦閾値Thl2であるので、入
力信号レベルin_levが閾値Thl1より小さい値から増
加してきたか閾値Thl2より大きな値から減少してき
たかが、フラグ2を参照して判断される(ステップS3
5)。フラグ2=「0」であれば、入力信号レベルin_l
evが閾値Thl2より大きな値から減少してきた状態を
示すので、利得制御を行わないよう決定され、フラグ1
=「0」に設定される(ステップS27)。
On the other hand, in step S29, if the input signal level in_lev> threshold Thl2 is not satisfied, the threshold Thl1
Since ≦ input signal level in_lev ≦ threshold Thl2, it is determined by referring to the flag 2 whether the input signal level in_lev has increased from a value smaller than the threshold Thl1 or decreased from a value larger than the threshold Thl2 (step S3
5). If flag 2 = "0", input signal level in_l
Since ev indicates a state where the value has decreased from a value larger than the threshold value Thl2, it is determined not to perform gain control, and flag 1 is set.
= “0” is set (step S27).

【0035】ステップS35において、フラグ2=
「1」であれば、入力信号レベルin_levが閾値Thl1
より小さな値から増加してきた状態を示すので、利得制
御を行うよう決定され、フラグ1=「1」に設定される
(ステップS33)。
In step S35, flag 2 =
If it is "1", the input signal level in_lev is the threshold Thl1.
Since it indicates a state of increasing from a smaller value, it is decided to perform gain control, and flag 1 is set to "1" (step S33).

【0036】このように、入力信号レベルin_levと閾値
Thl1、Thl2との比較、およびフラグ2を参照し
て、利得制御を行うか否かが決定される。
As described above, by comparing the input signal level in_lev with the threshold values Thl1 and Thl2 and referring to the flag 2, it is determined whether or not the gain control is performed.

【0037】さらに、図5を参照して、ステップS9に
おける動作を詳細に説明する。
The operation in step S9 will be described in detail with reference to FIG.

【0038】まず、CPU14はRAM18に格納され
た出力信号レベルout_levを読み出す(ステップS4
1)。ステップS41は、出力信号レべル算出部30か
ら利得制御部26への出力信号レベルout_levの入力に
相当する。
First, the CPU 14 reads the output signal level out_lev stored in the RAM 18 (step S4).
1). Step S41 corresponds to the input of the output signal level out_lev from the output signal level calculation unit 30 to the gain control unit 26.

【0039】そして、出力信号レベルout_lev<目標レ
べルか否かが判断される(ステップS43)。出力信号
レベルout_lev<目標レべルであれば、出力信号レベルo
ut_levをさらに大きくする必要があるため、AGC_gain=
AGC_gain+G_upに設定され、入力信号にかける利得AGC_
gainが大きくされる(ステップS45)。ステップS4
3において、出力信号レベルout_lev<目標レべルでな
ければ、出力信号レベルout_lev>目標レべルか否かが
判断される(ステップS47)。出力信号レベルout_le
v>目標レべルであれば、出力信号レベルout_levを小さ
くする必要があるため、AGC_gain=AGC_gain−G_downに
設定され、入力信号にかける利得AGC_gainが小さくされ
る(ステップS49)。ステップS47において、出力
信号レベルout_lev>目標レべルでなければ、出力信号
レベルout_lev=目標レべルであるので、入力信号にか
ける利得AGC_gainを変化させない。
Then, it is judged whether or not the output signal level out_lev <target level (step S43). If the output signal level out_lev <target level, the output signal level o
Since it is necessary to increase ut_lev, AGC_gain =
AGC_gain + G_up, which is the gain applied to the input signal AGC_
The gain is increased (step S45). Step S4
In 3, if the output signal level out_lev is not the target level, it is determined whether or not the output signal level out_lev> the target level (step S47). Output signal level out_le
If v> the target level, it is necessary to reduce the output signal level out_lev, so that AGC_gain = AGC_gain-G_down is set, and the gain AGC_gain applied to the input signal is reduced (step S49). In step S47, if the output signal level out_lev> target level is not satisfied, the output signal level out_lev = target level, so the gain AGC_gain applied to the input signal is not changed.

【0040】このように設定された利得AGC_gainによっ
て入力信号が増幅される。
The input signal is amplified by the gain AGC_gain thus set.

【0041】上述の動作によって、利得制御区間はたと
えば図6に示すように設定される。図6のグラフにおい
て、入力信号レベルin_levを実線で示し、入力信号レベ
ルin_levを閾値Thl1および閾値Thl2に基づい
て、領域1、領域2および領域3に区分する。
By the above operation, the gain control section is set as shown in FIG. 6, for example. In the graph of FIG. 6, the input signal level in_lev is shown by a solid line, and the input signal level in_lev is divided into a region 1, a region 2 and a region 3 based on the threshold value Thl1 and the threshold value Thl2.

【0042】領域1では、利得制御が行われない。領域
2では、入力信号レベルin_levが領域1より増加してき
た場合には利得制御が行われ、入力信号レベルin_levが
領域3より減少してきた場合には利得制御は行われな
い。領域3では、利得制御が行われる。
In area 1, no gain control is performed. In the region 2, the gain control is performed when the input signal level in_lev is higher than that in the region 1, and the gain control is not performed when the input signal level in_lev is lower than that in the region 3. In area 3, gain control is performed.

【0043】したがって、区間aおよびbが利得制御区
間となる。
Therefore, the sections a and b are gain control sections.

【0044】このように、自動利得制御装置10では、
入力信号レベルin_levに対して2種類の閾値Thl1、
閾値Thl2を設定し、閾値Thl1と閾値Thl2と
の間にヒステリシス性を持たせる。すなわち、低めに設
定された閾値Thl1と高めに設定された閾値Thl2
とを用意して、閾値Thl1を基準とすることによっ
て、利得制御の最小レベルをより小さくすることがで
き、より大きな最大利得が得られる。また、閾値Thl
2を基準とすることによって、音声の語尾部分や背景ノ
イズに対する不要な利得制御を抑えることができる。自
動利得制御装置10は、特に、雑音混じりの音声に対し
て自動利得制御を行う場合に有効となる。
As described above, in the automatic gain control device 10,
Two kinds of threshold values Thl1 for the input signal level in_lev,
The threshold value Thl2 is set so that the threshold value Thl1 and the threshold value Thl2 have hysteresis. That is, the threshold value Thl1 set lower and the threshold value Thl2 set higher.
By preparing and and using the threshold value Thl1 as a reference, the minimum level of gain control can be made smaller, and a larger maximum gain can be obtained. Also, the threshold value Thl
By setting 2 as a reference, it is possible to suppress unnecessary gain control for the ending portion of voice and background noise. The automatic gain control device 10 is particularly effective when performing automatic gain control on a voice containing noise.

【0045】ついで、この発明の他の実施の形態の自動
利得制御装置10aについて説明する。
Next, an automatic gain control device 10a according to another embodiment of the present invention will be described.

【0046】自動利得制御装置10aは、図1に示す自
動利得制御装置10と同様に構成される。なお、ROM
16には、背景ノイズ基準値Thl_baseの初期値、背景ノ
イズ基準値Thl_baseの上昇方向の修正幅T_up、背景ノイ
ズ基準値Thl_baseの降下方向の修正幅T_down、背景ノイ
ズ基準値Thl_baseから閾値Thl1を算出するための所
定の乗数a、閾値Thl1から閾値Thl2を算出する
ための所定の加算量bがさらに格納される。乗数aおよ
び加算量bはそれぞれシステムに応じて設定される。ま
た、閾値Thl1および閾値Thl2は、RAM18に
格納されることになろう。
The automatic gain control device 10a has the same structure as the automatic gain control device 10 shown in FIG. In addition, ROM
In 16, the threshold value Thl1 is calculated from the initial value of the background noise reference value Thl_base, the upward correction width T_up of the background noise reference value Thl_base, the downward correction width T_down of the background noise reference value Thl_base, and the background noise reference value Thl_base. Further, a predetermined multiplier a for the above and a predetermined addition amount b for calculating the threshold Thl2 from the threshold Thl1 are further stored. The multiplier a and the addition amount b are set according to the system. Further, the threshold value Thl1 and the threshold value Thl2 will be stored in the RAM 18.

【0047】自動利得制御装置10aによる自動利得制
御は、CPU14、ROM16およびRAM18によっ
て実行され、その機能ブロック図を図7に示す。
The automatic gain control by the automatic gain control device 10a is executed by the CPU 14, the ROM 16 and the RAM 18, and its functional block diagram is shown in FIG.

【0048】図7を図2と比較してわかるように、自動
利得制御装置10aでは、閾値算出部32およびスイッ
チ34をさらに備える。閾値算出部32は、閾値Thl
1および閾値Thl2を固定値ではなく入力信号レベル
in_levに応じて算出する。スイッチ34は、入力信号が
背景ノイズのみの場合には出力信号として入力信号その
ものを出力するものである。
As can be seen by comparing FIG. 7 with FIG. 2, the automatic gain control device 10a further includes a threshold value calculation section 32 and a switch 34. The threshold calculation unit 32 uses the threshold Thl.
1 and the threshold value Thl2 are not fixed values but the input signal level
Calculate according to in_lev. The switch 34 outputs the input signal itself as an output signal when the input signal is only background noise.

【0049】図8を参照して、自動利得制御装置10a
全体の動作を説明する。
Referring to FIG. 8, an automatic gain control device 10a.
The overall operation will be described.

【0050】図8に示す自動利得制御装置10aの動作
は、図3に示す自動利得制御装置10の動作の、ステッ
プS3とステップS5との間にステップS4を、ステッ
プS13の後にステップS15、S17、S19をさら
に追加するだけで構成されるので、ここでは、重複する
説明は省略する。
As for the operation of the automatic gain control device 10a shown in FIG. 8, step S4 is performed between step S3 and step S5 of the operation of the automatic gain control device 10 shown in FIG. 3, and steps S15 and S17 are performed after step S13. , S19 are simply added, so that a duplicate description will be omitted here.

【0051】ステップS3の後、CPU14によって、
入力信号レベルin_levに基づいて閾値Thl1および閾
値Thl2が算出される(ステップS4)。ステップS
4は、閾値算出部32での処理に相当する。そして、ス
テップS5では、算出された閾値Thl1および閾値T
hl2と入力信号レベルin_levとの比較に基づいて、利
得制御を行うか否かが決定される。
After step S3, the CPU 14
The threshold value Thl1 and the threshold value Thl2 are calculated based on the input signal level in_lev (step S4). Step S
4 corresponds to the processing in the threshold calculation unit 32. Then, in step S5, the calculated threshold value Thl1 and threshold value T1 are calculated.
Whether or not to perform gain control is determined based on the comparison between hl2 and the input signal level in_lev.

【0052】また、ステップS13の後、CPU14に
よって、入力信号は背景ノイズのみか否かが判断される
(ステップS15)。ここでは、後述する図9に示す動
作によって設定される閾値Thl1より入力信号レベル
in_levが小さいときに入力信号は背景ノイズのみである
と判断される。ステップS15は、スイッチ34のスイ
ッチングを制御するための動作決定部24での処理に相
当する。
After step S13, the CPU 14 determines whether the input signal is only background noise (step S15). Here, the input signal level from the threshold Thl1 set by the operation shown in FIG.
When in_lev is small, it is determined that the input signal is only background noise. Step S15 corresponds to the process in the operation determining unit 24 for controlling the switching of the switch 34.

【0053】ステップS15において、入力信号が背景
ノイズのみであると判断されれば、入力信号そのものが
出力信号として出力され(ステップS17)、ステップ
S3に戻る。このようにして、たとえば背景ノイズのみ
の無音状態における不要なノイズの増幅を抑える。一
方、入力信号は背景ノイズのみではないと判断されれ
ば、入力信号を増幅して得られた出力信号が出力され
(ステップS19)、ステップS3に戻る。ステップS
17およびS19は、スイッチ34の切り替えに伴う出
力信号の切り替えに相当する。
If it is determined in step S15 that the input signal is only background noise, the input signal itself is output as the output signal (step S17), and the process returns to step S3. In this way, for example, amplification of unnecessary noise in the silent state of only background noise is suppressed. On the other hand, if it is determined that the input signal is not only background noise, the output signal obtained by amplifying the input signal is output (step S19), and the process returns to step S3. Step S
17 and S19 correspond to the switching of the output signal accompanying the switching of the switch 34.

【0054】ついで、図9を参照して、ステップS4に
おける動作を詳細に説明する。
Next, the operation in step S4 will be described in detail with reference to FIG.

【0055】まず、CPU14はRAM18に格納され
た入力信号レベルin_levを読み出す(ステップS5
1)。ステップS51は、入力信号レベル算出部22か
ら動作決定部24への入力信号レベルin_levの入力に相
当する。
First, the CPU 14 reads the input signal level in_lev stored in the RAM 18 (step S5).
1). Step S51 corresponds to the input of the input signal level in_lev from the input signal level calculation unit 22 to the operation determination unit 24.

【0056】背景ノイズ基準値Thl_base<入力信号レベ
ルin_levか否かが判断される(ステップS53)。背景
ノイズ基準値Thl_base<入力信号レベルin_levであれ
ば、T_base=Thl_base+T_upに設定されて、背景ノイズ
基準値Thl_baseを上昇する(ステップS55)。
It is determined whether or not the background noise reference value Thl_base <input signal level in_lev (step S53). If the background noise reference value Thl_base <input signal level in_lev, T_base = Thl_base + T_up is set, and the background noise reference value Thl_base is increased (step S55).

【0057】そして、Thl1=Thl_base×aによって、閾
値Thl1が設定された(ステップS57)後、Thl2=
Thl1+bによって、閾値Thl2が設定され(ステップ
S59)、終了する。
Then, after the threshold Thl1 is set by Thl1 = Thl_base × a (step S57), Thl2 =
The threshold Thl2 is set by Thl1 + b (step S59), and the process ends.

【0058】一方、ステップS53において、背景ノイ
ズ基準値Thl_base<入力信号レベルin_levでなければ、
背景ノイズ基準値Thl_base>入力信号レベルin_levであ
るか否かが判断される(ステップS61)。背景ノイズ
基準値Thl_base>入力信号レベルin_levであれば、Thl_
base=Thl_base−T_downに設定されて、背景ノイズ基準
値Thl_baseを降下し(ステップS63)、ステップS5
7に進む。一方、ステップS61において、背景ノイズ
基準値Thl_base>入力信号レベルin_levでなければ、そ
のままステップS57に進む。
On the other hand, in step S53, if the background noise reference value Thl_base <input signal level in_lev is not satisfied,
It is determined whether or not the background noise reference value Thl_base> the input signal level in_lev (step S61). If background noise reference value Thl_base> input signal level in_lev, then Thl_
base = Thl_base−T_down is set, the background noise reference value Thl_base is lowered (step S63), and step S5
Proceed to 7. On the other hand, if the background noise reference value Thl_base> input signal level in_lev is not found in step S61, the process directly proceeds to step S57.

【0059】なお、ROM16に格納しておく背景ノイ
ズ基準値Thl_baseの初期値を、自動利得制御装置10a
が応用されるシステムの背景ノイズレベルであると考え
られる値よりも少し大きめに設定しておく。さらに、T_
up≪T_downに設定することによって、背景ノイズ基準値
Thl_baseの変化は、立ち上がり時定数が大きく、立ち下
がり時定数は小さい特性になる。これによって、背景ノ
イズ基準値Thl_baseを背景ノイズレベルに近い値に保持
することができる。
The initial value of the background noise reference value Thl_base stored in the ROM 16 is set to the automatic gain control device 10a.
Set a little larger than the value that is considered to be the background noise level of the system to which is applied. Furthermore, T_
By setting up << T_down, the background noise reference value
The change of Thl_base has a characteristic that the rising time constant is large and the falling time constant is small. As a result, the background noise reference value Thl_base can be held at a value close to the background noise level.

【0060】このようにして、背景ノイズ基準値Thl_ba
se、閾値Thl1および閾値Thl2を可変的に設定す
るすることができる。
In this way, the background noise reference value Thl_ba
se, the threshold value Thl1 and the threshold value Thl2 can be variably set.

【0061】また、図9に示す動作によって、背景ノイ
ズレベルの変動に追従して、図10に示すようにシステ
ムに最適な閾値Thl1を簡単な演算によって算出で
き、さらにそれに応じた閾値Thl2を設定できる。し
たがって、音声に対するより自然な利得制御ができると
ともに、不要な背景ノイズの増幅を防ぐことができる。
Further, by the operation shown in FIG. 9, the threshold value Thl1 most suitable for the system can be calculated by a simple calculation as shown in FIG. 10 by following the fluctuation of the background noise level, and the threshold value Thl2 corresponding thereto is set. it can. Therefore, it is possible to perform more natural gain control for voice and prevent unnecessary background noise from being amplified.

【0062】なお、図11に示すように、この発明の自
動利得制御装置10を、ハンズフリー電話40に応用す
ることができる。
As shown in FIG. 11, the automatic gain control device 10 of the present invention can be applied to the hands-free telephone 40.

【0063】ハンズフリー電話40は、マイク42を含
み、マイク42からのマイク入力信号が自動利得制御装
置10のA/D変換器12に与えられ、ディジタル化さ
れる。そして、自動利得制御装置10によって自動利得
制御され得られた出力信号は、D/A変換器20によっ
てアナログ化されて、回線出力信号としてハイブリッド
回路44に与えられる。電話回線が接続されるハイブリ
ッド回路44では、2線4線変換されて、回線入力信号
が増幅器46で増幅され、スピーカ出力信号がスピーカ
48に与えられ、音声が出力される。
The hands-free telephone 40 includes a microphone 42, and a microphone input signal from the microphone 42 is given to the A / D converter 12 of the automatic gain control device 10 and digitized. Then, the output signal obtained by the automatic gain control by the automatic gain control device 10 is analogized by the D / A converter 20 and is given to the hybrid circuit 44 as a line output signal. In the hybrid circuit 44 to which the telephone line is connected, 2-line to 4-line conversion is performed, the line input signal is amplified by the amplifier 46, the speaker output signal is given to the speaker 48, and the voice is output.

【0064】このように、近端話者の移動などによって
入力信号レベルin_levが大きく変化するハンズフリー電
話40に、自動利得制御装置10を用いれば、背景ノイ
ズによる不要な利得制御を抑えるとともにより大きな最
大利得が得られるため、近端話者の移動による出力信号
レベルの変動をより小さく抑えることができる。
As described above, if the automatic gain control device 10 is used for the hands-free telephone 40 in which the input signal level in_lev changes greatly due to the movement of the near-end speaker or the like, unnecessary gain control due to background noise can be suppressed and a larger value can be obtained. Since the maximum gain is obtained, the fluctuation of the output signal level due to the movement of the near-end speaker can be further suppressed.

【0065】また、図12に示すように、この発明の自
動利得制御装置10を、音声メモ装置50に応用するこ
とができる。
Further, as shown in FIG. 12, the automatic gain control device 10 of the present invention can be applied to the voice memo device 50.

【0066】音声メモ装置50は、マイク52を含み、
マイク52からのマイク入力信号が自動利得制御装置1
0のA/D変換器12に与えられ、ディジタル化され
る。そして、自動利得制御装置10によって自動利得制
御され得られた出力信号は、音声符号化装置54によっ
て符号化されて、記憶装置56へ記録される。再生時に
は、記憶装置56に格納された音声の符号化データは音
声復号化装置58によって復号化され、D/A変換器2
0によってアナログ化されて、スピーカ出力信号がスピ
ーカ60に与えられ、音声が出力される。
The voice memo device 50 includes a microphone 52,
The microphone input signal from the microphone 52 is the automatic gain control device 1.
0 is supplied to the A / D converter 12 and digitized. Then, the output signal obtained by the automatic gain control by the automatic gain control device 10 is encoded by the voice encoding device 54 and recorded in the storage device 56. At the time of reproduction, the encoded audio data stored in the storage device 56 is decoded by the audio decoding device 58, and the D / A converter 2
It is analogized by 0, the speaker output signal is given to the speaker 60, and the voice is output.

【0067】会議録音や音声のメモ録音を行うための音
声メモ装置50では、入力信号レベルin_levが大きく変
化する。特に、大きな会議室での録音を行った場合、よ
り小さいレベルの入力信号を録音する必要がある。この
音声メモ装置50に自動利得制御装置10を用いた場
合、より大きな最大利得が得られるため、より小さなレ
ベルの入力信号に対しても、最適な音量で録音すること
ができる。
In the voice memo device 50 for performing conference recording and voice memo recording, the input signal level in_lev changes greatly. Especially, when recording in a large conference room, it is necessary to record an input signal of a smaller level. When the automatic gain control device 10 is used for the voice memo device 50, a larger maximum gain can be obtained, so that an input signal of a smaller level can be recorded with an optimum volume.

【0068】さらに、図13に示すように、この発明の
自動利得制御装置10を、ディジタル補聴器70に応用
することができる。
Further, as shown in FIG. 13, the automatic gain control device 10 of the present invention can be applied to the digital hearing aid 70.

【0069】ディジタル補聴器70は、マイク72を含
み、マイク72からのマイク入力信号が自動利得制御装
置10のA/D変換器12に与えられ、ディジタル化さ
れる。そして、自動利得制御装置10によって自動利得
制御され得られた出力信号は、D/A変換器20によっ
てアナログ化されて、スピーカ出力信号としてスピーカ
74に与えられ、音声が出力される。
The digital hearing aid 70 includes a microphone 72, and a microphone input signal from the microphone 72 is given to the A / D converter 12 of the automatic gain control device 10 and digitized. Then, the output signal obtained by the automatic gain control by the automatic gain control device 10 is converted into an analog signal by the D / A converter 20, and is given to the speaker 74 as a speaker output signal to output a sound.

【0070】補聴器利用者の移動などによって、対象と
なる音源からの入力信号レベルin_levが非常に小さくな
る場合がある。ディジタル補聴器70に自動利得制御装
置10を用いた場合、より大きな最大利得が得られるた
め、対象となる音源からの入力信号レベルin_levが非常
に小さい場合でも、補聴器利用者は最適なレベルで聞く
ことができる。
The input signal level in_lev from the target sound source may become extremely small due to the movement of the hearing aid user. When the automatic gain control device 10 is used for the digital hearing aid 70, a larger maximum gain is obtained, so that even if the input signal level in_lev from the target sound source is very small, the hearing aid user should listen at the optimum level. You can

【0071】なお、図11〜図13に示す応用例には、
自動利得制御装置10aが用いられてもよく、この場合
にも自動利得制御装置10を用いる場合と同様の効果が
得られる。
The application examples shown in FIGS. 11 to 13 are as follows.
The automatic gain control device 10a may be used, and in this case, the same effect as when the automatic gain control device 10 is used can be obtained.

【0072】また、上述に各実施の形態において、CP
U14に代えてDSPが用いられてもよい。
In each of the above embodiments, the CP
A DSP may be used instead of U14.

【0073】入力信号レベルin_levは、入力信号のサン
プルの絶対値の和によって算出されてもよく、同様に、
出力信号レベルout_levは、出力信号のサンプルの絶対
値の和によって算出されてもよい。
The input signal level in_lev may be calculated by the sum of the absolute values of the samples of the input signal, and similarly,
The output signal level out_lev may be calculated by the sum of absolute values of samples of the output signal.

【0074】[0074]

【発明の効果】この発明によれば、音声の語尾部分や背
景ノイズに対する不要な利得制御を抑えることができる
とともに、より大きな最大利得が得られる。したがっ
て、より自然な音声を出力することができる。
According to the present invention, it is possible to suppress unnecessary gain control for the ending portion of voice and background noise, and obtain a larger maximum gain. Therefore, a more natural sound can be output.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明の一実施形態を示すブロック図であ
る。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1の実施形態の主要部を示す機能ブロック図
である。
FIG. 2 is a functional block diagram showing a main part of the embodiment shown in FIG.

【図3】図1および図2に示す実施の形態の動作の一例
を示すフロー図である。
FIG. 3 is a flowchart showing an example of the operation of the embodiment shown in FIGS. 1 and 2.

【図4】図3のステップS5の動作の詳細を示すフロー
図である。
FIG. 4 is a flowchart showing details of the operation of step S5 of FIG.

【図5】図3のステップS9の動作の詳細を示すフロー
図である。
5 is a flowchart showing details of the operation of step S9 in FIG.

【図6】利得制御区間を示すグラフである。FIG. 6 is a graph showing a gain control section.

【図7】この発明の他の実施の形態の主要部を示す機能
ブロック図である。
FIG. 7 is a functional block diagram showing a main part of another embodiment of the present invention.

【図8】図1および図7に示す実施の形態の動作の一例
を示すフロー図である。
FIG. 8 is a flowchart showing an example of the operation of the embodiment shown in FIGS. 1 and 7.

【図9】図8のステップS4の動作の詳細を示すフロー
図である。
9 is a flowchart showing details of the operation of step S4 in FIG.

【図10】図9に示す動作によって算出された閾値Th
l1を示すグラフである。
10 is a threshold Th calculated by the operation shown in FIG.
It is a graph which shows l1.

【図11】自動利得制御装置をハンズフリー電話に応用
した場合を示すブロック図である。
FIG. 11 is a block diagram showing a case where the automatic gain control device is applied to a hands-free telephone.

【図12】自動利得制御装置を音声メモ装置に応用した
場合を示すブロック図である。
FIG. 12 is a block diagram showing a case where the automatic gain control device is applied to a voice memo device.

【図13】自動利得制御装置をディジタル補聴器に応用
した場合を示すブロック図である。
FIG. 13 is a block diagram showing a case where the automatic gain control device is applied to a digital hearing aid.

【図14】従来技術の主要部を示す機能ブロック図であ
る。
FIG. 14 is a functional block diagram showing a main part of a conventional technique.

【符号の説明】[Explanation of symbols]

1、2 フラグ 10、10a 自動利得制御装置 12 A/D変換器 14 CPU 16 ROM 18 RAM 20 D/A変換器 in_lev 入力信号レベル out_lev 出力信号レベル Thl1、Thl2 閾値 a 乗数 b 加算量 1 and 2 flags 10, 10a Automatic gain control device 12 A / D converter 14 CPU 16 ROM 18 RAM 20 D / A converter in_lev Input signal level out_lev Output signal level Thl1, Thl2 threshold a multiplier b Addition amount

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H03G 3/20 H04M 1/60 ─────────────────────────────────────────────────── ─── Continuation of front page (58) Fields surveyed (Int.Cl. 7 , DB name) H03G 3/20 H04M 1/60

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力信号に利得をかけて増幅し出力信号
を得る自動利得制御装置であって、 前記入力信号に基づいて入力信号レベルを算出する入力
信号レベル算出手段、 前記出力信号に基づいて出力信号レベルを算出する出力
信号レベル算出手段、 前記出力信号レベルと予め設定された目標レベルとに基
づいて前記利得を制御する利得制御手段、 第1閾値および前記第1閾値より大きい第2閾値がそれ
ぞれ記憶される記憶手段、 前記入力信号レベルが前記第1閾値より小さければ前記
利得制御手段による利得制御を停止する第1手段、 前記入力信号レベルが前記第2閾値より大きければ前記
利得制御手段による利得制御を実行する第2手段、およ
び前記入力信号レベルが前記第1閾値以上でありかつ前
記第2閾値以下である場合において、前記入力信号レベ
ルが前記第1閾値より小さい値から増加してきたときに
は前記利得制御手段による利得制御を実行し、一方、前
記入力信号レベルが前記第2閾値より大きな値から減少
してきたときには前記利得制御手段による利得制御を停
止する第3手段を備える、自動利得制御装置。
1. An automatic gain control device for obtaining an output signal by applying a gain to an input signal to amplify the input signal, the input signal level calculating means calculating an input signal level based on the input signal, and based on the output signal. Output signal level calculation means for calculating an output signal level, gain control means for controlling the gain based on the output signal level and a preset target level, a first threshold value and a second threshold value larger than the first threshold value. Storage means respectively stored therein; first means for stopping the gain control by the gain control means if the input signal level is smaller than the first threshold value; and by the gain control means if the input signal level is larger than the second threshold value. A second means for performing gain control, and a case where the input signal level is equal to or higher than the first threshold and equal to or lower than the second threshold, When the input signal level increases from a value smaller than the first threshold value, the gain control means executes the gain control, while when the input signal level decreases from a value larger than the second threshold value, the gain control. An automatic gain control device comprising third means for stopping the gain control by the means.
【請求項2】 前記入力信号レベルが前記第1閾値より
小さい値から増加してきたか前記第2閾値より大きい値
から減少してきたかを示すフラグを含み、 前記第3手段は、前記フラグを参照して前記利得制御手
段による利得制御を実行するか停止するかを判断する手
段を含む、請求項1に記載の自動利得制御装置。
2. A flag indicating whether the input signal level has increased from a value smaller than the first threshold value or decreased from a value larger than the second threshold value, and the third means refers to the flag. 2. The automatic gain control device according to claim 1, further comprising means for determining whether to perform or stop the gain control by the gain control means.
【請求項3】 前記第1閾値および前記第2閾値を可変
に設定する閾値設定手段をさらに含み、 前記閾値設定手段は、前記入力信号レベルと背景ノイズ
基準値との比較結果に応じて前記背景ノイズ基準値を設
定する手段、設定された前記背景ノイズ基準値に基づい
て前記第1閾値を設定する第1閾値設定手段、および前
記第1閾値設定手段によって設定された前記第1閾値に
基づいて前記第2閾値を設定する第2閾値設定手段を含
む、請求項2に記載の自動利得制御装置。
3. Further comprising threshold setting means for variably setting said first threshold and said second threshold, said threshold setting means said said background according to the result of comparison between said input signal level and background noise reference value. Based on the means for setting a noise reference value, the first threshold value setting means for setting the first threshold value based on the set background noise reference value, and the first threshold value set by the first threshold value setting means The automatic gain control device according to claim 2, further comprising a second threshold value setting unit that sets the second threshold value.
【請求項4】 前記第1閾値設定手段は、前記背景ノイ
ズ基準値に第1所定値を乗算することによって前記第1
閾値を設定する手段を含み、 前記第2閾値設定手段は、前記第1閾値に第2所定値を
加算することによって前記第2閾値を設定する手段を含
む、請求項3に記載の自動利得制御装置。
4. The first threshold value setting means is configured to multiply the background noise reference value by a first predetermined value.
The automatic gain control according to claim 3, further comprising means for setting a threshold value, wherein the second threshold value setting means includes means for setting the second threshold value by adding a second predetermined value to the first threshold value. apparatus.
JP3398598A 1998-01-30 1998-01-30 Automatic gain control device Expired - Fee Related JP3519935B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3398598A JP3519935B2 (en) 1998-01-30 1998-01-30 Automatic gain control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3398598A JP3519935B2 (en) 1998-01-30 1998-01-30 Automatic gain control device

Publications (2)

Publication Number Publication Date
JPH11220345A JPH11220345A (en) 1999-08-10
JP3519935B2 true JP3519935B2 (en) 2004-04-19

Family

ID=12401781

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3398598A Expired - Fee Related JP3519935B2 (en) 1998-01-30 1998-01-30 Automatic gain control device

Country Status (1)

Country Link
JP (1) JP3519935B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007124302A (en) * 2005-10-28 2007-05-17 Nippon Telegr & Teleph Corp <Ntt> Automatic volume control method, automatic volume controller, program and recording medium
JP4926005B2 (en) * 2007-11-13 2012-05-09 ソニー・エリクソン・モバイルコミュニケーションズ株式会社 Audio signal processing apparatus, audio signal processing method, and communication terminal
JP5394905B2 (en) 2009-01-14 2014-01-22 ローム株式会社 Automatic level control circuit, audio digital signal processor and variable gain amplifier gain control method using the same
JP5012859B2 (en) * 2009-07-03 2012-08-29 パナソニック株式会社 Volume control device
JP5513907B2 (en) * 2010-01-26 2014-06-04 ローム株式会社 AUTOMATIC LEVEL CONTROL CIRCUIT AND AUDIO DIGITAL SIGNAL PROCESSOR, ELECTRONIC DEVICE, AND VARIABLE GAIN AMPLIFIER GAIN CONTROL METHOD USING THE SAME
JP5771774B2 (en) * 2010-12-14 2015-09-02 パナソニックIpマネジメント株式会社 Automatic volume correction device, audio transfer device, and intercom system

Also Published As

Publication number Publication date
JPH11220345A (en) 1999-08-10

Similar Documents

Publication Publication Date Title
US5946391A (en) Telephones with talker sidetone
CN100514989C (en) Microphone gains regulator of communication device
US7242784B2 (en) Dynamic gain control of audio in a communication device
US6741873B1 (en) Background noise adaptable speaker phone for use in a mobile communication device
JP5102273B2 (en) Method and apparatus for automatically adjusting speaker gain and microphone gain in a mobile telephone
KR20100002300A (en) Automatic volume and dynamic range adjustment for mobile audio devices
JP2008543194A (en) Audio signal gain control apparatus and method
US7260209B2 (en) Methods and apparatus for improving voice quality in an environment with noise
JPH10136078A (en) Telephone set having automatic gain control means
JPS59210758A (en) Digital hand-free telephone set
CN102610229A (en) Method, apparatus and device for audio dynamic range compression
US20010038699A1 (en) Automatic directional processing control for multi-microphone system
JP3519935B2 (en) Automatic gain control device
JP2001507551A (en) Improved audio playback device and telephone terminal
KR980007317A (en) Apparatus and method for allowing a telephone user to control a threshold volume at which a user&#39;s voice controls a half-duplex speakerphone
JP4548953B2 (en) Voice automatic gain control apparatus, voice automatic gain control method, storage medium storing computer program having algorithm for voice automatic gain control, and computer program having algorithm for voice automatic gain control
JP2001236090A (en) Voice input device
JP2000349893A (en) Voice reproduction method and voice reproduction device
JP2965788B2 (en) Audio gain control device and audio recording / reproducing device
JP3279267B2 (en) Audio output adjustment method and device
JP2004104692A (en) Automatic gain controller, automatic gain control method, and automatic gain control program
JP2981044B2 (en) Digital automatic gain controller
JPH11214940A (en) Automatic gain controller
JP2002299975A (en) Digital agc device
JPH10285268A (en) Mobile communication terminal

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040113

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040130

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090206

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090206

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100206

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110206

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110206

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120206

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120206

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130206

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees