JPH11220345A - Automatic gain controller - Google Patents

Automatic gain controller

Info

Publication number
JPH11220345A
JPH11220345A JP3398598A JP3398598A JPH11220345A JP H11220345 A JPH11220345 A JP H11220345A JP 3398598 A JP3398598 A JP 3398598A JP 3398598 A JP3398598 A JP 3398598A JP H11220345 A JPH11220345 A JP H11220345A
Authority
JP
Japan
Prior art keywords
gain control
threshold
input signal
signal level
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP3398598A
Other languages
Japanese (ja)
Other versions
JP3519935B2 (en
Inventor
Kozo Okuda
浩三 奥田
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

Landscapes

  • Control Of Amplification And Gain Control (AREA)
  • Telephone Function (AREA)

Abstract

PROBLEM TO BE SOLVED: To suppress the unnecessary gain control against the ending-of-word parts and the background noises of voices and also to secure the maximum gain. SOLUTION: It is decided based on the input signal level calculated by a CPU whether the gain control should be executed. If the input signal level is less than threshold Th11, a flag 2 is set at 1 and the gain control is not executed by the CPU. If the input signal level is more than threshold Th12, the flag 2 is set at 0 and the gain control is executed. If the Th11 is equal to or less than the input signal level and also the input signal level is equal to or less than the Th12, it is decided that the input signal level is reduced compared with the value larger than the Th12 as long as the flag is set at 0. Thus, no gain control is executed. If the flag is set at 1 when the Th11 is equal to or less than the input signal level and also the input signal level is equal to or less than the TH12, it is decided that the input signal level is increased compared with the value smaller than the TH11. Thus, the gain control is executed. Both Th11 and Th12 can also be variably set.

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 apparatus, and more particularly to an automatic gain control apparatus for voice used for adjusting a voice level in a telephone system, a voice memo, and the like.

【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 system for handling a voice signal such as a telephone system or a voice memo, an automatic gain control device for voice has been used which automatically amplifies a voice having a low input level to an optimum level. FIG. 14 is a functional block diagram showing an example of a main part of the conventional automatic gain control device 1. As shown in FIG. In the automatic gain controller 1, the input signal level calculator 2
, An input signal level is calculated, the input signal level is compared with a predetermined threshold value by the operation determining unit 3, and the gain control unit 4 is turned on / off according to the comparison result. When the input signal level is larger than the threshold, the gain control unit 4
N, the gain in the amplifying unit 6 is controlled by the gain control unit 4 so that the output signal level calculated by the output signal level calculating unit 5 becomes constant. On the other hand, if the input signal level is equal to or less than the threshold, the gain control unit 4 is turned off and the gain control is stopped, thereby preventing unnecessary amplification of the 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 on a smaller input signal, it is necessary to reduce a threshold value for determining ON / OFF of the gain control. . In this case, the gain always tends to be amplified in an input signal section having a low level such as an end part. In addition, the possibility that the automatic gain control device 1 malfunctions (erroneous gain control) increases even for background noise that is larger than the threshold.

【0004】一方、ノイズに対する誤動作や、語尾部分
の不要な利得上昇を防ぐためには、閾値を大きくする必
要があるが、この場合、自動利得制御装置1の最大利得
を大きくとることができなくなる。
On the other hand, in order to prevent a malfunction due to noise and an unnecessary gain increase at the end part, 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 is made variable so that the threshold follows the background noise level, a malfunction due to the background noise can be considerably prevented, but an unnecessary increase in the gain at the end portion cannot be prevented.

【0006】それゆえにこの発明の主たる目的は、音声
の語尾部分や背景ノイズに対する不要な利得制御を抑え
るとともに、より大きな最大利得が得られる自動利得制
御装置を提供することである。
SUMMARY OF THE INVENTION Therefore, a main object of the present invention is to provide an automatic gain control device capable of suppressing unnecessary gain control for the ending part of speech 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 device according to claim 1 is an automatic gain control device which obtains an output signal by multiplying and amplifying an input signal by gain. Input signal level calculating means for calculating an input signal level based on the input signal, output signal level calculating means for calculating an output signal level based on the output signal, and a gain based on the output signal level and a preset target level. Gain control means for controlling, storage means for respectively 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 when the input signal level is smaller than the first threshold value, input A second means for performing gain control by the gain control means if the signal level is higher than the second threshold; and an input signal level being 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, gain control by the gain control means is executed. On the other hand, when the input signal level decreases from a value larger than the second threshold value, the gain control means performs the gain control. A third means for stopping the gain control is provided.

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

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

【0010】請求項4に記載の自動利得制御装置は、請
求項3に記載の自動利得制御装置において、第1閾値設
定手段は、背景ノイズ基準値に第1所定値を乗算するこ
とによって第1閾値を設定する手段を含み、第2閾値設
定手段は、第1閾値に第2所定値を加算することによっ
て第2閾値を設定する手段を含むものである。
According to a fourth aspect of the present invention, in the automatic gain control apparatus according to the third aspect, the first threshold setting means multiplies the first value by multiplying 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 a preset target level. If the input signal level calculated by the input signal level calculation means is smaller than the first threshold, the gain control is stopped, and
If it is greater than the threshold, gain control is performed. When the input signal level increases from a value smaller than the first threshold value and becomes equal to or more than the first threshold value and equal to or less than the second threshold value, gain control is performed, while the input signal level decreases from a value larger than the second threshold value. When the value becomes equal to or more than the first threshold value and equal to or less than the second threshold value, the gain control is stopped. At the time of gain control, the gain determined by the gain control means is applied to the input signal and amplified to obtain an output signal.

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

【0013】このように入力信号レベルに対して2種類
の閾値を設定し、それらの閾値間にヒステリシス性を持
たせる。すなわち、低めに設定された第1閾値と高めに
設定された第2閾値とが用意され、第1閾値を基準とす
ることによって、利得制御の最小レベルをより小さくす
ることができ、大きな最大利得が得られる。また、第2
閾値を基準とすることによって、語尾部分や背景ノイズ
に対する不要な利得制御が抑えられる。
In this way, two types of thresholds are set for the input signal level, and a hysteresis is provided between the thresholds. That is, a first threshold set lower and a second threshold set higher are prepared, and by using the first threshold 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 for the ending part and the background noise can be suppressed.

【0014】また、第1閾値および第2閾値は可変にさ
れてもよい。
Further, the first threshold value and the second threshold value may be made 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, a background noise reference value is set according to a comparison result 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 set background noise reference value.
For example, the first threshold value may be set by multiplying a background noise reference value by a first predetermined value (claim 4). The second threshold value is set by the second threshold value setting device based on the first threshold value set by the first threshold value setting device.
For example, the second threshold may be set by adding a second predetermined value to the first threshold (claim 4).

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

【0017】[0017]

【発明の実施の形態】以下、この発明の実施の形態につ
いて図面を参照して説明する。
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. The CPU 14
A flag 1 and a flag 2 are provided. The flag 1 indicates whether or not to perform gain control. 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 value Thl1,
This indicates whether the value has decreased from a value greater than the threshold value Thl2. The CPU 14 has a ROM 16 and a RAM 1
8 is 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 controller 10 and data set in advance. The data stored in the ROM 16 includes the output signal level out_
Target level to be the target value to match lev, initial value of gain AGC_gain applied to input signal, gain increase per unit time when increasing gain G_up, gain per unit time when decreasing gain Decrease width G_down, threshold value Thl1, threshold value Thl1 for determining whether or not to perform gain control
A larger threshold value Thl2 and the like are included. The RAM 18 temporarily stores data such as calculated values obtained by the calculation in the CPU 14. The data stored in the RAM 18 includes a gain AGC_gain applied to an input signal, an input signal level in_lev, an 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 thus configured
0 automatic gain control is performed by the CPU 14, the ROM 16, and the R
This is executed by the AM 18 and its functional block diagram is shown in FIG.
Shown in

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

【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, the input signal level in_lev, the output signal level
out_lev is cleared to zero and 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 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 by, for example, a 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, based on the input signal level in_lev stored in the RAM 18, the CPU 14
It is determined whether or not to perform gain control by the operation shown in (5) (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 determined that the gain control is performed, the flag 1 is set to “1”. In step S5, the operation determining unit 24
Corresponds to the ON / OFF determination processing of the gain control unit 26 by

【0026】利得制御を行うか否かがフラグ1を参照し
てCPU14によって判断され(ステップS7)、利得
制御を行う場合には、出力信号レベルout_levが目標レ
べルに近づくようにCPU14によって利得AGC_gainが
制御される(ステップS9)。ステップS7は、利得制
御部26がONされているか否かに相当し、ステップS
9は、利得制御部26による利得制御処理に相当する。
The CPU 14 determines whether or not to perform gain control with reference to the flag 1 (step S7). When performing gain control, the CPU 14 controls the gain 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 the gain control is to be performed, the adjusted gain
The input signal is amplified by AGC_gain. On the other hand, if it is determined in step S7 that the gain control is not to be performed, the process proceeds to step S11, where the gain AGC_gain determined immediately before the stop of the gain control is held as it is, and the gain AG
Amplified by C_gain. As a result, it is possible to prevent unnecessary gain change due to switching of gain control ON / OFF. Step S11 corresponds to an input signal amplification process performed by the amplification unit 28.

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

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

【0030】ついで、図4を参照して、ステップS5に
おける動作を詳細に説明する。
Next, 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)、終了する。
Then, the input signal level in_lev <threshold Th
11 is determined (step S23). If input signal level in_lev <threshold Thl1, flag 2 =
It is set to "1" (step S25), it is determined not to perform gain control, 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
If in_lev <threshold Thl1, input signal level in_l
It is determined whether or not ev> threshold value 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 the gain control, the flag 1 is set to "1" (step S33), and the process ends.

【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 is not in_lev> threshold Thl2, the threshold Thl1
Since ≦ input signal level in_lev ≦ threshold value Thl2, it is determined with reference to flag 2 whether input signal level in_lev has increased from a value smaller than threshold value Thl1 or decreased from a value larger than threshold value Thl2 (step S3).
5). If flag 2 = “0”, the input signal level in_l
Since ev indicates a state in which it has decreased from a value greater than the threshold value Thl2, it is determined not to perform gain control, and the flag 1
= "0" (step S27).

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

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

