JP3147127B2 - Speech waveform coding device - Google Patents

Speech waveform coding device

Info

Publication number
JP3147127B2
JP3147127B2 JP35621191A JP35621191A JP3147127B2 JP 3147127 B2 JP3147127 B2 JP 3147127B2 JP 35621191 A JP35621191 A JP 35621191A JP 35621191 A JP35621191 A JP 35621191A JP 3147127 B2 JP3147127 B2 JP 3147127B2
Authority
JP
Japan
Prior art keywords
circuit
output
quantization
value
code
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
JP35621191A
Other languages
Japanese (ja)
Other versions
JPH05173598A (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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP35621191A priority Critical patent/JP3147127B2/en
Publication of JPH05173598A publication Critical patent/JPH05173598A/en
Application granted granted Critical
Publication of JP3147127B2 publication Critical patent/JP3147127B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To obtain the speech waveform encoding device which prevents a high-frequency noise from being generated by suppressing abrupt variation in the voiceless output of the output waveform of a speech decoding means at a border point. CONSTITUTION:This device is equipped with a predicting means 14 which calculates a predicted value, a subtracting means 11 which subtracts the predicted value from an input PCM code to calculate a difference PCM code, an adaptive quantizing means 12 which converts the difference PCM code into a quantized value, an adaptive inverse quantizing means 13 which requantizes the quantized value and outputs the requantized value, an adding means 15 which adds the requantized value and the predicted value together, a minimum code output means 17 that outputs a quantized value which corresponds to a quantization width coefficient less than 1 and has the same sign with the last requantized value in terms of time and corresponds to a value less in numeral than it, and a selecting means 18 which selects the quantized value from the adaptive quantizing means 12 or the quantized value from the minimum code output means 17 according to a voiceless output indication and outputs it to the decoding means.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、音声波形符号化装置に
係り、とくに強制的に無音を出力するための符号を作成
できる音声波形符号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a speech waveform coding apparatus, and more particularly to a speech waveform coding apparatus capable of forming a code for forcibly outputting silence.

【0002】[0002]

【従来の技術】近年、アナログ伝送によるコードレス電
話が普及してきたが、チャンネルの周波数割当の制限お
よび音声漏洩の問題が発生してきた。そこで、デジタル
信号処理理論の発達とICの微細化技術の進歩により、
デジタル伝送によるコードレス電話が開発されるように
なった。その中で、伝送路のデータ量を減少させるため
に、音声符号化および復号化を行う音声コーディックの
開発も行われている。コードレス電話の音声符号化方式
には、処理が容易な波形符号化方式であるADPCM
(適応差分PCM)方式が採用されようとしている。
2. Description of the Related Art In recent years, cordless telephones using analog transmission have become widespread, but problems such as limitations on channel frequency allocation and voice leakage have arisen. Therefore, with the development of digital signal processing theory and the advancement of IC miniaturization technology,
Cordless telephones using digital transmission have been developed. Among them, in order to reduce the amount of data on a transmission path, a speech codec that performs speech encoding and decoding has been developed. ADPCM, a waveform encoding method that is easy to process,
(Adaptive difference PCM) is about to be adopted.

【0003】ところで、デジタル・コードレス電話の使
用方法の1つに屋外での使用が考えられる。屋外では屋
内より周囲の雑音が非常に大きい。そのため、屋外で使
用する際には相手からの内容が正しく聞き取れなくなる
上に、相手に不快感を与える。そこで、周囲の雑音が大
きくて自分が話していないときには、符号化された音声
を出力せず、その代わりに無音の符号を出力する。これ
により、相手に不快感を与えないようになる。これが無
音出力機能である。
[0003] One use of a digital cordless telephone is to use it outdoors. The ambient noise is much higher outdoors than indoors. Therefore, when used outdoors, the content from the partner cannot be heard correctly, and the partner is uncomfortable. Therefore, when the user is not talking due to large ambient noise, the encoded voice is not output, but a silent code is output instead. As a result, the other party does not feel uncomfortable. This is the silent output function.

【0004】図12ないし図13に従来例を示す。FIGS. 12 and 13 show a conventional example.

【0005】図12における符号化回路50は、予測値
を算出する予測回路14と、無音の出力指示に応じてオ
ンオフするスイッチ56と、スイッチ56を通して差分
PCM符号を記憶する入力バッファ57と、入力された
PCM符号と入力バッファ57の出力とのどちらかを無
音出力指示信号に応じて選択する選択回路58と、選択
回路58の出力と予測回路14の出力とを減算し,差分
PCM符号を算出する減算回路11と、減算回路11で
算出された差分PCM符号を量子化値に変換し伝送路を
介して復号化回路に出力する適応量子化回路12と、適
応量子化回路12が出力する量子化値を逆量子化する適
応逆量子化回路13と、適応逆量子化回路13の出力と
予測回路14の出力とを加算し予測回路14に出力する
加算回路15とから構成されている。
[0005] The encoding circuit 50 in FIG. 12 includes a prediction circuit 14 for calculating a predicted value, a switch 56 that is turned on / off in response to a silent output instruction, an input buffer 57 that stores a differential PCM code through the switch 56, and an input buffer 57. A selection circuit 58 for selecting either the output PCM code or the output of the input buffer 57 in accordance with the silent output instruction signal, and subtracting the output of the selection circuit 58 and the output of the prediction circuit 14 to calculate a differential PCM code Subtraction circuit 11, an adaptive quantization circuit 12 that converts the differential PCM code calculated by the subtraction circuit 11 into a quantized value, and outputs the quantized value to a decoding circuit via a transmission path. An adaptive inverse quantization circuit 13 that inversely quantizes the quantized value, an addition circuit 15 that adds the output of the adaptive inverse quantization circuit 13 and the output of the prediction circuit 14 and outputs the result to the prediction circuit 14. It is configured.

【0006】ここで、適応量子化回路12は、図2に示
されるように過去のADPCM符号から算出された量子
化幅を記憶する量子化幅バッファ125と、減算回路1
1からの差分PCM符号と量子化幅バッファ125から
の量子化幅とを乗算する第2の乗算回路124と、第2
の乗算回路124の出力を量子化し,量子化値および量
子化幅係数を適応逆量子化回路13あるいは伝送路を介
して復号化回路60へ出力する量子化/係数テーブル1
21と、量子化幅バッファ125の出力と量子化/係数
テーブル121の出力とを乗算し量子化幅バッファ12
5へ出力する第1の乗算回路123とから構成されてい
る。
Here, as shown in FIG. 2, the adaptive quantization circuit 12 includes a quantization width buffer 125 for storing the quantization width calculated from the past ADPCM code, and a subtraction circuit 1
A second multiplying circuit 124 for multiplying the differential PCM code from 1 by the quantization width from the quantization width buffer 125;
Quantization / coefficient table 1 which quantizes the output of the multiplication circuit 124 and outputs the quantization value and the quantization width coefficient to the adaptive inverse quantization circuit 13 or the decoding circuit 60 via the transmission path.
21 is multiplied by the output of the quantization width buffer 125 and the output of the quantization / coefficient table 121 to obtain the quantization width buffer 12
5 and a first multiplication circuit 123 for outputting the result to the first multiplication circuit 123.

【0007】また、適応逆量子化回路13は、図3に示
されるように選択回路18からのADPCM符号を逆量
子化値に変換する逆量子化テーブル131と、適応選択
回路18からのADPCM符号を量子化幅係数に変換す
る係数テーブル132と、過去のADPCM符号から算
出された量子化幅を記憶する量子化幅バッファ135
と、係数テーブル132の出力と量子化幅バッファ13
5の出力とを乗算し量子化幅バッファ135に出力する
第3の乗算回路133と、逆量子化テーブル131の出
力と量子化幅バッファ135の出力とを乗算し加算回路
15に出力する第4の乗算回路134とから構成されて
いる。
The adaptive inverse quantization circuit 13 includes an inverse quantization table 131 for converting the ADPCM code from the selection circuit 18 into an inverse quantization value, as shown in FIG. 3, and an ADPCM code from the adaptive selection circuit 18. Is converted into a quantization width coefficient, and a quantization width buffer 135 that stores the quantization width calculated from the past ADPCM code.
And output of coefficient table 132 and quantization width buffer 13
A third multiplication circuit 133 that multiplies the output of the quantization width buffer 135 by the output of the third multiplication circuit 135 and outputs the output of the quantization width buffer 135 to the addition circuit 15. And a multiplication circuit 134.

【0008】次に、上記従来例の動作について説明す
る。
Next, the operation of the above conventional example will be described.

【0009】ここでは、時刻tに入力されたPCM符号
を「1」、予測回路14の出力を「3」とし、量子化幅
バッファ125および量子化幅バッファ135には、過
去のADPCM符号から算出された量子化幅「1」が記
憶されているものとする。
Here, the PCM code input at time t is “1”, the output of the prediction circuit 14 is “3”, and the quantization width buffer 125 and the quantization width buffer 135 are calculated from the past ADPCM code. It is assumed that the obtained quantization width “1” is stored.

【0010】また量子化/係数テーブル121には、図
6に示されるように量子化値が「+3」のときはADP
CM符号として「011」(2進数),量子化幅係数と
して「0.8」が、量子化値が「+2」のときはADP
CM符号として「010」(2進数),量子化幅係数と
して「1」が、量子化値が「+1」のときはADPCM
符号として「001」(2進数),量子化幅係数として
「1.25」が、量子化値が「0」のときはADPCM
符号として「000」(2進数),量子化幅係数として
「1.25」が、量子化値が「−1」のときはADPC
M符号として「100」(2進数),量子化幅係数とし
て「1.25」が、量子化値が「−2」のときはADP
CM符号として「101」(2進数),量子化幅係数と
して「1」が、量子化値が「−3」のときはADPCM
符号として「110」(2進数),量子化幅係数として
「0.8」が記述されているものとする。
The quantization / coefficient table 121 has an ADP when the quantization value is "+3" as shown in FIG.
“011” (binary number) as the CM code, “0.8” as the quantization width coefficient, and ADP when the quantization value is “+2”
“010” (binary number) as the CM code, “1” as the quantization width coefficient, and ADPCM when the quantization value is “+1”
“001” (binary number) as the code, “1.25” as the quantization width coefficient, and ADPCM when the quantization value is “0”
When the code is “000” (binary number), the quantization width coefficient is “1.25”, and when the quantization value is “−1”, ADPC
“100” (binary number) as the M code, “1.25” as the quantization width coefficient, and ADP when the quantization value is “−2”
"101" (binary number) as the CM code, "1" as the quantization width coefficient, and ADPCM when the quantization value is "-3".
It is assumed that “110” (binary number) is described as a code and “0.8” is described as a quantization width coefficient.

【0011】逆量子化テーブル131および逆量子化テ
ーブル631には、図7に示されるようにADPCM符
号が「011」(2進数)のときは逆量子化値として
「+3」が、ADPCM符号が「010」(2進数)の
ときは逆量子化値として「+2」が、ADPCM符号が
「001」(2進数)のときは逆量子化値として「+
1」が、ADPCM符号が「000」(2進数)のとき
は逆量子化値として「0」が、ADPCM符号が「10
0」(2進数)のときは逆量子化値として「−1」が、
ADPCM符号が「101」(2進数)のときは逆量子
化値として「−2」が、ADPCM符号が「110」
(2進数)のときは逆量子化値として「−3」が記述さ
れているものとする。
As shown in FIG. 7, when the ADPCM code is "011" (binary number), "+3" is shown as the inverse quantization value, and the ADPCM code is shown in the inverse quantization table 131 and the inverse quantization table 631. When the value is “010” (binary number), “+2” is used as the inverse quantization value. When the ADPCM code is “001” (binary number), “+” is used as the inverse quantization value.
When the ADPCM code is "000" (binary number), "0" is used as the inverse quantization value, and when the ADPCM code is "10".
When it is "0" (binary number), "-1" is used as an inverse quantization value,
When the ADPCM code is “101” (binary number), the inverse quantization value is “−2”, and the ADPCM code is “110”.
In the case of (binary number), "-3" is described as the inverse quantization value.

【0012】係数テーブル132および係数テーブル6
32には、図7に示されるようにADPCM符号が「0
11」(2進数)のときは量子化幅係数として「1.2
5」が、ADPCM符号が「010」(2進数)のとき
は量子化幅係数として「1」が、ADPCM符号が「0
01」(2進数)のときは量子化幅係数として「0.
8」が、ADPCM符号が「000」(2進数)のとき
は量子化幅係数として「0.8」が、ADPCM符号が
「100」(2進数)のときは量子化幅係数として
「0.8」が、ADPCM符号が「101」(2進数)
のときは量子化幅係数として「1」が、ADPCM符号
が「110」(2進数)のときは量子化幅係数として
「1.25」が記述されているものとする。
Coefficient table 132 and coefficient table 6
32, the ADPCM code is "0" as shown in FIG.
11 "(binary number)," 1.2
When the ADPCM code is “010” (binary number), “1” is used as the quantization width coefficient, and the ADPCM code is “0”.
01 "(binary number)," 0.
When the ADPCM code is “000” (binary number), “0.8” is used as the quantization width coefficient. When the ADPCM code is “100” (binary number), the quantization width coefficient is “0. 8 ”is ADPCM code“ 101 ”(binary number)
In this case, it is assumed that "1" is described as the quantization width coefficient, and that when the ADPCM code is "110" (binary), "1.25" is described as the quantization width coefficient.

【0013】まず、時刻tに無音出力指示がない場合の
ADPCM符号化を説明する。
First, the ADPCM encoding when there is no silent output instruction at time t will be described.

【0014】無音出力指示がないので、スイッチ56は
オンになり、選択回路58は入力されたPCM符号を選
択する。するとそのPCM符号は入力バッファ57およ
び減算回路11に転送される。減算回路11では入力さ
れたPCM符号「1」から予測回路14の出力「3」を
引いた差分PCM符号「−2」を出力する。次に適応量
子化回路12内の第2の乗算回路124はその差分PC
M符号「−2」と量子化幅バッファ125の内容「1」
を乗算し、その出力「−2」を量子化/係数テーブル1
21に転送する。量子化/係数テーブル121では第2
の乗算回路124の出力「−2」と各量子化値とを比較
し、最も近い量子化値を選択し、それに対応するADP
CM符号「101」(2進数)と量子化幅係数「1」を
出力する。
Since there is no silent output instruction, the switch 56 is turned on, and the selection circuit 58 selects the input PCM code. Then, the PCM code is transferred to the input buffer 57 and the subtraction circuit 11. The subtraction circuit 11 outputs a difference PCM code “−2” obtained by subtracting the output “3” of the prediction circuit 14 from the input PCM code “1”. Next, the second multiplier 124 in the adaptive quantization circuit 12 calculates the difference PC
M code “−2” and contents of quantization width buffer 125 “1”
And the output “−2” is quantized / coefficient table 1
Transfer to 21. In the quantization / coefficient table 121, the second
Of the multiplication circuit 124 is compared with each of the quantized values, and the closest quantized value is selected.
The CM code “101” (binary number) and the quantization width coefficient “1” are output.

【0015】ADPCM符号「101」(2進数)は適
応逆量子化回路13へ転送されると同時に、伝送路を通
して、復号化回路へ転送される。また、量子化幅係数
「1」と量子化幅バッファ125に記憶されている量子
化幅「1」は第1の乗算回路123にて乗算され、その
出力「1」は量子化幅バッファ125に戻される。その
ADPCM符号「101」(2進数)は適応逆量子化回
路13内の逆量子化テーブル131および係数テーブル
132でそれぞれ逆量子化値「−2」、および量子化幅
係数「1」に変換される。
The ADPCM code "101" (binary number) is transferred to the adaptive inverse quantization circuit 13 and, at the same time, is transferred to the decoding circuit through a transmission path. Further, the quantization width coefficient “1” and the quantization width “1” stored in the quantization width buffer 125 are multiplied by the first multiplier 123, and the output “1” is supplied to the quantization width buffer 125. Will be returned. The ADPCM code “101” (binary number) is converted into an inverse quantization value “−2” and a quantization width coefficient “1” by an inverse quantization table 131 and a coefficient table 132 in the adaptive inverse quantization circuit 13, respectively. You.

【0016】逆量子化テーブル131の出力「−2」と
量子化幅バッファ135に記憶されている量子化幅
「1」とは第4の乗算回路134にて乗算される。ま
た、量子化幅係数「1」は量子化幅バッファ135に記
憶されている量子化幅「1」と第3の乗算回路133に
て乗算され、その出力「1」は量子化幅バッファ135
に戻される。次に第4の乗算回路134の出力「−2」
は差分値として、加算回路15にて予測回路14の出力
と加算される。その加算結果がまた予測回路14に戻さ
れ次の予測値を算出する。
The output “−2” of the inverse quantization table 131 and the quantization width “1” stored in the quantization width buffer 135 are multiplied by a fourth multiplier 134. The quantization width coefficient “1” is multiplied by the quantization width “1” stored in the quantization width buffer 135 by the third multiplier 133, and the output “1” is output from the quantization width buffer 135.
Is returned to. Next, the output “−2” of the fourth multiplication circuit 134
Is added to the output of the prediction circuit 14 by the addition circuit 15 as a difference value. The result of the addition is returned to the prediction circuit 14 to calculate the next predicted value.

【0017】次に、時刻t+1で無音出力が指示された
場合を説明する。
Next, a case where a silent output is instructed at time t + 1 will be described.

【0018】無音を出力するように指示する無音出力指
示信号により、スイッチ56はオフになり、選択回路5
8は入力バッファ57の出力を選択する。つまり、無音
出力指示の直前つまり時刻tのPCM符号「1」が入力
バッファ57に格納されており、そのPCM符号が選択
回路58を通して減算回路11に転送される。減算回路
11は入力バッファ57からのPCM符号「1」から予
測回路14の出力「1」を引いた差分PCM符号「0」
を出力する。
The switch 56 is turned off by a silence output instruction signal instructing to output silence, and the selection circuit 5
8 selects the output of the input buffer 57. That is, the PCM code “1” immediately before the silent output instruction, that is, the PCM code “1” at the time t is stored in the input buffer 57, and the PCM code is transferred to the subtraction circuit 11 through the selection circuit 58. The subtraction circuit 11 subtracts the output “1” of the prediction circuit 14 from the PCM code “1” from the input buffer 57 and a difference PCM code “0”.
Is output.

【0019】次に適応量子化回路12内の第2の乗算回
路124はその差分PCM符号「0」と量子化幅バッフ
ァ125の内容「1」を乗算し、その出力「0」を量子
化/係数テーブル121に転送する。量子化/係数テー
ブル121は第2の乗算回路124の出力「0」と各量
子化値とを比較し、最も近い量子化値を選択し、それに
対応するADPCM符号「000」(2進数)と量子化
幅係数「1.25」を出力する。ADPCM符号「00
0」(2進数)は適応逆量子化回路13へ転送されるの
と同時に伝送路を通して、復号化回路へ転送される。
Next, the second multiplier 124 in the adaptive quantization circuit 12 multiplies the difference PCM code "0" by the content "1" of the quantization width buffer 125, and quantizes the output "0". Transfer to the coefficient table 121. The quantization / coefficient table 121 compares the output “0” of the second multiplication circuit 124 with each quantization value, selects the closest quantization value, and outputs the corresponding ADPCM code “000” (binary number). The quantization width coefficient “1.25” is output. ADPCM code "00
"0" (binary number) is transferred to the decoding circuit through the transmission path at the same time as being transferred to the adaptive inverse quantization circuit 13.

【0020】また、量子化幅係数「1.25」は量子化
幅バッファ125に記憶されている量子化幅「1」と第
1の乗算回路123にて乗算され、その出力「1.2
5」は量子化幅バッファ125に戻される。ADPCM
符号「000」(2進数)は適応逆量子化回路13内の
逆量子化テーブル131および係数テーブル132でそ
れぞれ逆量子化値「0」および量子化幅係数「0.8」
に変換される。逆量子化テーブル131の出力「0」と
量子化幅バッファ125に記憶されている量子化幅
「1」とは第4の乗算回路134にて乗算される。ま
た、量子化幅係数「0.8」は量子化幅バッファ135
に記憶されている量子化幅「1」と第3の乗算回路13
3にて乗算され、その出力「0.8」は量子化幅バッフ
ァ135に戻される。次に、第4の乗算回路134の出
力「0」は差分値として加算回路15にて予測回路14
の出力と加算される。その加算結果がまた予測回路14
に戻され、次の予測値を算出する。
The quantization width coefficient “1.25” is multiplied by the quantization width “1” stored in the quantization width buffer 125 by the first multiplication circuit 123, and the output “1.2” is output.
"5" is returned to the quantization width buffer 125. ADPCM
The code “000” (binary number) is the inverse quantization value “0” and the quantization width coefficient “0.8” in the inverse quantization table 131 and the coefficient table 132 in the adaptive inverse quantization circuit 13, respectively.
Is converted to The fourth multiplier 134 multiplies the output “0” of the inverse quantization table 131 by the quantization width “1” stored in the quantization width buffer 125. The quantization width coefficient “0.8” is stored in the quantization width buffer 135.
And the third multiplication circuit 13
The result is multiplied by 3, and the output “0.8” is returned to the quantization width buffer 135. Next, the output “0” of the fourth multiplication circuit 134 is used as a difference value by the prediction circuit 14 in the addition circuit 15.
Is added to the output of The result of the addition is obtained by the prediction circuit 14 again.
To calculate the next predicted value.

【0021】無音出力指示信号が切れるまで、以上の処
理が繰り返される。
The above processing is repeated until the silent output instruction signal is cut off.

【0022】時刻t+1以降のサンプルが無音出力指示
されたときの復号化回路からの出力波形は、図13に示
されるように可聴範囲外の直流波形が出力され無音とな
る。図13の中で点線で示した波形は指示されなかった
場合を想定した波形である。
As shown in FIG. 13, the output waveform from the decoding circuit when the sample after time t + 1 is instructed to output silence is such that a DC waveform outside the audible range is output and becomes silent. The waveform shown by the dotted line in FIG. 13 is a waveform assuming that no instruction is given.

【0023】[0023]

【発明が解決しようとする課題】しかしながら、上記従
来例においては、音声復号化回路から出力された波形は
無音出力の境界点で急激な変化を起こすために、高周波
雑音を発生するという不都合があった。
However, in the above-mentioned conventional example, the waveform output from the speech decoding circuit has a disadvantage that a sudden change occurs at a boundary point of silence output, so that high-frequency noise is generated. Was.

【0024】[0024]

【発明の目的】本発明の目的は、かかる従来例の有する
不都合を改善し、とくに音声復号化回路から出力される
波形が無音出力の境界点で急激な変化を起こさず、高周
波雑音の発生を防止できる音声波形符号化装置を提供す
ることにある。
SUMMARY OF THE INVENTION An object of the present invention is to improve the disadvantages of the prior art, and in particular, to prevent the waveform output from the speech decoding circuit from changing abruptly at the boundary of the silent output, thereby reducing the generation of high-frequency noise. It is an object of the present invention to provide a speech waveform encoding device that can prevent such a problem.

【0025】[0025]

【課題を解決するための手段】そこで、本発明では、予
測値を算出する予測回路と、入力されたPCM符号から
予測回路の出力を減算し,差分PCM符号を算出する減
算回路と、減算回路で算出された差分PCM符号を量子
化値に変換する適応量子化回路と、適応量子化回路から
の量子化値を逆量子化し,逆量子化値を出力する適応逆
量子化回路と、適応逆量子化回路の出力と予測回路の出
力を加算する加算回路と、1より小さい量子化幅係数に
対応し,かつ時間的に直前の逆量子化値の符号と同じ
で,数値がそれ以下である値に対応する量子化値を出力
する最小符号出力回路と、無音出力指示信号に応じて適
応量子化回路の出力と最小符号出力回路の出力のいづれ
かを選択し適応逆量子化回路および復号化回路へ出力す
る選択回路とを具備するという構成を採っている。これ
によって前述した目的を達成しようとするものである。
Accordingly, the present invention provides a prediction circuit for calculating a prediction value, a subtraction circuit for subtracting the output of the prediction circuit from an input PCM code and calculating a differential PCM code, and a subtraction circuit. An adaptive quantizer for converting the differential PCM code calculated in the above into a quantized value, an adaptive inverse quantizer for inversely quantizing the quantized value from the adaptive quantizer and outputting the inverse quantized value, An addition circuit for adding the output of the quantization circuit and the output of the prediction circuit, and corresponding to a quantization width coefficient smaller than 1 and having the same value as the sign of the immediately preceding inverse quantization value and a numerical value less than that A minimum code output circuit for outputting a quantized value corresponding to the value, and an adaptive inverse quantization circuit and a decoding circuit for selecting one of the output of the adaptive quantization circuit and the output of the minimum code output circuit in accordance with the silent output instruction signal And a selection circuit for outputting to It adopts a configuration in that. This aims to achieve the above-mentioned object.

【0026】[0026]

【作用】無音出力指示がない場合:減算回路では入力さ
れたPCM符号から予測回路の出力を引いた差分PCM
符号を出力する。次に適応量子化回路ではその差分PC
M符号とあらかじめ記憶されている量子化幅を乗算し、
その乗算結果に基づいて量子化値と量子化幅係数を出力
する。また適応量子化回路では量子化幅係数はあらかじ
め記憶されている量子化幅と乗算され、その乗算結果は
あらたな量子化幅として記憶される。さらに選択回路で
は適応量子化回路が出力する量子化値が選択され、この
量子化値は適応逆量子化回路へ転送されるのと同時に、
伝送路を通して復号化回路へ転送される。適応逆量子化
回路では、その量子化値は逆量子化値および量子化幅係
数に変換される。逆量子化値はあらかじめ記憶されてい
る量子化幅と乗算され、その乗算結果は加算回路および
最小符号出力回路に転送される。また量子化幅係数はあ
らかじめ記憶されている量子化幅と乗算され、その乗算
結果はあらたな量子化幅として記憶される。加算回路で
は適応逆量子化回路の出力は予測回路の出力と加算さ
れ、その加算結果がまた予測回路に戻され、予測回路に
て次の予測値が算出される。また、最小符号出力回路で
は適応逆量子化回路の出力が量子化値に変換される。
In the case where there is no silent output instruction: the subtraction circuit subtracts the output of the prediction circuit from the input PCM code in the subtraction circuit.
Output sign. Next, in the adaptive quantization circuit, the difference PC
Multiplying the M code by a pre-stored quantization width,
A quantization value and a quantization width coefficient are output based on the result of the multiplication. In the adaptive quantization circuit, the quantization width coefficient is multiplied by a previously stored quantization width, and the multiplication result is stored as a new quantization width. Further, the selection circuit selects a quantization value output from the adaptive quantization circuit, and this quantization value is transferred to the adaptive inverse quantization circuit,
The data is transferred to the decoding circuit through the transmission path. In the adaptive inverse quantization circuit, the quantization value is converted into an inverse quantization value and a quantization width coefficient. The inverse quantization value is multiplied by a quantization width stored in advance, and the multiplication result is transferred to an addition circuit and a minimum sign output circuit. The quantization width coefficient is multiplied by a previously stored quantization width, and the result of the multiplication is stored as a new quantization width. In the adder circuit, the output of the adaptive inverse quantization circuit is added to the output of the prediction circuit, and the result of the addition is returned to the prediction circuit, and the prediction circuit calculates the next predicted value. Further, in the minimum code output circuit, the output of the adaptive inverse quantization circuit is converted into a quantization value.

【0027】無音出力指示がされた場合:無音出力指示
信号により、選択回路では最小符号出力回路の出力が選
択される。つまり、最小符号出力回路の出力は選択回路
を通して適応逆量子化回路および伝送路に転送される。
適応逆量子化回路では最小符号出力回路からの量子化値
が逆量子化値および量子化幅係数に変換され、逆量子化
値はあらかじめ記憶されている量子化幅と乗算され、そ
の乗算結果は最小符号出力回路へ転送され量子化値に変
換される。さらに適応逆量子化回路では量子化幅係数は
あらかじめ記憶されている量子化幅と乗算され、その乗
算結果はあらたな量子化幅として記憶される。無音出力
指示信号が切れるまで、以上の処理が繰り返される。
When a silent output instruction is issued: The output of the minimum code output circuit is selected in the selection circuit by the silent output instruction signal. That is, the output of the minimum code output circuit is transferred to the adaptive inverse quantization circuit and the transmission path through the selection circuit.
In the adaptive inverse quantization circuit, the quantization value from the minimum code output circuit is converted into an inverse quantization value and a quantization width coefficient, and the inverse quantization value is multiplied by a quantization width stored in advance. The data is transferred to the minimum code output circuit and is converted into a quantized value. Further, in the adaptive inverse quantization circuit, the quantization width coefficient is multiplied by a previously stored quantization width, and the multiplication result is stored as a new quantization width. The above processing is repeated until the silence output instruction signal is cut off.

【0028】[0028]

【発明の実施例】以下、本発明の一実施例を図1ないし
図11に基づいて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to FIGS.

【0029】図1の第1の実施例における符号化回路1
0は、予測値を算出する予測回路14と、入力されたP
CM符号から予測回路14からの予測値を減算し,差分
PCM符号を算出する減算回路11と、減算回路11で
算出された差分PCM符号を量子化値に変換する適応量
子化回路12と、適応量子化回路12からの量子化値を
逆量子化し,逆量子化値を出力する適応逆量子化回路1
3と、適応逆量子化回路13からの逆量子化値と予測回
路14からの予測値を加算する加算回路15と、1より
小さい量子化幅係数に対応し,かつ時間的に直前の逆量
子化値の符号と同じで,数値がそれ以下である値に対応
する量子化値を出力する最小符号出力回路17と、無音
の出力指示に応じて適応量子化回路12からの量子化値
と最小符号出力回路17からの量子化値とのどちらかを
選択し適応逆量子化回路13および伝送路を通じて復号
化回路60へ出力する選択回路18とから構成されてい
る。
The encoding circuit 1 in the first embodiment shown in FIG.
0 is the prediction circuit 14 for calculating the prediction value and the input P
A subtraction circuit 11 for subtracting the prediction value from the prediction circuit 14 from the CM code to calculate a differential PCM code; an adaptive quantization circuit 12 for converting the differential PCM code calculated by the subtraction circuit 11 into a quantization value; Adaptive inverse quantization circuit 1 that inversely quantizes the quantization value from quantization circuit 12 and outputs the inverse quantization value
3, an addition circuit 15 for adding the inverse quantization value from the adaptive inverse quantization circuit 13 and the prediction value from the prediction circuit 14, and an inverse quantization coefficient corresponding to a quantization width coefficient smaller than 1 and immediately preceding in time. A minimum code output circuit 17 for outputting a quantized value corresponding to a value which is the same as the sign of the quantized value but smaller than the numerical value, and a quantized value from the adaptive quantizing circuit 12 in response to a silent output instruction. It comprises an adaptive inverse quantization circuit 13 which selects one of the quantized values from the code output circuit 17 and outputs it to a decoding circuit 60 via a transmission line.

【0030】ここで、適応量子化回路12は、図2に示
されるように過去のADPCM符号から算出された量子
化幅を記憶する量子化幅バッファ125と、減算回路1
1からの差分PCM符号と量子化幅バッファ125から
の量子化幅とを乗算する第2の乗算回路124と、第2
の乗算回路124の出力を量子化し,量子化値および量
子化幅係数を適応逆量子化回路13あるいは伝送路を介
して復号化回路60の適応逆量子化回路63へ出力する
量子化/係数テーブル121と、量子化幅バッファ12
5の出力と量子化/係数テーブル121の出力とを乗算
し量子化幅バッファ125へ出力する第1の乗算回路1
23とから構成されている。
Here, the adaptive quantization circuit 12 includes a quantization width buffer 125 for storing the quantization width calculated from the past ADPCM code as shown in FIG.
A second multiplying circuit 124 for multiplying the differential PCM code from 1 by the quantization width from the quantization width buffer 125;
Quantization / coefficient table that quantizes the output of the multiplication circuit 124 and outputs the quantized value and the quantization width coefficient to the adaptive inverse quantization circuit 13 or the adaptive inverse quantization circuit 63 of the decoding circuit 60 via the transmission path. 121 and the quantization width buffer 12
5 multiplied by the output of the quantization / coefficient table 121 and output to the quantization width buffer 125
23.

【0031】また、適応逆量子化回路13は、図3に示
されるように適応量子化回路12からの量子化値を逆量
子化値に変換する逆量子化テーブル131と、適応量子
化回路12からの量子化値を量子化幅係数に変換する係
数テーブル132と、過去のADPCM符号から算出さ
れた量子化幅を記憶する量子化幅バッファ135と、係
数テーブル132の出力と量子化幅バッファ135の出
力とを乗算し量子化幅バッファ135に出力する第3の
乗算回路133と、逆量子化テーブル131の出力と量
子化幅バッファ135の出力とを乗算し加算回路15お
よび最小符号出力回路17に出力する第4の乗算回路1
34とから構成されている。
The adaptive inverse quantization circuit 13 includes an inverse quantization table 131 for converting the quantization value from the adaptive quantization circuit 12 into an inverse quantization value, as shown in FIG. , A coefficient table 132 for converting the quantized value from into a quantization width coefficient, a quantization width buffer 135 for storing the quantization width calculated from the past ADPCM code, an output of the coefficient table 132 and the quantization width buffer 135 , And a third multiplier 133 for multiplying the output of the quantization width buffer 135 by the output of the inverse quantization table 131 and the output of the quantization width buffer 135. Multiplying circuit 1 for outputting to
34.

【0032】さらに、復号化回路60は図4に示される
ように予測値を算出する予測回路64と、伝送路を介し
て符号化回路10から送られてきた量子化値を逆量子化
する適応逆量子化回路63と、適応逆量子化回路63の
出力を予測回路64の出力に加算し予測回路64へ出力
するとともに復号化PCM符号として出力する加算回路
65とから構成されている。
Further, the decoding circuit 60 has a prediction circuit 64 for calculating a prediction value as shown in FIG. 4 and an adaptive circuit for inversely quantizing the quantization value sent from the encoding circuit 10 via the transmission line. It comprises an inverse quantization circuit 63 and an addition circuit 65 that adds the output of the adaptive inverse quantization circuit 63 to the output of the prediction circuit 64, outputs the result to the prediction circuit 64, and outputs it as a decoded PCM code.

【0033】ここで、適応逆量子化回路63は、図5に
示されるように符号化回路10からの量子化値を逆量子
化値に変換する逆量子化テーブル631と、符号化回路
10からの量子化値を量子化幅係数に変換する係数テー
ブル632と、過去のADPCM符号から算出された量
子化幅を記憶する量子化幅バッファ635と、係数テー
ブル632の出力と量子化幅バッファ635の出力とを
乗算し量子化幅バッファ635に出力する第3の乗算回
路633と、逆量子化テーブル631の出力と量子化幅
バッファ635の出力とを乗算し加算回路65に出力す
る第4の乗算回路634とから構成されている。
Here, the adaptive inverse quantization circuit 63 includes an inverse quantization table 631 for converting the quantization value from the encoding circuit 10 into an inverse quantization value as shown in FIG. , A coefficient table 632 for converting the quantization value into a quantization width coefficient, a quantization width buffer 635 for storing the quantization width calculated from the past ADPCM code, and an output of the coefficient table 632 and the quantization width buffer 635. A third multiplication circuit 633 that multiplies the output by the output of the quantization width buffer 635 and a fourth multiplication by which the output of the inverse quantization table 631 and the output of the quantization width buffer 635 are multiplied and output to the addition circuit 65 And a circuit 634.

【0034】次に、第1の実施例の動作について説明す
る。
Next, the operation of the first embodiment will be described.

【0035】時刻tに入力されたPCM符号を「1」、
予測回路14および予測回路64の出力を「3」とし、
量子化幅バッファ125および量子化幅バッファ135
には、過去のADPCM符号から算出された量子化幅
「1」が記憶されているものとする。
The PCM code input at time t is "1",
The output of the prediction circuit 14 and the prediction circuit 64 is set to “3”,
Quantization width buffer 125 and quantization width buffer 135
, The quantization width “1” calculated from the past ADPCM code is stored.

【0036】量子化/係数テーブル121には、図6に
示されるように量子化値が「+3」のときはADPCM
符号として「011」(2進数),量子化幅係数として
「0.8」が、量子化値が「+2」のときはADPCM
符号として「010」(2進数),量子化幅係数として
「1」が、量子化値が「+1」のときはADPCM符号
として「001」(2進数),量子化幅係数として
「1.25」が、量子化値が「0」のときはADPCM
符号として「000」(2進数),量子化幅係数として
「1.25」が、量子化値が「−1」のときはADPC
M符号として「100」(2進数),量子化幅係数とし
て「1.25」が、量子化値が「−2」のときはADP
CM符号として「101」(2進数),量子化幅係数と
して「1」が、量子化値が「−3」のときはADPCM
符号として「110」(2進数),量子化幅係数として
「0.8」が記述されているものとする。
In the quantization / coefficient table 121, when the quantization value is "+3" as shown in FIG.
“011” (binary number) as the code, “0.8” as the quantization width coefficient, and ADPCM when the quantization value is “+2”
The code is “010” (binary number), the quantization width coefficient is “1”. When the quantization value is “+1”, the ADPCM code is “001” (binary number), and the quantization width coefficient is “1.25”. Is ADPCM when the quantization value is “0”.
When the code is “000” (binary number), the quantization width coefficient is “1.25”, and when the quantization value is “−1”, ADPC
“100” (binary number) as the M code, “1.25” as the quantization width coefficient, and ADP when the quantization value is “−2”
"101" (binary number) as the CM code, "1" as the quantization width coefficient, and ADPCM when the quantization value is "-3".
It is assumed that “110” (binary number) is described as a code and “0.8” is described as a quantization width coefficient.

【0037】逆量子化テーブル131および逆量子化テ
ーブル631には、図7に示されるようにADPCM符
号が「011」(2進数)のときは逆量子化値として
「+3」が、ADPCM符号が「010」(2進数)の
ときは逆量子化値として「+2」が、ADPCM符号が
「001」(2進数)のときは逆量子化値として「+
1」が、ADPCM符号が「000」(2進数)のとき
は逆量子化値として「0」が、ADPCM符号が「10
0」(2進数)のときは逆量子化値として「−1」が、
ADPCM符号が「101」(2進数)のときは逆量子
化値として「−2」が、ADPCM符号が「110」
(2進数)のときは逆量子化値として「−3」が記述さ
れているものとする。
As shown in FIG. 7, when the ADPCM code is “011” (binary number), “+3” is shown as the inverse quantization value, and the ADPCM code is shown in the inverse quantization table 131 and the inverse quantization table 631. When the value is “010” (binary number), “+2” is used as the inverse quantization value. When the ADPCM code is “001” (binary number), “+” is used as the inverse quantization value.
When the ADPCM code is "000" (binary number), "0" is used as the inverse quantization value, and when the ADPCM code is "10".
When it is "0" (binary number), "-1" is used as an inverse quantization value,
When the ADPCM code is “101” (binary number), the inverse quantization value is “−2”, and the ADPCM code is “110”.
In the case of (binary number), "-3" is described as the inverse quantization value.

【0038】係数テーブル132および係数テーブル6
32には、図7に示されるようにADPCM符号が「0
11」(2進数)のときは量子化幅係数として「1.2
5」が、ADPCM符号が「010」(2進数)のとき
は量子化幅係数として「1」が、ADPCM符号が「0
01」(2進数)のときは量子化幅係数として「0.
8」が、ADPCM符号が「000」(2進数)のとき
は量子化幅係数として「0.8」が、ADPCM符号が
「100」(2進数)のときは量子化幅係数として
「0.8」が、ADPCM符号が「101」(2進数)
のときは量子化幅係数として「1」が、ADPCM符号
が「110」(2進数)のときは量子化幅係数として
「1.25」が記述されているものとする。
Coefficient table 132 and coefficient table 6
32, the ADPCM code is "0" as shown in FIG.
11 "(binary number)," 1.2
When the ADPCM code is “010” (binary number), “1” is used as the quantization width coefficient, and the ADPCM code is “0”.
01 "(binary number)," 0.
When the ADPCM code is “000” (binary number), “0.8” is used as the quantization width coefficient. When the ADPCM code is “100” (binary number), the quantization width coefficient is “0. 8 ”is ADPCM code“ 101 ”(binary number)
In this case, it is assumed that "1" is described as the quantization width coefficient, and that when the ADPCM code is "110" (binary), "1.25" is described as the quantization width coefficient.

【0039】まず、時刻tに無音出力指示がない場合の
ADPCM符号化/復号化を説明する。減算回路11は
入力されたPCM符号「1」から予測回路14の出力
「3」を引いた差分PCM符号「−2」を出力する。次
に適応量子化回路12内の第2の乗算回路124はその
差分PCM符号「−2」と量子化幅バッファ125の内
容「1」を乗算し、その出力「−2」を量子化/係数テ
ーブル121に転送する。量子化/係数テーブル121
は第2の乗算回路124の出力「−2」と各量子化値と
を比較し、最も近い量子化値「−2」を選択し、図6に
示されるようにそれに対応するADPCM符号「10
1」(2進数)と量子化幅係数「1」を出力する。無音
出力指示がないので、選択回路18は適応量子化回路1
2が出力するADPCM符号を選択することにより、A
DPCM符号「101」(2進数)は適応逆量子化回路
13へ転送されるのと同時に、伝送路を通して、復号化
回路60へ転送される。
First, ADPCM encoding / decoding in the case where there is no silent output instruction at time t will be described. The subtraction circuit 11 outputs a difference PCM code “−2” obtained by subtracting the output “3” of the prediction circuit 14 from the input PCM code “1”. Next, the second multiplication circuit 124 in the adaptive quantization circuit 12 multiplies the differential PCM code “−2” by the content “1” of the quantization width buffer 125, and outputs the output “−2” by quantization / coefficient. Transfer to table 121. Quantization / coefficient table 121
Compares the output “−2” of the second multiplication circuit 124 with each quantized value, selects the nearest quantized value “−2”, and, as shown in FIG. 6, the corresponding ADPCM code “10”.
1 (binary number) and a quantization width coefficient "1" are output. Since there is no silent output instruction, the selection circuit 18
2 selects the ADPCM code output by
The DPCM code “101” (binary number) is transferred to the decoding circuit 60 through the transmission path at the same time as being transferred to the adaptive inverse quantization circuit 13.

【0040】また、量子化幅係数「1」は量子化幅バッ
ファ125に記憶されている量子化幅「1」と第1の乗
算回路123にて乗算され、その出力「1」は量子化幅
バッファ125に戻される。そのADPCM符号「10
1」(2進数)は適応逆量子化回路13内の逆量子化テ
ーブル131および係数テーブル132でそれぞれ図7
に示されるように逆量子化値「−2」および量子化幅係
数「1」に変換される。逆量子化テーブル131の出力
「−2」と量子化幅バッファ135に記憶されている量
子化幅「1」とは第4の乗算回路134にて乗算され
る。また、量子化幅係数「1」は量子化幅バッファ13
5に記憶されている量子化幅「1」とは第3の乗算回路
133にて乗算され、その出力「1」は量子化幅バッフ
ァ135に戻される。
The quantization width coefficient “1” is multiplied by the quantization width “1” stored in the quantization width buffer 125 by the first multiplying circuit 123, and the output “1” is obtained by the quantization width “1”. It is returned to the buffer 125. The ADPCM code "10
“1” (binary number) is an inverse quantization table 131 and a coefficient table 132 in the adaptive inverse quantization circuit 13, respectively.
Are converted into the inverse quantization value "-2" and the quantization width coefficient "1". The fourth multiplier 134 multiplies the output “−2” of the inverse quantization table 131 by the quantization width “1” stored in the quantization width buffer 135. The quantization width coefficient “1” is stored in the quantization width buffer 13.
5 is multiplied by the quantization width “1” stored in the third multiplication circuit 133, and the output “1” is returned to the quantization width buffer 135.

【0041】次に、第4の乗算回路134の出力「−
2」は差分値として、加算回路15および最小符号出力
回路17に転送される。加算回路15にて予測回路14
の出力と加算される。その加算結果がまた予測回路14
に戻され、次の予測値を算出する。また、最小符号出力
回路17では図7に示されるように入力した差分値「−
2」に対応する量子化幅係数が「1」であるので逆量子
化値「−1」に対応するADPCM符号「100」(2
進数)に変換される。他方、伝送路を通して復号化回路
60へ送られたADPCM符号「101」(2進数)は
適応逆量子化回路63内の逆量子化テーブル631およ
び係数テーブル632でそれぞれ図7に示されるように
逆量子化値「−2」、および量子化幅係数「1」に変換
される。
Next, the output "-"
"2" is transferred to the addition circuit 15 and the minimum code output circuit 17 as a difference value. Prediction circuit 14 in addition circuit 15
Is added to the output of The result of the addition is obtained by the prediction circuit 14 again.
To calculate the next predicted value. The minimum sign output circuit 17 inputs the difference value “−” as shown in FIG.
Since the quantization width coefficient corresponding to “2” is “1”, the ADPCM code “100” (2
Base number). On the other hand, the ADPCM code “101” (binary number) sent to the decoding circuit 60 through the transmission line is inversely quantized by the inverse quantization table 631 and the coefficient table 632 in the adaptive inverse quantization circuit 63 as shown in FIG. It is converted into a quantization value “−2” and a quantization width coefficient “1”.

【0042】逆量子化テーブル631の出力「−2」と
量子化幅バッファ635に記憶されている量子化幅
「1」とは第4の乗算回路634にて乗算される。ま
た、量子化幅係数「1」は量子化幅バッファ635に記
憶されている量子化幅「1」とは第3の乗算回路633
にて乗算され、その出力「1」は量子化幅バッファ63
5に戻される。次に、第4の乗算回路634の出力「−
2」は差分値として、加算回路65にて予測回路64の
出力と加算される。その加算結果がPCM符号として出
力される。また、次のサンプルのために予測回路64に
戻される。
The output “−2” of the inverse quantization table 631 and the quantization width “1” stored in the quantization width buffer 635 are multiplied by a fourth multiplier 634. The quantization width coefficient “1” is different from the quantization width “1” stored in the quantization width buffer 635 by the third multiplier 633.
, And the output “1” is supplied to the quantization width buffer 63.
Returned to 5. Next, the output “−−” of the fourth multiplication circuit 634
"2" is added to the output of the prediction circuit 64 by the addition circuit 65 as a difference value. The result of the addition is output as a PCM code. It is returned to the prediction circuit 64 for the next sample.

【0043】次に、時刻t+1で無音出力が指示された
場合を説明する。無音を出力するように指示する無音出
力指示信号により、選択回路18は最小符号出力回路1
7の出力を選択する。つまり、最小符号出力回路17の
出力「100」(2進数)は選択回路18を通して適応
逆量子化回路13および伝送路に転送される。そのAD
PCM符号「100」(2進数)は適応逆量子化回路1
3内の逆量子化テーブル131および係数テーブル13
2でそれぞれ図7に示されるように逆量子化値「−1」
および量子化幅係数「0.8」に変換される。逆量子化
テーブル131の出力「−1」と量子化幅バッファ13
5に記憶されている量子化幅「1」とは第4の乗算回路
134にて乗算される。
Next, a case where a silent output is instructed at time t + 1 will be described. In response to a silence output instruction signal for instructing to output silence, the selection circuit 18 causes the minimum code output circuit 1
7 is selected. That is, the output “100” (binary number) of the minimum code output circuit 17 is transferred to the adaptive inverse quantization circuit 13 and the transmission path through the selection circuit 18. That AD
PCM code "100" (binary number) is an adaptive inverse quantization circuit 1
3, the inverse quantization table 131 and the coefficient table 13
2, the inverse quantization value "-1" as shown in FIG.
And a quantization width coefficient “0.8”. Output “−1” of the inverse quantization table 131 and the quantization width buffer 13
The fourth multiplication circuit 134 multiplies the quantization width “1” stored in No. 5 by “4”.

【0044】また、量子化幅係数「0.8」は量子化幅
バッファ135に記憶されている量子化幅「1」と第3
の乗算回路133にて乗算され、その出力「0.8」は
量子化幅バッファ135に戻される。次に、第4の乗算
回路134の出力「−1」は最小符号出力回路17へ転
送され「100」に変換される。他方、伝送路を通して
復号化回路60へ送られたADPCM符号「100」
(2進数)は適応逆量子化回路63内の逆量子化テーブ
ル631および係数テーブル632でそれぞれ図7に示
されるように逆量子化値「−1」および量子化幅係数
「0.8」に変換される。逆量子化テーブル631の出
力「−1」と量子化幅バッファ635に記憶されている
量子化幅「1」とは第4の乗算回路634にて乗算され
る。また、量子化幅係数「0.8」は量子化幅バッファ
635に記憶されている量子化幅「1」と第3の乗算回
路633にて乗算され、その出力「0.8」は量子化幅
バッファ635に戻される。
The quantization width coefficient “0.8” is different from the quantization width “1” stored in the quantization width buffer 135 by the third.
, And the output “0.8” is returned to the quantization width buffer 135. Next, the output “−1” of the fourth multiplication circuit 134 is transferred to the minimum sign output circuit 17 and converted into “100”. On the other hand, the ADPCM code “100” sent to the decoding circuit 60 through the transmission path
(Binary) is converted into an inverse quantization value “−1” and a quantization width coefficient “0.8” in the inverse quantization table 631 and the coefficient table 632 in the adaptive inverse quantization circuit 63, respectively, as shown in FIG. Is converted. The fourth multiplying circuit 634 multiplies the output “−1” of the inverse quantization table 631 by the quantization width “1” stored in the quantization width buffer 635. The quantization width coefficient “0.8” is multiplied by the quantization width “1” stored in the quantization width buffer 635 by the third multiplier 633, and the output “0.8” is quantized. Returned to width buffer 635.

【0045】次に、第4の乗算回路634の出力「−
1」は差分値として加算回路65にて予測回路64の出
力と加算される。その加算結果がPCM符号として出力
される。また、次のサンプルのために予測回路64に転
送される。無音出力指示信号が切れるまで、以上の処理
が繰り返される。
Next, the output of the fourth multiplying circuit 634 "-
"1" is added to the output of the prediction circuit 64 by the addition circuit 65 as a difference value. The result of the addition is output as a PCM code. Also, it is transferred to the prediction circuit 64 for the next sample. The above processing is repeated until the silence output instruction signal is cut off.

【0046】時刻t+1以降のサンプルが無音出力指示
されたときの復号化回路60からの出力波形は、図8に
示されるように可聴範囲外の直流波形が出力され無音と
なる。なおここでは小数点以下は四捨五入されている。
また、図8の中で点線で示した波形は指示されなかった
場合を想定した波形である。
As shown in FIG. 8, the output waveform from the decoding circuit 60 when the sample after the time t + 1 is instructed to output a silent sound is a DC waveform outside the audible range and becomes silent. Note that the decimal places are rounded off here.
The waveform shown by the dotted line in FIG. 8 is a waveform assuming that no instruction is given.

【0047】図9の第2の実施例における符号化回路3
0は、予測値を算出する予測回路14と、入力されたP
CM符号から予測回路14の出力を減算し,差分PCM
符号を算出する減算回路11と、無音出力指示信号に応
じて減算回路11で算出された差分PCM符号を量子化
値と量子化幅係数に変換し復号化回路40へ出力する適
応量子化回路32と、適応量子化回路32が出力する量
子化値を逆量子化する適応逆量子化回路13と、適応逆
量子化回路13の出力と予測回路14の出力を加算し予
測回路14に出力する加算回路15とから構成される。
The encoding circuit 3 in the second embodiment shown in FIG.
0 is the prediction circuit 14 for calculating the prediction value and the input P
The output of the prediction circuit 14 is subtracted from the CM code, and the difference PCM
A subtraction circuit 11 for calculating a code, and an adaptive quantization circuit 32 for converting the differential PCM code calculated by the subtraction circuit 11 into a quantization value and a quantization width coefficient in accordance with a silent output instruction signal and outputting the converted value to a decoding circuit 40 An adaptive inverse quantization circuit 13 that inversely quantizes the quantized value output from the adaptive quantization circuit 32; an addition that adds the output of the adaptive inverse quantization circuit 13 and the output of the prediction circuit 14 and outputs the result to the prediction circuit 14 And a circuit 15.

【0048】ここで適応量子化回路32は、時間的に直
前に算出された量子化幅を記憶する量子化幅バッファ1
25と、無音の出力指示に応じてオンオフするスイッチ
321と、スイッチ321を通して差分PCM符号を記
憶する無音用バッファ322と、無音出力指示信号に応
じて差分PCM符号と無音用バッファ322の出力を選
択する第1の選択回路323と、第1の選択回路323
の出力と量子化幅バッファ125の出力とを乗算する第
2の乗算回路124と、第2の乗算回路124の出力を
量子化し,量子化値を適応逆量子化回路13へ転送する
と同時に伝送路を通して復号化回路40へ転送するとと
もに量子化幅係数を第2の選択回路325へ出力する量
子化/係数テーブル回路121と、あらかじめ定められ
た1より小さい量子化幅係数を出力する係数出力回路3
24と、無音出力指示信号に応じて量子化/係数テーブ
ル回路121が出力する量子化幅係数と係数出力回路3
24の出力のどちらかを選択し伝送路を通して復号化回
路40へ転送する第2の選択回路325と、第2の選択
回路325の出力と量子化幅バッファ125の出力を乗
算して量子化幅を算出する第1の乗算回路123とから
構成されている。
Here, the adaptive quantization circuit 32 stores a quantization width buffer 1 for storing the quantization width calculated immediately before in time.
25, a switch 321 that is turned on / off in response to a silence output instruction, a silence buffer 322 that stores a differential PCM code through the switch 321, and a difference PCM code and an output of the silence buffer 322 according to a silence output instruction signal. A first selection circuit 323 that performs
Multiplying the output of the second multiplier 124 by the output of the quantization width buffer 125, quantizing the output of the second multiplier 124, transferring the quantized value to the adaptive inverse quantization circuit 13, and simultaneously transmitting the And a quantization / coefficient table circuit 121 for outputting a quantization width coefficient to the second selection circuit 325 and a coefficient output circuit 3 for outputting a quantization width coefficient smaller than 1 which is predetermined.
24, the quantization width coefficient output by the quantization / coefficient table circuit 121 in response to the silent output instruction signal, and the coefficient output circuit 3
24, and a second selection circuit 325 that selects one of the outputs of the second selection circuit 24 and transfers it to the decoding circuit 40 through the transmission path. And a first multiplication circuit 123 for calculating

【0049】ここで、適応逆量子化回路13は、第1の
実施例と同じ構成および機能を有する。
Here, the adaptive inverse quantization circuit 13 has the same configuration and function as the first embodiment.

【0050】さらに、復号化回路40は図10に示され
るように予測値を算出する予測回路64と、伝送路を介
して送られてきたADPCM符号の量子化値を逆量子化
する適応逆量子化回路43と、適応逆量子化回路43の
出力を予測回路64の出力に加算し復号化PCM符号と
して出力する加算回路65とから構成されている。
Further, the decoding circuit 40 includes a prediction circuit 64 for calculating a predicted value as shown in FIG. 10 and an adaptive inverse quantization for inversely quantizing the quantized value of the ADPCM code transmitted via the transmission path. And a summation circuit 65 that adds the output of the adaptive inverse quantization circuit 43 to the output of the prediction circuit 64 and outputs the result as a decoded PCM code.

【0051】ここで、適応逆量子化回路43は、符号化
回路30からのADPCM符号を逆量子化値に変換する
逆量子化テーブル431と、過去のADPCM符号から
算出された量子化幅を記憶する量子化幅バッファ435
と、符号化回路30からの量子化幅係数と量子化幅バッ
ファ435の出力とを乗算し量子化幅バッファ435に
出力する第3の乗算回路433と、逆量子化テーブル4
31の出力と量子化幅バッファ435の出力とを乗算し
加算回路65に出力する第4の乗算回路434とから構
成されている。
Here, the adaptive inverse quantization circuit 43 stores an inverse quantization table 431 for converting the ADPCM code from the encoding circuit 30 into an inverse quantization value, and a quantization width calculated from the past ADPCM code. Quantization width buffer 435
A third multiplication circuit 433 that multiplies the quantization width coefficient from the encoding circuit 30 by the output of the quantization width buffer 435 and outputs the result to the quantization width buffer 435;
And a fourth multiplying circuit 434 that multiplies the output of the 31 and the output of the quantization width buffer 435 and outputs the result to the adding circuit 65.

【0052】次に第2の実施例の動作について説明す
る。
Next, the operation of the second embodiment will be described.

【0053】時刻tに入力されたPCM符号を「1」、
予測回路14および予測回路44の出力を「3」とし、
量子化幅バッファ125および量子化幅バッファ435
には、過去のADPCM符号から算出された量子化幅
「1」が記憶されているものとする。
The PCM code input at time t is “1”,
The outputs of the prediction circuit 14 and the prediction circuit 44 are set to “3”,
Quantization width buffer 125 and quantization width buffer 435
, The quantization width “1” calculated from the past ADPCM code is stored.

【0054】逆量子化テーブル431には第1の実施例
における逆量子化テーブル131と同様なテーブルが記
述されているものとする。
It is assumed that the inverse quantization table 431 describes a table similar to the inverse quantization table 131 in the first embodiment.

【0055】まず、時刻tに無音出力指示がない場合の
ADPCM符号化/復号化を説明する。減算回路11は
入力されたPCM符号「1」から予測回路14の出力
「3」を引いた差分PCM符号「−2」を出力する。無
音出力指示がないので、適応量子化回路32内のスイッ
チ321はオンになり、第1の選択回路323は差分P
CM符号を選択する。それにより、その差分PCM符号
は無音用バッファ322および第2の乗算回路124に
転送される。
First, ADPCM encoding / decoding in the case where there is no silent output instruction at time t will be described. The subtraction circuit 11 outputs a difference PCM code “−2” obtained by subtracting the output “3” of the prediction circuit 14 from the input PCM code “1”. Since there is no silent output instruction, the switch 321 in the adaptive quantization circuit 32 is turned on, and the first selection circuit 323 determines the difference P
Select the CM code. Thereby, the differential PCM code is transferred to the silence buffer 322 and the second multiplying circuit 124.

【0056】第2の乗算回路124はその差分PCM符
号「−2」と量子化幅バッファ125の内容「1」を乗
算し、その出力「−2」を量子化/係数テーブル121
に転送する。量子化/係数テーブル121は第2の乗算
回路124の出力「−2」と各量子化値とを比較し、最
も近い量子化値「−2」を選択し、図6に示されるよう
にそれに対応するADPCM符号「101」(2進数)
と量子化幅係数「1」を出力する。
The second multiplier 124 multiplies the differential PCM code “−2” by the content “1” of the quantization width buffer 125 and outputs the output “−2” to the quantization / coefficient table 121.
Transfer to The quantization / coefficient table 121 compares the output “−2” of the second multiplication circuit 124 with each quantized value, selects the nearest quantized value “−2”, and as shown in FIG. Corresponding ADPCM code "101" (binary number)
And the quantization width coefficient “1”.

【0057】適応量子化回路32が出力するADPCM
符号「101」(2進数)は適応逆量子化回路13へ転
送されると同時に伝送路を通して復号化回路40へ転送
される。また無音出力指示がないので、第2の選択回路
325は図7に示されるように量子化/係数テーブル1
21が出力する量子化幅係数「1」を選択する。それに
より、量子化幅係数「1」は第1の乗算回路123へ転
送されるのと同時に、伝送路を通して、復号化回路40
へ転送される。また、量子化幅係数「1」は量子化幅バ
ッファ125に記憶されている量子化幅「1」と第1の
乗算回路123にて乗算され、その出力「1」は量子化
幅バッファ125に戻される。そのADPCM符号「1
01」(2進数)は適応逆量子化回路13内の逆量子化
テーブル131および係数テーブル132でそれぞれ図
7に示されるように逆量子化値「−2」および量子化幅
係数「1」に変換される。逆量子化テーブル131の出
力「−2」と量子化幅バッファ135に記憶されている
量子化幅「1」とは第4の乗算回路134にて乗算され
る。また、量子化幅係数「1」は量子化幅バッファ13
5に記憶されている量子化幅「1」とは第3の乗算回路
133にて乗算され、その出力「1」は量子化幅バッフ
ァ135に戻される。
ADPCM output from adaptive quantization circuit 32
The code “101” (binary number) is transferred to the adaptive inverse quantization circuit 13 and simultaneously to the decoding circuit 40 via the transmission path. Further, since there is no silent output instruction, the second selection circuit 325 sets the quantization / coefficient table 1 as shown in FIG.
21 selects the quantization width coefficient “1” output. As a result, the quantization width coefficient “1” is transferred to the first multiplication circuit 123 and, at the same time, is transmitted to the decoding circuit 40 through the transmission path.
Transferred to The quantization width coefficient “1” is multiplied by the quantization width “1” stored in the quantization width buffer 125 by the first multiplication circuit 123, and the output “1” is supplied to the quantization width buffer 125. Will be returned. The ADPCM code "1
"01" (binary number) is converted into an inverse quantization value "-2" and a quantization width coefficient "1" in the inverse quantization table 131 and the coefficient table 132 in the adaptive inverse quantization circuit 13, respectively, as shown in FIG. Is converted. The fourth multiplier 134 multiplies the output “−2” of the inverse quantization table 131 by the quantization width “1” stored in the quantization width buffer 135. The quantization width coefficient “1” is stored in the quantization width buffer 13.
5 is multiplied by the quantization width “1” stored in the third multiplication circuit 133, and the output “1” is returned to the quantization width buffer 135.

【0058】次に、第4の乗算回路134の出力「−
2」は差分値として、加算回路15に転送される。第4
の乗算回路134の出力「−2」は加算回路15にて予
測回路14の出力と加算される。その加算結果がまた予
測回路14に戻され、次の予測値を算出する。他方、伝
送路を通して復号化回路40へ送られたADPCM符号
「101」(2進数)は適応逆量子化回路43内の逆量
子化テーブル431で逆量子化値「−2」に変換され
る。逆量子化テーブル431の出力「−2」と量子化幅
バッファ435に記憶されている量子化幅「1」とは乗
算回路434にて乗算される。また、伝送路を通して復
号化回路40へ送られた量子化幅係数「1」は量子化幅
バッファ435に記憶されている量子化幅「1」とは乗
算回路433にて乗算され、その出力「1」は量子化幅
バッファ435に戻される。次に、乗算回路434の出
力「−2」は差分値として、加算回路45にて予測回路
44の出力と加算される。その加算結果がPCM符号と
して出力される。また、次のサンプルのために予測回路
44に戻される。
Next, the output "-"
"2" is transferred to the addition circuit 15 as a difference value. 4th
The output “−2” of the multiplication circuit 134 is added to the output of the prediction circuit 14 by the addition circuit 15. The result of the addition is returned to the prediction circuit 14 to calculate the next predicted value. On the other hand, the ADPCM code “101” (binary number) sent to the decoding circuit 40 through the transmission path is converted into an inverse quantization value “−2” by the inverse quantization table 431 in the adaptive inverse quantization circuit 43. The multiplication circuit 434 multiplies the output “−2” of the inverse quantization table 431 by the quantization width “1” stored in the quantization width buffer 435. The quantization width coefficient “1” sent to the decoding circuit 40 through the transmission path is multiplied by the quantization width “1” stored in the quantization width buffer 435 by the multiplication circuit 433, and the output “ "1" is returned to the quantization width buffer 435. Next, the output “−2” of the multiplication circuit 434 is added to the output of the prediction circuit 44 by the addition circuit 45 as a difference value. The result of the addition is output as a PCM code. It is returned to the prediction circuit 44 for the next sample.

【0059】次に、時刻t+1で無音出力が指示された
場合を説明する。無音を出力するように指示する無音出
力指示信号により、スイッチ321はオフになり、第1
の選択回路323は無音用バッファ322の出力を選択
する。つまり、無音用バッファ322の出力「−2」は
第1の選択回路323を通して第2の乗算回路124に
転送される。次に、第2の乗算回路124はその差分P
CM符号「−2」と量子化幅バッファの内容「1」を乗
算し、その出力「−2」を量子化/係数テーブル121
に転送する。量子化/係数テーブル121は第2の乗算
回路124の出力「−2」と各量子化値とを比較し、最
も近い量子化値「−2」を選択し、図6に示されるよう
にそれに対応するADPCM符号「101」(2進数)
と量子化幅係数「1」を出力する。適応量子化回路32
が出力するADPCM符号「101」(2進数)は適応
逆量子化回路13へ転送されると同時に伝送路を通して
復号化回路40へ転送される。
Next, a case where a silent output is instructed at time t + 1 will be described. The switch 321 is turned off by the silence output instruction signal instructing to output silence, and the first
Selection circuit 323 selects the output of the silence buffer 322. That is, the output “−2” of the silence buffer 322 is transferred to the second multiplier 124 through the first selector 323. Next, the second multiplication circuit 124 calculates the difference P
The CM code “−2” is multiplied by the content “1” of the quantization width buffer, and the output “−2” is quantized / coefficient table 121.
Transfer to The quantization / coefficient table 121 compares the output “−2” of the second multiplication circuit 124 with each quantized value, selects the nearest quantized value “−2”, and as shown in FIG. Corresponding ADPCM code "101" (binary number)
And the quantization width coefficient “1”. Adaptive quantization circuit 32
Are output to the adaptive inverse quantization circuit 13 and at the same time are transferred to the decoding circuit 40 through the transmission path.

【0060】また、無音出力指示信号により、第2の選
択回路325は無音用係数出力回路324が出力する量
子化幅係数「0.6」を選択する。それより、量子化幅
係数「0.6」は第1の乗算回路123へ転送されるの
と同時に伝送路を通して復号化回路40へ転送される。
第1の乗算回路123では量子化幅係数「0.6」は量
子化幅バッファ125に記憶されている量子化幅「1」
と乗算され、その出力「0.6」は量子化幅バッファ1
25に戻される。他方、伝送路を通して復号化回路40
へ送られたADPCM符号「101」(2進数)は適応
逆量子化回路43内の逆量子化テーブル431で逆量子
化値「−2」に変換される。逆量子化テーブル431の
出力「−2」と量子化幅バッファ435に記憶されてい
る量子化幅「1」は乗算回路434にて乗算される。ま
た、伝送路を通して復号化回路40へ送られた量子化幅
係数「0.6」は量子化幅バッファ435に記憶されて
いる量子化幅「1」と第3の乗算回路433にて乗算さ
れ、その出力「0.6」は量子化幅バッファ435に戻
される。次に、第4の乗算回路434の出力「−1」は
差分値として加算回路45にて予測回路44の出力と加
算される。その加算結果がPCM符号として出力され
る。また、次のサンプルのために予測回路44に転送さ
れる。無音出力指示信号が切れるまで、以上の処理が繰
り返される。
In addition, the second selection circuit 325 selects the quantization width coefficient “0.6” output from the silent coefficient output circuit 324 according to the silent output instruction signal. Accordingly, the quantization width coefficient “0.6” is transferred to the decoding circuit 40 through the transmission path at the same time as being transferred to the first multiplication circuit 123.
In the first multiplying circuit 123, the quantization width coefficient “0.6” is converted to the quantization width “1” stored in the quantization width buffer 125.
, And the output “0.6” is input to the quantization width buffer 1
It is returned to 25. On the other hand, the decoding circuit 40
The ADPCM code “101” (binary number) sent to is converted to an inverse quantization value “−2” by an inverse quantization table 431 in the adaptive inverse quantization circuit 43. The multiplication circuit 434 multiplies the output “−2” of the inverse quantization table 431 by the quantization width “1” stored in the quantization width buffer 435. Further, the quantization width coefficient “0.6” sent to the decoding circuit 40 through the transmission path is multiplied by the quantization width “1” stored in the quantization width buffer 435 by the third multiplication circuit 433. , Its output “0.6” is returned to the quantization width buffer 435. Next, the output “−1” of the fourth multiplication circuit 434 is added to the output of the prediction circuit 44 by the addition circuit 45 as a difference value. The result of the addition is output as a PCM code. Also, it is transferred to the prediction circuit 44 for the next sample. The above processing is repeated until the silence output instruction signal expires.

【0061】時刻t+1以降のサンプルが無音出力指示
されたときの復号化回路40からの出力波形は、図11
に示されるように可聴範囲外の直流波形が出力され無音
となる。なおここでは小数点以下は四捨五入されてい
る。また、図11の中で点線で示した波形は指示されな
かった場合を想定した波形である。
The output waveform from the decoding circuit 40 when the sample after time t + 1 is instructed to output a silent signal is shown in FIG.
As shown in (2), a DC waveform outside the audible range is output, resulting in no sound. Note that the decimal places are rounded off here. The waveform shown by the dotted line in FIG. 11 is a waveform assuming that no instruction is given.

【0062】なお、第1の実施例ではバックワード方式
のADPCM符号化/復号化にて、第2の実施例ではフ
ォーワード方式のADPCM符号化/復号化にて説明し
たが、適応時に差分の量子化幅を変更する回路を使用し
ていれば、本発明と同様な効果が得られる。
In the first embodiment, the ADPCM encoding / decoding in the backward system has been described. In the second embodiment, the ADPCM encoding / decoding in the forward system has been described. If a circuit for changing the quantization width is used, the same effect as the present invention can be obtained.

【0063】また、適応差分符号を消失したとき、第1
の実施例では最小符号出力回路17は逆量子化値の絶対
値が最小になるADPCM符号を出力するように、第2
の実施例では逆量子化値は消失直前の値を出力し、無音
用出力回路は「0.6」と固定値を出力するように説明
したが、逆量子化値は消失直前の値の正負の符号が同じ
で、絶対値が0を除きそれ以下であるならば、かつ量子
化幅係数は「1」より小さければ、徐々にPCM符号が
一定値になっていくので、本発明と同様な効果が得られ
る。
When the adaptive difference code is lost, the first
In the embodiment, the minimum code output circuit 17 outputs the second ADPCM code such that the absolute value of the inverse quantization value is minimized.
In the embodiment described above, the inverse quantization value outputs the value immediately before the disappearance, and the output circuit for silence outputs a fixed value of “0.6”. However, the inverse quantization value is the sign of the value immediately before the disappearance. Is the same, the absolute value is less than 0 except for 0, and if the quantization width coefficient is smaller than “1”, the PCM code gradually becomes a constant value. The effect is obtained.

【0064】また、第1の実施例では本発明に必要な最
小符号出力回路17と選択回路18は量子化/係数テー
ブル121の後段に位置し、第2の実施例では本発明に
必要な無音用バッファ322と第1の選択回路323は
量子化/係数テーブル121の前段に位置しているが、
係数テーブルも含むテーブルの後段の場合にはADPC
M符号値を使用し、前段の場合には差分PCM符号を使
用すれば、符号化方式に関係なく、どちらでも本発明と
同様な効果が得られる。
In the first embodiment, the minimum code output circuit 17 and the selection circuit 18 required for the present invention are located at the subsequent stage of the quantization / coefficient table 121. In the second embodiment, the silence required for the present invention is provided. Buffer 322 and the first selection circuit 323 are located at the preceding stage of the quantization / coefficient table 121,
ADPC in the latter stage of the table including the coefficient table
If the M code value is used and the differential PCM code is used in the preceding stage, the same effects as those of the present invention can be obtained regardless of the coding method.

【0065】本実施例では量子化テーブルを使用して説
明したが、ADPCM符号がそのまま演算のデータ表現
と一致していれば、その逆量子化テーブルがなくとも本
発明と同様な効果が得られる。
The present embodiment has been described using the quantization table. However, if the ADPCM code matches the data expression of the operation as it is, the same effects as those of the present invention can be obtained without the inverse quantization table. .

【0066】本実施例では説明を分かりやすくするため
にハードウェアブロックにて説明したが、一般コンピュ
ータのソフトウェアで実現しても本発明と同様な効果が
得られる。例えば、適応量子化回路や適応逆量子化回路
では2個の乗算回路を使用しているが、1個の乗算回路
だけでも、または加算回路だけでもソフトウェアにより
時分割で使用すれば本発明と同様な効果が得られる。
Although the present embodiment has been described using hardware blocks for easy understanding, the same effects as those of the present invention can be obtained even if the present invention is realized by software of a general computer. For example, an adaptive quantization circuit and an adaptive inverse quantization circuit use two multiplication circuits. However, if only one multiplication circuit or only an addition circuit is used in a time-division manner by software, it is the same as the present invention. Effects can be obtained.

【0067】[0067]

【発明の効果】本発明は以上のように構成され機能する
ので、これによると、無音出力の境界点での出力波形の
急激な変化を防ぐことができ、これがため、高周波雑音
を発生しなくなり聞き手に不快感を与えないという従来
にない優れた音声波形符号化装置を提供することができ
る。
Since the present invention is constructed and functions as described above, according to the present invention, it is possible to prevent an abrupt change in the output waveform at the boundary point of silence output, thereby preventing high frequency noise from being generated. It is possible to provide an unprecedented excellent speech waveform encoding device that does not cause discomfort to the listener.

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

【図1】本発明の第1の実施例を示すブロック図であ
る。
FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】図1に示されるバックワード方式における適応
量子化回路を詳細に説明したブロック図である。
FIG. 2 is a block diagram illustrating an adaptive quantization circuit in the backward scheme shown in FIG. 1 in detail.

【図3】図1における適応逆量子化回路を詳細に説明し
たブロック図である。
FIG. 3 is a block diagram illustrating an adaptive inverse quantization circuit in FIG. 1 in detail;

【図4】図1に示されるバックワード方式における復号
化回路を示すブロック図である。
FIG. 4 is a block diagram showing a decoding circuit in the backward scheme shown in FIG. 1;

【図5】図4における適応逆量子化回路を詳細に説明し
たブロック図である。
FIG. 5 is a block diagram illustrating an adaptive inverse quantization circuit in FIG. 4 in detail;

【図6】図2における量子化/係数テーブルの内容を示
した説明図である。
FIG. 6 is an explanatory diagram showing contents of a quantization / coefficient table in FIG. 2;

【図7】図3における逆量子化テーブルおよび係数テー
ブルの内容を示した説明図である。
FIG. 7 is an explanatory diagram showing contents of an inverse quantization table and a coefficient table in FIG. 3;

【図8】図1に示される第1の実施例における出力波形
図である。
FIG. 8 is an output waveform diagram in the first embodiment shown in FIG.

【図9】本発明の第2の実施例を示すブロック図であ
る。
FIG. 9 is a block diagram showing a second embodiment of the present invention.

【図10】図9のフォーワード方式における復号化回路
のブロック図である。
FIG. 10 is a block diagram of a decoding circuit in the forward system of FIG. 9;

【図11】図9に示される第2の実施例における出力波
形図である。
FIG. 11 is an output waveform diagram in the second embodiment shown in FIG. 9;

【図12】従来の無音出力機能を付加したバックワード
方式の符号化回路を示すブロック図である。
FIG. 12 is a block diagram showing a conventional encoding circuit of a backward type to which a silence output function is added.

【図13】図12に示される従来例における出力波形図
である。
FIG. 13 is an output waveform diagram in the conventional example shown in FIG.

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

11:減算回路 12:適応量子化回路 13:適応逆量子化回路 14:予測回路 15:加算回路 17:最小符号出力回路 18:選択回路 11: subtraction circuit 12: adaptive quantization circuit 13: adaptive inverse quantization circuit 14: prediction circuit 15: addition circuit 17: minimum code output circuit 18: selection circuit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G10L 19/00 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 7 , DB name) G10L 19/00

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 予測値を算出する予測回路と、入力され
たPCM符号から前記予測回路の出力を減算し,差分P
CM符号を算出する減算回路と、前記減算回路で算出さ
れた差分PCM符号を量子化値に変換する適応量子化回
路と、前記適応量子化回路からの量子化値を逆量子化す
る適応逆量子化回路と、前記適応逆量子化回路の出力と
前記予測回路の出力を加算する加算回路と、1より小さ
い量子化幅係数に対応し,かつ時間的に直前の逆量子化
値の符号と同じで,数値がそれ以下である値に対応する
量子化値を出力する最小符号出力回路とを備え、無音出
力指示信号に応じて前記適応量子化回路の出力と前記最
小符号出力回路の出力のいづれかを選択し前記適応逆量
子化回路および復号化回路へ出力する選択回路を装備し
たことを特徴とする音声波形符号化装置。
1. A prediction circuit for calculating a prediction value, and an output of the prediction circuit is subtracted from an input PCM code to obtain a difference P
A subtraction circuit for calculating a CM code; an adaptive quantization circuit for converting the differential PCM code calculated by the subtraction circuit into a quantization value; and an adaptive inverse quantization for inversely quantizing the quantization value from the adaptive quantization circuit. A quantization circuit, an addition circuit for adding the output of the adaptive inverse quantization circuit and the output of the prediction circuit, and a code corresponding to a quantization width coefficient smaller than 1 and having the same sign as the immediately preceding inverse quantization value. A minimum code output circuit that outputs a quantized value corresponding to a value whose numerical value is less than or equal to one of the output of the adaptive quantization circuit and the output of the minimum code output circuit in response to a silent output instruction signal. And an output circuit for selecting the adaptive inverse quantization circuit and the decoding circuit.
【請求項2】 予測値を算出する予測回路と、入力され
たPCM符号から前記予測回路の出力を減算し,差分P
CM符号を算出する減算回路と、無音出力指示信号に応
じて前記減算回路で算出された差分PCM符号を量子化
値と量子化幅係数に変換し復号化回路へ出力する適応量
子化回路と、前記適応量子化回路が出力する量子化値を
逆量子化する適応逆量子化回路と、前記適応逆量子化回
路の出力と前記予測回路の出力を加算し前記予測回路に
出力する加算回路とから構成されることを特徴とする音
声波形符号化装置。
2. A prediction circuit for calculating a prediction value, and an output of the prediction circuit is subtracted from an input PCM code to obtain a difference P
A subtraction circuit for calculating a CM code, an adaptive quantization circuit for converting the differential PCM code calculated by the subtraction circuit into a quantization value and a quantization width coefficient according to a silence output instruction signal, and outputting the result to a decoding circuit; An adaptive inverse quantization circuit that inversely quantizes the quantization value output by the adaptive quantization circuit; and an addition circuit that adds the output of the adaptive inverse quantization circuit and the output of the prediction circuit and outputs the result to the prediction circuit. An audio waveform encoding device characterized by being constituted.
JP35621191A 1991-12-24 1991-12-24 Speech waveform coding device Expired - Fee Related JP3147127B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35621191A JP3147127B2 (en) 1991-12-24 1991-12-24 Speech waveform coding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35621191A JP3147127B2 (en) 1991-12-24 1991-12-24 Speech waveform coding device

