JPH04171499A - Adaptive differential pcm decoder - Google Patents

Adaptive differential pcm decoder

Info

Publication number
JPH04171499A
JPH04171499A JP29741490A JP29741490A JPH04171499A JP H04171499 A JPH04171499 A JP H04171499A JP 29741490 A JP29741490 A JP 29741490A JP 29741490 A JP29741490 A JP 29741490A JP H04171499 A JPH04171499 A JP H04171499A
Authority
JP
Japan
Prior art keywords
register
value
signal
data
amplitude
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
JP29741490A
Other languages
Japanese (ja)
Other versions
JP2626236B2 (en
Inventor
Sukeyuki Tofuku
東福 祐之
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 JP29741490A priority Critical patent/JP2626236B2/en
Publication of JPH04171499A publication Critical patent/JPH04171499A/en
Application granted granted Critical
Publication of JP2626236B2 publication Critical patent/JP2626236B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To obviate large variation in amplitude absent in the original sound wave-form of decoded waveform by outputting a control signal associated with the generation of a carry signal or borrow signal to judge controllably whether or not a calculating output of an adder subtracter should be taken in by a register. CONSTITUTION:While amplitude data 103 and code data 104 are inputted to an adder-subtracter 6 to be outputted as calculating output 105, a gate control signal 106 formed by inverting a carry signal or borrow signal is outputted. The calculating output 105 is inputted to an X register 7, while a gate control signal 106 is sent to an AND circuit 10. A latch signal 107 for the X register 7 is also inputted to the AND circuit 10 and to the X register 7 only in the high level of the gate control signal 106 and DA converted in a DA converter 8 to be outputted as an analog signal 108. Thus, the generation of variation in amplitude absent in the original sound waveform of decoded wave form of ADPCM(Adaptive differential PCM) code is obviated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はADPCM復号器に間し、特に、音声合成の分
野において使用されるADPCM符号を復号するADP
CM復号器に関する。
Detailed Description of the Invention [Field of Industrial Application] The present invention relates to an ADPCM decoder, and particularly to an ADPCM decoder for decoding ADPCM codes used in the field of speech synthesis.
Regarding a CM decoder.

〔従来の技術〕[Conventional technology]

従来、音声合成の分野において使用されているADPC
M復号器は、第4図に示されるように、ADPCM符号
データ108をラッチするしレジスタ1と、Lレジスタ
1の値をデコードして量子化幅ポインタ110の移動量
を決めるデコーダ2と。
ADPC conventionally used in the field of speech synthesis
As shown in FIG. 4, the M decoder includes a register 1 that latches the ADPCM code data 108, and a decoder 2 that decodes the value of the L register 1 to determine the amount of movement of the quantization width pointer 110.

加減算器9と、加減算器9の出力を量子化幅ポインタ1
10の上限と下限の範囲内に抑制するリミッタ3と、量
子化幅ポインタ110の値をラッチするAレジスタ4と
、Lレジスタ1とAレジスタ4によりアドレスを選択さ
れ、次のサンプリング・ポイントの差分値を出力する差
分値データ・テーブルROM5と、前記差分値を順次累
積して得られる結果をラッチするXレジスタ7の値に、
差分値データ・チー−プルROM5の出方を加算または
減算して、次のサンプリング・ポイントの振幅値を演算
する加減算器6と、Xレジスタ7の出力をアナログ信号
に変換してアナログ信号115を出力するDA変換器8
とを備えて構成される。
The adder/subtracter 9 and the output of the adder/subtracter 9 are set to the quantization width pointer 1.
The limiter 3 suppresses the value within the upper and lower limits of 10, the A register 4 latches the value of the quantization width pointer 110, the address is selected by the L register 1 and the A register 4, and the difference of the next sampling point is selected. The difference value data table ROM 5 outputs the value, and the value of the X register 7 latches the result obtained by sequentially accumulating the difference values.
An adder/subtractor 6 which adds or subtracts the output of the differential value data cheaply ROM 5 to calculate the amplitude value of the next sampling point, and an analog signal 115 which converts the output of the X register 7 into an analog signal. DA converter 8 to output
It is composed of:

A D P CM (Adaptive differ
ential PC)4)方式とは、音声の隣接したサ
ンプリング間の相関の強さを利用したデータ圧縮方式で
、連続したサンプリング・ポイントにおける振幅値の差
を圧縮符号fヒする方式である。
ADPCM (Adaptive different)
The 4) method is a data compression method that utilizes the strength of the correlation between adjacent samplings of audio, and is a method in which the difference in amplitude values at consecutive sampling points is expressed as a compression code.