【0037】さらに、図5を参照して、ステップS9に
おける動作を詳細に説明する。
Further, 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 calculator 30 to the gain controller 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 determined whether or not the output signal level is out_lev <the target level (step S43). If output signal level out_lev <target level, output signal level o
Because ut_lev needs to be larger, AGC_gain =
AGC_gain set to G_up and gain applied to input signal AGC_
The gain is increased (step S45). Step S4
In step 3, if the output signal level is not out_lev <target level, it is determined whether the output signal level is out_lev> target level (step S47). Output signal level out_le
If v> the target level, the output signal level out_lev needs to be reduced, 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, unless the output signal level out_lev> the target level, the output signal level out_lev = the target level, so that 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 set as described above.

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

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

【0043】したがって、区間aおよびbが利得制御区
間となる。
Therefore, 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 types of threshold values Thl1 for the input signal level in_lev,
The threshold value Thl2 is set, and a hysteresis is provided between the threshold value Thl1 and the threshold value Thl2. That is, the threshold value Thl1 set lower and the threshold value Thl2 set higher
By 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 using 2 as a reference, unnecessary gain control for the ending part of speech and background noise can be suppressed. The automatic gain control device 10 is particularly effective when performing automatic gain control on speech mixed with 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 configuration 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 correction width T_up of the background noise reference value Thl_base in the rising direction, the correction width T_down of the background noise reference value Thl_base in the falling direction, and the background noise reference value Thl_base. And a predetermined addition amount b for calculating the threshold value Thl2 from the threshold value Thl1 are further stored. The multiplier a and the addition amount b are respectively set according to the system. Also, the thresholds Thl1 and 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 unit 32 and a switch 34. The threshold calculator 32 calculates the threshold value Thl
1 and threshold Thl2 are not fixed values but input signal levels
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, automatic gain control device 10a
The overall operation will be described.