Publications (2)

Publication Number Publication Date
JPH05173598A JPH05173598A (en) 1993-07-13
JP3147127B2 true JP3147127B2 (en) 2001-03-19

Family

ID=18447895

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35621191A Expired - Fee Related JP3147127B2 (en) 1991-12-24 1991-12-24 Speech waveform coding device

Country Status (1)

Country Link
JP (1) JP3147127B2 (en)

Also Published As

Publication number Publication date
JPH05173598A (en) 1993-07-13

Similar Documents

Publication Publication Date Title
US5845243A (en) Method and apparatus for wavelet based data compression having adaptive bit rate control for compression of audio information
US5925146A (en) Reception data expander having noise reduced in generation of reception data error
JP2598159B2 (en) Audio signal processing device
KR930003281B1 (en) Apparatus for trasmitting digital signals
JPH10173541A (en) Compressed encoding and decoding system
JPH0969783A (en) Audio data encoding device
JP3147127B2 (en) Speech waveform coding device
JPH0573094B2 (en)
Boddie et al. Digital signal processor: Adaptive differential pulse-code-modulation coding
WO2004112256A1 (en) Speech encoding device
JPH01256278A (en) Prediction coding system
JP3200887B2 (en) Audio waveform decoding device
EP0798908B1 (en) Speech encoder/decoder with speech recording and reproduction functions
US6618700B1 (en) Speech coder output transformation method for reducing audible noise
JPH0715281A (en) Noise shaping device
JPH061903B2 (en) Signal transmission device
JPH061904B2 (en) Signal transmission device
JPH0642631B2 (en) Signal transmission device
JP3081264B2 (en) Voice detector
JP2809307B2 (en) Encoding device
JP3580906B2 (en) Voice decoding device
KR960003626B1 (en) Decoding method of transformed coded audio signal for people hard of hearing
Irvine et al. An improved hybrid companding delta modulator
JP3080702B2 (en) Inverse quantizer
JPS63289600A (en) Voice encoding system

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

LAPS Cancellation because of no payment of annual fees