以下においては、ADPCM符号としては、正負の極性
を表わす1ビツトと、振幅を表わす3ピツ1への計4ビ
ット符号とし、量子化幅ポインタを3ビツトとして、現
在の量子化幅ポインタとADPCM符号の振幅データで
選択される差分値データを、ADPCM符号の極性ビッ
トの値により現在のサンプリング ポイントの振幅値に
加算または減算を行って、次のサンプリング ポイント
の振幅値を計算し、現在の量子化幅に予測係数を乗じた
値を、次のサンプリング・ポイントの量子化幅とする乗
算処理を行う代りに、予め乗算結果をROMに差分値デ
ータとしてテーブル化して入れておく構成について説明
する。
In the following, the ADPCM code is a 4-bit code consisting of 1 bit representing positive/negative polarity and 3 bits representing amplitude, and the quantization width pointer is assumed to be 3 bits, and the current quantization width pointer and ADPCM code are assumed to be 3 bits. The difference value data selected by the amplitude data of is added or subtracted from the amplitude value of the current sampling point according to the value of the polarity bit of the ADPCM code to calculate the amplitude value of the next sampling point, and the current quantization A configuration will be described in which instead of performing a multiplication process in which a value obtained by multiplying the width by a prediction coefficient is used as the quantization width of the next sampling point, the multiplication results are stored in advance in a ROM as a table as difference value data.

先ず、ADPCM符号の復号処理をする前に、Aレジス
タ4には初期値0を入力し、振幅値データを累積してゆ
く8ビツトのXレジスタ7には、出力波形の中点データ
80Hを入れておく。最初のサンプリング・ポイントに
おける振幅値を求めるには、L、レジスタ1f17)A
DPCM符号データ109と、Aレジスタ4の量子化幅
ポインタ110の値を差分値データテーブルROM5の
アドレスとして入力することにより、差分値データテー
ブルROM5の出力として、ADPCM符号の振幅デー
タと、現在の量子化幅により決められる最大8ビツトの
差分値の振幅データとを含む振幅データ111と、1ビ
ツトの正負の符号データ112とが得られる。
First, before decoding the ADPCM code, the initial value 0 is input to the A register 4, and the midpoint data 80H of the output waveform is input to the 8-bit X register 7, which accumulates amplitude value data. I'll keep it. To determine the amplitude value at the first sampling point, register L, register 1f17) A
By inputting the DPCM code data 109 and the value of the quantization width pointer 110 of the A register 4 as the address of the difference value data table ROM5, the amplitude data of the ADPCM code and the current quantum Amplitude data 111 including amplitude data of a maximum of 8 bits of difference value determined by the conversion width, and 1-bit positive/negative sign data 112 are obtained.