【0050】図8に示す自動利得制御装置10aの動作
は、図3に示す自動利得制御装置10の動作の、ステッ
プS3とステップS5との間にステップS4を、ステッ
プS13の後にステップS15、S17、S19をさら
に追加するだけで構成されるので、ここでは、重複する
説明は省略する。
The operation of the automatic gain control device 10a shown in FIG. 8 is the same as the operation of the automatic gain control device 10 shown in FIG. 3 except that step S4 is performed between steps S3 and S5, and steps S15 and S17 are performed after step S13. , S19 are simply added, and the duplicate description is 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
A threshold value Thl1 and a 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 value calculation unit 32. Then, in step S5, the calculated threshold value Thl1 and threshold value T
Based on a comparison between hl2 and the input signal level in_lev, whether or not to perform gain control is determined.

【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 is set based on a threshold value 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 a 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 an output signal (step S17), and the process returns to step S3. In this way, for example, amplification of unnecessary noise in a 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, an output signal obtained by amplifying the input signal is output (step S19), and the process returns to step S3. Step S
Steps S17 and S19 correspond to the switching of the output signal accompanying the switching of the switch.

【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 the background noise reference value Thl_base <the input signal level in_lev (step S53). If background noise reference value Thl_base <input signal level in_lev, T_base = Thl_base + T_up is set, and 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 value Thl1 is set according to Thl1 = Thl_base × a (step S57), Thl2 = Thl_base × a.
The threshold value 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, if it is determined in step S53 that the background noise reference value Thl_base <the input signal level in_lev,
It is determined whether or not background noise reference value Thl_base> input signal level in_lev (step S61). If background noise reference value Thl_base> input signal level in_lev, Thl_
base = Thl_base−T_down is set, and the background noise reference value Thl_base is lowered (step S63), and step S5 is performed.
Go to 7. On the other hand, if the background noise reference value Thl_base is not greater than the input signal level in_lev in step S61, the process directly proceeds to step S57.

【0059】なお、ROM16に格納しておく背景ノイ
ズ基準値Thl_baseの初期値を、自動利得制御装置10a
が応用されるシステムの背景ノイズレベルであると考え
られる値よりも少し大きめに設定しておく。さらに、T_
up≪T_downに設定することによって、背景ノイズ基準値
Thl_baseの変化は、立ち上がり時定数が大きく、立ち下
がり時定数は小さい特性になる。これによって、背景ノ
イズ基準値Thl_baseを背景ノイズレベルに近い値に保持
することができる。
Note that 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.
Is set slightly larger than the value considered to be the background noise level of the system to which is applied. In addition, T_
By setting up≪T_down, the background noise reference value
The change in Thl_base is such that the rise time constant is large and the fall 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を可変的に設定す
るすることができる。
Thus, 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 optimum threshold value Thl1 for the system can be calculated by a simple calculation as shown in FIG. 10, following the fluctuation of the background noise level, and the threshold value Thl2 is set accordingly. it can. Therefore, more natural gain control for voice can be performed, and unnecessary amplification of background noise can be prevented.

【0062】なお、図11に示すように、この発明の自
動利得制御装置10を、ハンズフリー電話40に応用す
ることができる。
As shown in FIG. 11, the automatic gain control device 10 of the present invention can be applied to a 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 supplied to the A / D converter 12 of the automatic gain control device 10 and digitized. 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 supplied to the hybrid circuit 44 as a line output signal. In the hybrid circuit 44 to which the telephone line is connected, two-line four-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 sound 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 greatly changes due to the movement of the near-end speaker, unnecessary gain control due to background noise is suppressed, and the gain is increased. Since the maximum gain is obtained, the fluctuation of the output signal level due to the movement of the near-end speaker can be suppressed smaller.

【0065】また、図12に示すように、この発明の自
動利得制御装置10を、音声メモ装置50に応用するこ
とができる。
As shown in FIG. 12, the automatic gain control device 10 of the present invention can be applied to a 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 transmitted to the automatic gain control device 1
0 is supplied to the A / D converter 12 and digitized. Then, the output signal obtained by automatic gain control by the automatic gain control device 10 is encoded by the audio 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
The signal is converted into an analog signal by 0, a speaker output signal is supplied to the speaker 60, and sound is output.