LレジスタlおよびAレジスタ4がらの久方値に対応す
る、差分値データテーブルROM5の振幅データの内容
(HEXデータ〉は、下記の表1に示されるとうりであ
る。なお、表1の差分値データの内容としては、Aレジ
スタ4の値を加算または減算することは、差分値データ
に予測係数を乗算することと等価であるものとしている
The contents of the amplitude data (HEX data) in the difference value data table ROM 5 corresponding to the long values of the L register 1 and the A register 4 are as shown in Table 1 below. Regarding the contents of the value data, it is assumed that adding or subtracting the value of the A register 4 is equivalent to multiplying the difference value data by a prediction coefficient.

正負の符号データ112の値により、Xレジスタ7と差
分値データテーブルROM5の出方の振幅データ111
とを、加減算器6において加算または減算を行い、その
結果の演算出力113をXレジスタ7にラッチして、D
A変換器8においてアナログ信号に変換して出方する。
The amplitude data 111 of the output of the X register 7 and the difference value data table ROM 5 is determined by the value of the positive/negative sign data 112.
are added or subtracted in the adder/subtractor 6, and the resulting calculation output 113 is latched in the X register 7, and D
The A converter 8 converts it into an analog signal and outputs it.

Xレジスタ7におけるラッチ信号114をロウレベルに
してXレジスタ7の値をラッチした後、ADPCM符号
データ109の振幅データ3ピツI・を、デコーダ2に
おいて下記の表2に示されるようにデコードし、デコー
ダ2の出力とAレジスタ4の値を加減算器9において加
算または減算して、リミッタ3において当該演算結果が
負になれば0をAレジスタ4に入力し、演算結果が8以
上の値になれば、7をAレジスタ4に入力する。
After setting the latch signal 114 in the X register 7 to low level and latching the value of the The output of 2 and the value of the A register 4 are added or subtracted in the adder/subtractor 9, and if the result of the operation is negative in the limiter 3, 0 is input to the A register 4, and if the result of the operation is a value of 8 or more, , 7 are input to the A register 4.

〔表2〕 このように、Aレジスタ4には、0から7までの値が入
力され、次のサンプリング・ポイントの予測係数を乗じ
た差分値データを選択する量子化幅ポインタ110とし
て用いられる。
[Table 2] In this way, values from 0 to 7 are input to the A register 4, and are used as the quantization width pointer 110 to select the difference value data multiplied by the prediction coefficient of the next sampling point.

以上説明したように、新たにADPCM符号データが入
力されるたびに、Lレジスタ1の値とAレジスタ4の値
とを、差分値データテーブルROM5のアドレスとして
差分値を選択し、Xレジスタ7に対して加算または減算
することにより、次のサンプリング・ポイントの振幅値
を求め、DA変換器8においてDA変換してアナログ信
号115を出力するとともに、Xレジスタ7の値をラッ
チした後に、Lレジスタ1の値をデコーダ2においてデ
コードした値を、Aレジスタ4に加算または減算して量
子化幅ポインタ110の値を更新するという動作を繰返
すことにより、ADPCM符号テータ1デーの復号化処
理が行われる。
As explained above, each time new ADPCM code data is input, the difference value is selected between the value of L register 1 and the value of A register 4 as the address of the difference value data table ROM5, and the value is stored in the X register 7. The amplitude value of the next sampling point is obtained by adding or subtracting from By repeating the operation of adding or subtracting the value decoded by the decoder 2 to the A register 4 and updating the value of the quantization width pointer 110, the decoding process of the ADPCM code data 1 data is performed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のADPCM復号器においては、第5図の
原音符号化データの波形図に示されるように、大振幅の
原音波形をサンプリングしてADPCM符号化を行う場
合において、サンプリング値S1に差分値Δ2を加算し
てサンプリング値S2を求めた後に、次のサンプリング
・ポイントを求める時、量子化幅ポインタの値が大きく
なっていると、差分値データの絶対値が大きく変化する
ようになり、ADPCM符号の振幅データとしてΔ、゛
とΔ3しか選べない場合が生じ、原音との誤差がΔ、°
よりもΔ3を選んだ方が小さくなるという結果となる。
In the above-mentioned conventional ADPCM decoder, as shown in the waveform diagram of original sound encoded data in FIG. After calculating the sampling value S2 by adding Δ2, when calculating the next sampling point, if the value of the quantization width pointer is large, the absolute value of the difference value data will change greatly, and the ADPCM There are cases where only Δ, ゛ and Δ3 can be selected as the amplitude data of the sign, and the error from the original sound is Δ, °
Choosing Δ3 results in a smaller value than Δ3.

原音波形との誤差を小さくするために、Δ、を選んでA
DPCM符号化しても、ADPCM符号としては、差分
値を圧縮したデータであるため、差分値を累積した振幅
データが最大値のFFHをオーバーしても、そのまま符
号化することは可能である。
In order to reduce the error with the original sound waveform, select Δ and
Even if DPCM encoding is performed, since the ADPCM code is data obtained by compressing the difference values, even if the amplitude data obtained by accumulating the difference values exceeds the maximum value FFH, it is possible to encode the data as is.

一方、サンプリング・ポイントで、ADPCM符号の振
幅データとしてΔ9°とΔ9しか選べない場合には、原
音との誤差はΔ9′よりもΔ9を選んだ方が小さくなる
。原音波形との誤差を小さくするためにΔ9を選んでA
DPCM符号化しても、差分値を累積した振幅データが
最小値のOよりも小さくなっても、そのまま符号化する
ことが可能である。
On the other hand, if only Δ9° and Δ9 can be selected as the amplitude data of the ADPCM code at the sampling point, the error with the original sound will be smaller if Δ9 is selected than Δ9'. In order to reduce the error from the original sound waveform, select Δ9 and select A.
Even with DPCM encoding, even if the amplitude data obtained by accumulating the difference values becomes smaller than the minimum value O, it is possible to encode it as is.

このように、第5図におけるSlがらStZまでの振幅
データを符号化したADPCM符号データを、第4図の
従来例の復号器により再生すると、第6図に示されるよ
うに、xlにΔ2を加算した値がX2となり、X2にΔ
、を加算すると加算値がFFHをオーバーするので、×
3はOに近い値となる。−方、X7からΔ8を減算した
値がX8になり、x8がらΔ9を減算するとボローが発
生して、減算値X9はFFHに近い値となり、xlがら
X12の部分の復号波形としては、X3とx9の振幅値
が原音と正反対の全く異なる値が発生して、復号波形に
原音波形にはない大きな振幅変化が生l二るという欠点
がある。
In this way, when the ADPCM code data obtained by encoding the amplitude data from Sl to StZ in FIG. 5 is reproduced by the conventional decoder in FIG. 4, as shown in FIG. The added value becomes X2, and Δ is added to X2.
, the added value exceeds FFH, so ×
3 is a value close to O. - On the other hand, the value obtained by subtracting Δ8 from X7 becomes X8, and when Δ9 is subtracted from x8, a borrow occurs, and the subtracted value X9 becomes a value close to FFH. There is a drawback that the amplitude value of x9 is completely different from the original sound, and the decoded waveform has a large amplitude change that is not present in the original sound waveform.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のADPCM復号器は、ADPCM符号データと
量子化幅ポインタの両者の値により選択される差分値を
、順次累積して得られるディジタル信号をアナログ信号
に変換して出力するとともに、前記ADPCM符号デー
タをデコードして、所定の量子化幅ポインタの値を順次
更新してゆくADPCM復号器において、現在時点にお
けるサンプリング点までの差分値を累積して保持してい
るレジスタと、前記レジスタに対して、次のサンプリン
グ点の差分値の加算または減算を含む演算出力を送出す
るとともに、加算値または減算値の特定値に対応して生
じるキャリー信号またはボロー信号の発生に関与する制
御信号を出力する加減算器と、前記制御信号を受けて、
前記レジスタによる、前記加減算器の演算出力の取込み
の可否を制御する手段と、を、少なくとも備えて構成さ
れる。
The ADPCM decoder of the present invention converts a digital signal obtained by sequentially accumulating difference values selected by the values of both ADPCM code data and a quantization width pointer into an analog signal, and outputs the analog signal. In an ADPCM decoder that decodes data and sequentially updates the value of a predetermined quantization width pointer, there is a register that accumulates and holds the difference value up to the current sampling point, and a register that stores the cumulative difference value up to the current sampling point. , an addition/subtraction operation that outputs a calculation output that includes addition or subtraction of the difference value of the next sampling point, and also outputs a control signal that is involved in generating a carry signal or borrow signal that occurs in response to a specific value of the addition or subtraction value. and receiving the control signal,
and means for controlling whether or not the register can take in the calculation output of the adder/subtractor.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。第1図
は、本発明の一実施例のブロック図である。第1図に示
されるように、本実施例は、Lレジスタ1と、デコーダ
2と、リミッタ3と、Aレジスタ4と、差分値データテ
ーブルROM5と、加減算器6と、Xレジスタ7と、D
A変換器8と、加減算器9と、AND回路10とを備え
て構成される。
Next, the present invention will be explained with reference to the drawings. FIG. 1 is a block diagram of one embodiment of the present invention. As shown in FIG. 1, this embodiment includes an L register 1, a decoder 2, a limiter 3, an A register 4, a difference value data table ROM 5, an adder/subtractor 6, an X register 7, and a D
It is configured to include an A converter 8, an adder/subtracter 9, and an AND circuit 10.

また、第2図は、原音波形符号化データの波形図であり
、第3図は、第2図に示される符号化データを、本発明
の前記実施例により復号処理した場合の波形図である。
Moreover, FIG. 2 is a waveform diagram of the original sound waveform encoded data, and FIG. 3 is a waveform diagram when the encoded data shown in FIG. 2 is decoded according to the embodiment of the present invention. .

第1図において、Lレジスタ1、デコーダ2、リミッタ
3、Aレジスタ4、差分値データテーブルROM5、加
減算器6、DA変換器8、および加減算器9を含む回路
系統の動作の大要については、前述の従来例の場合と同
様である。本発明の従来例と異なる点は、加減算器6の
機能による差異と、Xレジスタ7に入力されるラッチ信
号107が、加減算器6から出力されるレベル信号10
6を介して、AND回路10においてゲート制御される
ことである。
In FIG. 1, the outline of the operation of the circuit system including the L register 1, decoder 2, limiter 3, A register 4, difference value data table ROM 5, adder/subtractor 6, DA converter 8, and adder/subtractor 9 is as follows. This is the same as in the conventional example described above. The difference from the conventional example of the present invention is that the function of the adder/subtractor 6 is different, and the latch signal 107 input to the X register 7 is changed from the level signal 107 output from the adder/subtractor
6 and is gate-controlled in an AND circuit 10.

第1図において、Lレジスタ1によりラッチされたAD
PCM符号データ101は、デコーダ2および差分値デ
ータテーブルROM 5の双方に入力される。デコーダ
2においては、ADPCM符号データ101をデコード
して量子化幅ポインタの移動量が決められる。デコーダ
2の出力は、加減算器9において、量子化幅ポインタの
値をラッチしているAレジスタ4の出力との加減算が行
われ、その加減算結果は、リミッタ3に入力されて量子
化幅ポインタの上限と下限の範囲内に制限され、Aレジ
スタ4に入力される。
In FIG. 1, AD latched by L register 1
PCM code data 101 is input to both the decoder 2 and the difference value data table ROM 5. In the decoder 2, the amount of movement of the quantization width pointer is determined by decoding the ADPCM code data 101. The output of the decoder 2 is added to or subtracted from the output of the A register 4 which latches the value of the quantization width pointer in the adder/subtractor 9, and the result of the addition/subtraction is input to the limiter 3 and the value of the quantization width pointer is It is limited within the upper and lower limits and is input to the A register 4.

差分値データテーブルROM5においては、Lレジスタ
1およびAレジスタ4からの入力値によりアドレスが選
択され、次のサンプリングボンインタの差分値の振幅デ
ータ103と符号データ104とを出力する。これらの
振幅データ103と符号データ104は加減算器6に入
力され、Xレジスタ7から入力される差分値の累積結果
との加減算処理が行われて、次のサンプリングポイント
の振幅値が演算されて、演算出力105として出力され
るとともに、キャリー信号またはボロー信号を反転して
生成されるゲート制御信号106が出力される。
In the difference value data table ROM 5, an address is selected by the input values from the L register 1 and the A register 4, and amplitude data 103 and code data 104 of the difference value of the next sampling pointer are output. These amplitude data 103 and code data 104 are input to an adder/subtractor 6, where addition and subtraction processing is performed with the cumulative result of the difference value input from the X register 7, and the amplitude value of the next sampling point is calculated. A gate control signal 106 generated by inverting a carry signal or a borrow signal is output as well as a calculation output 105.

この演算出力105はXレジスタ7に入力されるととも
に、ゲート制御信号106はAND回路10に送られる
。AND回路10に対しては、Xレジスタ7に対するラ
ッチ信号107も入力されており、ラッチ信号107は
、ゲート制御信号106がハイレベルの時においてのみ
Xレジスタ7に入力される。
This calculation output 105 is input to the X register 7, and the gate control signal 106 is sent to the AND circuit 10. A latch signal 107 for the X register 7 is also input to the AND circuit 10, and the latch signal 107 is input to the X register 7 only when the gate control signal 106 is at a high level.

Xレジスタ7のディジタル出力はDA変換器8において
DA変換され、アナログ信号108として出力される。
The digital output of the X register 7 is DA-converted by a DA converter 8 and output as an analog signal 108.

第2図に示される大振幅の原音波形をサンプリングして
ADPCM符号化する場合に、サンプリング値S1に差
分値Δ2を加算してサンプリング値S2を求めた後、次
の差分値として、原音波形との誤差が最小となるΔ3を
選択してADPCM符号化すると、差分値を累積したS
3の振幅は最大値のFFHをオーバーすることになる。
When sampling and ADPCM encoding the large-amplitude original sound waveform shown in Fig. 2, after obtaining the sampling value S2 by adding the difference value Δ2 to the sampling value S1, the next difference value is the original sound waveform. If Δ3 with the minimum error is selected and ADPCM encoded, S
The amplitude of 3 exceeds the maximum value of FFH.

一方、サンプリング値S7に差分値Δ8を減算してサン
プリング値S8を求めた後に、次の差分値として、原音
波形との誤差が最小となるΔ、を選択してADPCM符
号化すると、差分値を累積したS、の振幅は、最小値の
0以下となる。
On the other hand, after subtracting the difference value Δ8 from the sampling value S7 to obtain the sampling value S8, if Δ, which minimizes the error from the original sound waveform, is selected as the next difference value and ADPCM encoding is performed, the difference value is The accumulated amplitude of S is less than or equal to the minimum value of 0.

このような第2図に示されるSlからS12までの振幅
データを符号化したADPCM符号データを第1図の本
発明の実施例による復号器により再生すると、第3図に
示されるように、XlにΔ2を加算した値がX2になり
、X2にΔ、を加算すると加算値がFFHをオーバーす
るため、加減算器6においてキャリー信号が発生されて
、加減算器6から出力されるゲート制御信号106はロ
ーレベルになる。この場合には、前述のように、AND
回路10においてラッチ信号107がゲートオフされ、
Xレジスタ7には入力されない。従って、加減算器6に
おいてFFHをオーバーした加算出力は、Xレジスタ7
においてラッチされることがなく、上記のX、はx2と
同じ振幅値に保持される。また、XlからΔ4を減算し
た場合においても、加減算器6においてボロー信号が発
生されないため、ゲート制御信号106はハイレベルと
なる。従って、ラッチ信号107はAND回路10を介
してXレジスタ7に入力され、加減算器6における減算
結果X4が、Xレジスタ7にラッチされる通常の動作が
行われる。
When the ADPCM code data obtained by encoding the amplitude data from Sl to S12 shown in FIG. 2 is reproduced by the decoder according to the embodiment of the present invention shown in FIG. 1, as shown in FIG. The value obtained by adding Δ2 to X2 becomes X2, and since the added value exceeds FFH when Δ is added to becomes low level. In this case, as mentioned above, AND
Latch signal 107 is gated off in circuit 10;
It is not input to the X register 7. Therefore, the addition output that exceeds FFH in the adder/subtractor 6 is
is not latched, and the above-mentioned X is held at the same amplitude value as x2. Further, even when Δ4 is subtracted from Xl, since no borrow signal is generated in the adder/subtractor 6, the gate control signal 106 becomes high level. Therefore, the latch signal 107 is input to the X register 7 via the AND circuit 10, and the normal operation in which the subtraction result X4 in the adder/subtractor 6 is latched into the X register 7 is performed.

次に、X7からΔ8を減算した値がX8になり、x8か
らΔ9を減算すると減算値がO以下になるため、加減算
器6においてボロー信号が発生され、加減算器6から出
力されるゲート制御信号106はローレベルになる。ゲ
ート制御信号106がローレベルになると、ラッチ信号
107はAND回路10によりゲートオフされ、Xレジ
スタ7には入力されない、従って、加減算器6において
減算出力が0以下となった場合には、その減算出力はX
レジスタ7によりラッチされず、X9はX8と同じ振幅
値に保持される。また、X9にΔtoを加算した場合に
おいてもキャリー信号は発生されず、従って、ゲート制
御信号106はハイレベルとなり、ラッチ信号107を
介して、加減算器6の加算結果x0゜がXレジスタフに
ラッチされる通常の動作が行われる。
Next, the value obtained by subtracting Δ8 from X7 becomes X8, and since the subtracted value becomes less than O when Δ9 is subtracted from x8, a borrow signal is generated in the adder/subtractor 6, and a gate control signal is output from the adder/subtractor 6. 106 becomes low level. When the gate control signal 106 becomes low level, the latch signal 107 is gated off by the AND circuit 10 and is not input to the X register 7. Therefore, when the subtraction output in the adder/subtractor 6 becomes 0 or less, the subtraction output is X
It is not latched by register 7, and X9 is held at the same amplitude value as X8. Further, even when Δto is added to X9, a carry signal is not generated, so the gate control signal 106 becomes high level, and the addition result x0° of the adder/subtractor 6 is latched into the X register via the latch signal 107. Normal operation is performed.

〔発明の効果〕 以上説明したように、本発明は、ADPCM符号の復号
化の過程において、差分値を順次累積した結果をラッチ
するXレジスタに対応して、次のサンプリングポイント
の差分値を加減算し、その振幅値を演算する加減算器に
おいて、当該加減算結果に応じてキャリー信号またはボ
ロー信号が発生された時点においては、前記Xレジスタ
に対するラッチ信号を停止し、Xレジスタによる当該加
減算結果の取込みを阻止することにより、ADPCM符
号の復号波形に、原音波形にはない振幅変化が発生する
という欠陥を排除することができるという効果がある。
[Effects of the Invention] As explained above, the present invention adds or subtracts the difference value of the next sampling point in the process of decoding an ADPCM code, corresponding to the X register that latches the result of sequentially accumulating the difference values. In the adder/subtracter that calculates the amplitude value, when a carry signal or a borrow signal is generated according to the result of the addition/subtraction, the latch signal to the X register is stopped, and the X register stops taking in the result of the addition/subtraction. This has the effect of eliminating the defect that amplitude changes that do not exist in the original sound waveform occur in the decoded waveform of the ADPCM code.

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

第1図は本発明の一実施例を示すブロック図、第2図は
、前記一実施例に対応する原音波形符号化データの波形
図、第3図は、前記一実施例による復号時合成データを
示す図、第4図は従来例を示すブロック図、第5図は、
前記従来例に対応する原音波形符号化データの波形図、
第6図は、前記従来例による復号時合成データを示す図
である。 図において、1・・・・・・Lレジスタ、2・・−・・
・デコーダ、3・・・・・・リミッタ、4・・・・・・
Aレジスタ、5・・・・・・差分値データテーブルRO
M、6,9・・・・・・加減算器、7・・・・・・Xレ
ジスタ、8・・・・・・DA変換器、IO・・・・・・
AND回路。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a waveform diagram of original sound waveform encoded data corresponding to the embodiment, and FIG. 3 is composite data during decoding according to the embodiment. 4 is a block diagram showing a conventional example, and FIG. 5 is a block diagram showing a conventional example.
a waveform diagram of original sound waveform encoded data corresponding to the conventional example;
FIG. 6 is a diagram showing composite data upon decoding according to the conventional example. In the figure, 1... L register, 2...
・Decoder, 3...Limiter, 4...
A register, 5...Difference value data table RO
M, 6, 9...Adder/subtractor, 7...X register, 8...DA converter, IO...
AND circuit.

Claims (1)

【特許請求の範囲】  ADPCM符号データと量子化幅ポインタの両者の値
により選択される差分値を、順次累積して得られるディ
ジタル信号をアナログ信号に変換して出力するとともに
、前記ADPCM符号データをデコードして、所定の量
子化幅ポインタの値を順次更新してゆくADPCM復号
器において、現在時点におけるサンプリング点までの差
分値を累積して保持しているレジスタと、 前記レジスタに対して、次のサンプリング点の差分値の
加算または減算を含む演算出力を送出するとともに、加
算値または減算値の特定値に対応して生じるキャリー信
号またはボロー信号の発生に関与する制御信号を出力す
る加減算器と、前記制御信号を受けて、前記レジスタに
よる、前記加減算器の演算出力の取込みの可否を制御す
る手段と、 を、少なくとも備えることを特徴とするADPCM復号
器。
[Claims] A digital signal obtained by sequentially accumulating difference values selected by the values of both ADPCM code data and a quantization width pointer is converted into an analog signal and outputted, and the ADPCM code data is In an ADPCM decoder that decodes and sequentially updates the value of a predetermined quantization width pointer, there is a register that accumulates and holds the difference value up to the current sampling point, and the following for the register: an adder/subtractor that outputs a calculation output including addition or subtraction of a difference value between sampling points, and outputs a control signal involved in generating a carry signal or borrow signal that occurs in response to a specific value of the addition value or subtraction value; An ADPCM decoder comprising at least the following: , means for receiving the control signal and controlling whether or not the register can take in the calculation output of the adder/subtractor.
JP29741490A 1990-11-02 1990-11-02 ADPCM decoder Expired - Lifetime JP2626236B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29741490A JP2626236B2 (en) 1990-11-02 1990-11-02 ADPCM decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29741490A JP2626236B2 (en) 1990-11-02 1990-11-02 ADPCM decoder

Publications (2)

Publication Number Publication Date
JPH04171499A true JPH04171499A (en) 1992-06-18
JP2626236B2 JP2626236B2 (en) 1997-07-02

Family

ID=17846200

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29741490A Expired - Lifetime JP2626236B2 (en) 1990-11-02 1990-11-02 ADPCM decoder

Country Status (1)

Country Link
JP (1) JP2626236B2 (en)

Also Published As

Publication number Publication date
JP2626236B2 (en) 1997-07-02

Similar Documents

Publication Publication Date Title
JP3339335B2 (en) Compression encoding / decoding method
JPWO2004098066A1 (en) Floating-point format digital signal lossless encoding method, decoding method, each apparatus, and each program
KR20120096541A (en) Method, system, and apparatus for compression or decompression of digital signals
JPS6031325A (en) System and circuit of forecast stop adpcm coding
WO1998037636A1 (en) Voice encoding method
JPH07199996A (en) Device and method for waveform data encoding, decoding device for waveform data, and encoding and decoding device for waveform data
JPH04171499A (en) Adaptive differential pcm decoder
JP3136797B2 (en) Sound data processing method and sound data processing device
JPS6031326A (en) Method and apparatus for coding and decoding dpcm
JPH0715281A (en) Noise shaping device
JPS5917438B2 (en) Spectral parameter encoding method and speech synthesis device
JP3008668B2 (en) ADPCM decoder
JP3200875B2 (en) ADPCM decoder
JPH01501434A (en) Reversible compression method and device for information carrying symbols
JP2617207B2 (en) Adaptive differential pulse code modulation encoding / decoding device
JPS5914760B2 (en) ADPCM regenerator
JP2848610B2 (en) Voice analysis and synthesis device
JP2623891B2 (en) Data compression apparatus and method
JPH0654874B2 (en) Predictive coding device
JPS6058614B2 (en) DPCM-PCM converter
JPS5917439B2 (en) Differential encoding method for spectral parameters
JPS6356020A (en) Compression decoding device
JPH0646805B2 (en) Amplitude adaptive vector quantizer
JPS59113495A (en) Envelope controller
JPH043695B2 (en)