【0067】会議録音や音声のメモ録音を行うための音
声メモ装置50では、入力信号レベルin_levが大きく変
化する。特に、大きな会議室での録音を行った場合、よ
り小さいレベルの入力信号を録音する必要がある。この
音声メモ装置50に自動利得制御装置10を用いた場
合、より大きな最大利得が得られるため、より小さなレ
ベルの入力信号に対しても、最適な音量で録音すること
ができる。
In the voice memo device 50 for recording a conference or recording a voice memo, the input signal level in_lev greatly changes. In particular, 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 even at a lower level input signal, it is possible to record at 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 a 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 provided to the A / D converter 12 of the automatic gain control device 10 and digitized. The output signal obtained by the automatic gain control performed by the automatic gain control device 10 is converted into an analog signal by the D / A converter 20, supplied to the speaker 74 as a speaker output signal, and outputs a sound.

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

【0071】なお、図11〜図13に示す応用例には、
自動利得制御装置10aが用いられてもよく、この場合
にも自動利得制御装置10を用いる場合と同様の効果が
得られる。
The application examples shown in FIGS. 11 to 13 include:
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.
The output signal level out_lev may be calculated by the sum of the absolute values of the samples of the output signal.

【0074】[0074]

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

【図面の簡単な説明】[Brief description of the 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 of 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 in FIG. 3;

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

【図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の動作の詳細を示すフロー
図である。
FIG. 9 is a flowchart showing details of the operation of step S4 in FIG. 8;

【図10】図9に示す動作によって算出された閾値Th
l1を示すグラフである。
FIG. 10 shows a threshold value 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, 2 flag 10, 10a automatic gain controller 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 value a multiplier b addition amount

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 入力信号に利得をかけて増幅し出力信号
を得る自動利得制御装置であって、 前記入力信号に基づいて入力信号レベルを算出する入力
信号レベル算出手段、 前記出力信号に基づいて出力信号レベルを算出する出力
信号レベル算出手段、 前記出力信号レベルと予め設定された目標レベルとに基
づいて前記利得を制御する利得制御手段、 第1閾値および前記第1閾値より大きい第2閾値がそれ
ぞれ記憶される記憶手段、 前記入力信号レベルが前記第1閾値より小さければ前記
利得制御手段による利得制御を停止する第1手段、 前記入力信号レベルが前記第2閾値より大きければ前記
利得制御手段による利得制御を実行する第2手段、およ
び前記入力信号レベルが前記第1閾値以上でありかつ前
記第2閾値以下である場合において、前記入力信号レベ
ルが前記第1閾値より小さい値から増加してきたときに
は前記利得制御手段による利得制御を実行し、一方、前
記入力信号レベルが前記第2閾値より大きな値から減少
してきたときには前記利得制御手段による利得制御を停
止する第3手段を備える、自動利得制御装置。
1. An automatic gain control device for multiplying and amplifying an input signal to obtain an output signal, wherein the input signal level is calculated based on the input 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 A storage unit that is stored respectively; a first unit that stops gain control by the gain control unit when the input signal level is smaller than the first threshold; a gain unit that stops gain control when the input signal level is larger than the second threshold value Second means for performing gain control, and when the input signal level is greater than or equal to the first threshold and less than or equal to the second threshold, When the input signal level increases from a value smaller than the first threshold, the gain control means executes gain control. On the other hand, when the input signal level decreases from a value larger than the second threshold, the gain control An automatic gain control device comprising: third means for stopping gain control by the means.
【請求項2】 前記入力信号レベルが前記第1閾値より
小さい値から増加してきたか前記第2閾値より大きい値
から減少してきたかを示すフラグを含み、 前記第3手段は、前記フラグを参照して前記利得制御手
段による利得制御を実行するか停止するかを判断する手
段を含む、請求項1に記載の自動利得制御装置。
2. The apparatus according to claim 1, further comprising a flag indicating whether the input signal level has increased from a value smaller than the first threshold or decreased from a value larger than the second threshold, wherein the third unit refers to the flag. 2. The automatic gain control device according to claim 1, further comprising means for determining whether to execute or stop gain control by said gain control means.
【請求項3】 前記第1閾値および前記第2閾値を可変
に設定する閾値設定手段をさらに含み、 前記閾値設定手段は、前記入力信号レベルと背景ノイズ
基準値との比較結果に応じて前記背景ノイズ基準値を設
定する手段、設定された前記背景ノイズ基準値に基づい
て前記第1閾値を設定する第1閾値設定手段、および前
記第1閾値設定手段によって設定された前記第1閾値に
基づいて前記第2閾値を設定する第2閾値設定手段を含
む、請求項2に記載の自動利得制御装置。
3. The apparatus according to claim 2, further comprising: a threshold setting unit configured to variably set the first threshold and the second threshold. Means for setting a noise reference value, first threshold setting means for setting the first threshold based on the set background noise reference value, and based on the first threshold set by the first threshold 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 multiplies 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, wherein the second threshold setting means includes means for setting the second threshold by adding a second predetermined value to the first threshold. 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 true JPH11220345A (en) 1999-08-10
JP3519935B2 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)

Cited By (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 control device, program, recording medium
JP2009124286A (en) * 2007-11-13 2009-06-04 Sony Ericsson Mobilecommunications Japan Inc Audio signal processing apparatus, audio signal processing method, and communication terminal
JP2010187366A (en) * 2009-01-14 2010-08-26 Rohm Co Ltd Automatic level control circuit, audio digital-signal processor using the same, and gain control method of variable gain amplifier
JP2011015266A (en) * 2009-07-03 2011-01-20 Panasonic Corp Sound-volume adjusting device
JP2011155394A (en) * 2010-01-26 2011-08-11 Rohm Co Ltd Automatic level control circuit, digital signal processor for audio using the same, electronic equipment, and gain control method of variable gain amplifier
JP2012129741A (en) * 2010-12-14 2012-07-05 Panasonic Corp Automatic volume correction device

Cited By (7)

* 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 control device, program, recording medium
JP2009124286A (en) * 2007-11-13 2009-06-04 Sony Ericsson Mobilecommunications Japan Inc Audio signal processing apparatus, audio signal processing method, and communication terminal
JP2010187366A (en) * 2009-01-14 2010-08-26 Rohm Co Ltd Automatic level control circuit, audio digital-signal processor using the same, and gain control method of variable gain amplifier
US8615094B2 (en) 2009-01-14 2013-12-24 Rohm Co., Ltd. Automatic level control circuit
JP2011015266A (en) * 2009-07-03 2011-01-20 Panasonic Corp Sound-volume adjusting device
JP2011155394A (en) * 2010-01-26 2011-08-11 Rohm Co Ltd Automatic level control circuit, digital signal processor for audio using the same, electronic equipment, and gain control method of variable gain amplifier
JP2012129741A (en) * 2010-12-14 2012-07-05 Panasonic Corp Automatic volume correction device

Also Published As

Publication number Publication date
JP3519935B2 (en) 2004-04-19

Similar Documents

Publication Publication Date Title
CN100514989C (en) Microphone gains regulator of communication device
JP5102273B2 (en) Method and apparatus for automatically adjusting speaker gain and microphone gain in a mobile telephone
US6741873B1 (en) Background noise adaptable speaker phone for use in a mobile communication device
JPH10136078A (en) Telephone set having automatic gain control means
US20030044028A1 (en) Dynamic gain control of audio in a communication device
US5896450A (en) Automatically variable circuit of sound level of received voice signal in telephone
US7260209B2 (en) Methods and apparatus for improving voice quality in an environment with noise
JP2001507551A (en) Improved audio playback device and telephone terminal
JP3519935B2 (en) Automatic gain control device
CN1087578C (en) Mobile telephone with automatic level control means of sound signal
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
AU725726B2 (en) Hearing aid with improved percentile estimator
JPH11308062A (en) Automatic volume adjusting device for sound output device
JP2004104692A (en) Automatic gain controller, automatic gain control method, and automatic gain control program
JP2981044B2 (en) Digital automatic gain controller
JP3279267B2 (en) Audio output adjustment method and device
JPH11214940A (en) Automatic gain controller
US8064591B2 (en) Sound pick-up method and device, in particular for handsfree telephone terminals
JPH08317496A (en) Digital audio signal processor
JPH0435144A (en) Telephone system
JPH0773175B2 (en) Automatic gain control device
CN1347612A (en) communication terminal
JP2001309020A (en) Speakerphone control method
JPH10285268A (en) Mobile communication terminal
JPH118896A (en) Howling prevention device

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 (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090206

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090206

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100206

Year of fee payment: 6

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

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20110206

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

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20110206

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

Free format text: PAYMENT UNTIL: 20120206

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120206

Year of fee payment: 8

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

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20130206

LAPS Cancellation because of no payment of annual fees