JPH0969266A - Method and apparatus for correcting sound - Google Patents

Method and apparatus for correcting sound

Info

Publication number
JPH0969266A
JPH0969266A JP22393495A JP22393495A JPH0969266A JP H0969266 A JPH0969266 A JP H0969266A JP 22393495 A JP22393495 A JP 22393495A JP 22393495 A JP22393495 A JP 22393495A JP H0969266 A JPH0969266 A JP H0969266A
Authority
JP
Japan
Prior art keywords
data
error
frame
digital signal
coded data
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.)
Pending
Application number
JP22393495A
Other languages
Japanese (ja)
Inventor
Susumu Kanba
進 神庭
Masaichiro Maeda
雅一郎 前田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP22393495A priority Critical patent/JPH0969266A/en
Publication of JPH0969266A publication Critical patent/JPH0969266A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a method or an apparatus for correcting and reproducing audio signals or sound signals by means of a relatively easy means in the case of decoding codes containing errors, with a small degree of deterioration. SOLUTION: Error detection data of each frame which are detected by an error detector 111 are stored in an error detection data buffer 104 and a coding data buffer 102. While an error is detected in coding data, a data-discarding signal is fed to the buffers 102, 104 by a switching device 109 to continue discarding of the data. When an error comes not to be detected in the coding data, the switching device 109 switches a switch 108 to feed the coding data to a decoder 112. When a soundless section is detected in the coding data by a power operator 105 and a soundless section detector 106, the switching device 109 switches the switch 8 to the soundless side, so that the soundless coding data are sent to the decoder 112.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、広帯域のいわゆる
オーディオ信号または電話帯域の音声信号の符号化復号
化器の復号化技術に関し、特に符号化データに誤りが生
じた場合のデータ補間に特徴がある音声補正方法及びそ
の装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a decoding technology of a coding / decoding device for a wide band so-called audio signal or a telephone band voice signal, and is particularly characterized in data interpolation when an error occurs in coded data. A certain audio correction method and apparatus.

【0002】[0002]

【従来の技術】オーディオ信号または音声信号をPCM
によりディジタル信号に変換し、そのディジタル信号を
データ量圧縮してまたは非圧縮で伝送または蓄積するた
めの符号化復号化技術が確立され、各分野で使用されて
いる。この符号化復号化技術では、符号化器を通して符
号化データが生成され、この符号化データは、伝送系の
場合は伝送路を介して、蓄積系の場合はディスクやテー
プ等の蓄積用メディアを介して復号化器に転送される。
2. Description of the Related Art PCM for audio signals or voice signals
A coding / decoding technique has been established for converting the digital signal into a digital signal and transmitting or accumulating the digital signal by compressing or compressing the data amount, and is used in each field. In this encoding / decoding technology, encoded data is generated through an encoder, and this encoded data is transmitted via a transmission line in the case of a transmission system and to a storage medium such as a disk or tape in the case of a storage system. To the decoder via.

【0003】ところで、様々な要因で符号化データに誤
りが生じることがあり、通信系では主として伝送路にお
いて、蓄積系は磁気や光を用いた蓄積用メディアからの
読み込み時に符号化データにおいて発生することがあ
る。これらの誤りは発生の頻度がある程度以下であれば
誤り訂正符号を付加することにより完全に修復すること
ができる。しかし、誤りが多発した時は完全に修復する
ことは不可能となる。また、蓄積系等では誤りの発生す
る可能性が小さいために符号化データに誤り訂正符号を
付加しないことがある。
By the way, an error may occur in encoded data due to various factors. In a communication system, the encoded data mainly occurs in a transmission line, and a storage system occurs in the encoded data when reading from a storage medium using magnetism or light. Sometimes. These errors can be completely repaired by adding an error correction code if the frequency of occurrence is below a certain level. However, when many mistakes occur, it is impossible to completely repair it. In addition, an error correction code may not be added to the coded data in the storage system because the possibility of an error occurring is small.

【0004】符号化データに誤りが存在しているかを知
るために、すなわち誤り検出のために、符号化データを
フレームに区切り、各フレームに対し誤り検出符号によ
り誤り検出を行うようにすることができる。そして、誤
りが検出された場合、そのフレームに補間を行うことに
よりオーディオ信号または音声信号を再生する方法が一
般的に採られている。
In order to know whether or not there is an error in the coded data, that is, in order to detect an error, it is possible to divide the coded data into frames and perform error detection for each frame using an error detection code. it can. Then, when an error is detected, a method of reproducing an audio signal or a voice signal by interpolating the frame is generally adopted.

【0005】その補間の方法として、ミュート(無音
化、音量の絞り込み)やリピート、内挿を行う方法が知
られている。補間の方法の1つであるリピートは、ある
フレームで誤りが検出された場合、その直前のフレーム
のパラメータ又はPCM波形を繰り返し使用する方法で
あり、定常的な信号である場合に対して有効である。こ
こで、定常的であるとは、その信号が周期的或いは信号
の波形は雑音的であるが、スペクトラムの概形の時間変
化が小さいことを指している。補間の方法の他の1つで
ある内挿は、あるフレームで誤りが検出された場合、そ
の前後のフレームからその誤りが検出されたフレームの
波形やパラメータの値を予測する方法であり、信号が定
常的または非定常であるがフレームの長さに比べ緩やか
に変化している場合に有効である。
As a method of the interpolation, a method of performing mute (silence suppression, volume reduction), repeat, and interpolation is known. Repeat, which is one of the interpolation methods, is a method of repeatedly using the parameter or PCM waveform of the immediately preceding frame when an error is detected in a certain frame, and is effective for the case of a stationary signal. is there. Here, the term "stationary" means that the signal is periodic or the waveform of the signal is noisy, but the time variation of the approximate shape of the spectrum is small. Interpolation, which is another method of interpolation, is a method of predicting a waveform or a parameter value of a frame in which an error is detected from a frame before and after an error is detected in a frame when a signal is detected. It is effective when is constant or non-stationary but changes gradually compared to the frame length.

【0006】これらの方法は、いずれも対象としている
オーディオ信号または音声信号の性質が定常的或いは準
定常的であることが前提である。従って、非定常な信号
にこの補間法を用いると繰り返しによって生じる発振音
状の異音やパラメータ予測の失敗による不自然な音の変
化を引き起こし、主観的な品質が低下する。
In all of these methods, it is premised that the target audio signal or voice signal is stationary or quasi-stationary in nature. Therefore, when this interpolation method is applied to a non-stationary signal, an oscillating sound-like abnormal sound caused by repetition and an unnatural change in sound due to a failure in parameter prediction are caused, and subjective quality is deteriorated.

【0007】或いは、誤りが生じた時に符号を再送する
ようにすれば必ず無誤りの状態で再生することができる
が、その方法は遅延が大きくなりがちになるために、用
途は限られてくる。
Alternatively, if a code is retransmitted when an error occurs, it is possible to reproduce without error, but the method is limited in its application because the delay tends to be large. .

【0008】[0008]

【発明が解決しようとする課題】このような技術上の困
難は失われたフレームの信号を品質の低下を抑えつつ推
定しようとすることにある。本発明は誤りを含む符号を
復号する際に比較的容易な手段でかつ小さな劣化でオー
ディオ信号または音声信号を補正して再生する方法また
は装置を提供することを目的とする。
The technical difficulty is to try to estimate the signal of the lost frame while suppressing the deterioration of quality. It is an object of the present invention to provide a method or apparatus for correcting and reproducing an audio signal or a voice signal with a relatively easy means when decoding a code containing an error and with a small deterioration.

【0009】[0009]

【課題を解決するための手段】本願請求項1の発明にか
かる音声補正方法は、オーディオ信号または音声信号を
ディジタル信号に変換し符号化することによって得た符
号化データを復号化して得たディジタル信号を再生する
のに用いられる音声補正方法であって、符号化データ又
は符号化データを復号化したディジタル信号をフレーム
毎に区切って、符号化データをフレーム毎に誤り検出を
し、符号化データ又は復号化したディジタル信号と、誤
り検出で検出された誤り検出符号とをフレーム毎に複数
のフレーム分格納し、格納されたフレームに誤りが検出
された時には当該フレームを破棄させ、格納されたフレ
ームのうち無誤りのものを続いて出力させ、フレームを
破棄した際に生じる時間的なずれを補間し、フレームの
補間をした符号化データ又は前記復号化したディジタル
信号を与える。
According to a first aspect of the present invention, there is provided a voice correction method, wherein a digital signal obtained by decoding encoded data obtained by converting an audio signal or a voice signal into a digital signal and encoding the digital signal. A voice correction method used for reproducing a signal, wherein encoded data or a digital signal obtained by decoding encoded data is divided into frames, and the encoded data is subjected to error detection in each frame to obtain encoded data. Alternatively, the decoded digital signal and the error detection code detected by the error detection are stored for each frame for a plurality of frames. When an error is detected in the stored frame, the frame is discarded and the stored frame is stored. Of these, the error-free ones are output next, the time shift that occurs when the frame is discarded is interpolated, and the frame is interpolated Give over data or digital signals mentioned above decoding.

【0010】本願請求項2の発明にかかる音声補正装置
は、オーディオ信号または音声信号をディジタル信号に
変換し符号化することによって得た符号化データを復号
化して得たディジタル信号を再生するのに用いられる音
声補正装置であって、符号化データ又は符号化データを
復号化したディジタル信号をフレーム毎に区切って、符
号化データをフレーム毎に誤りを検出する誤り検出器
と、符号化データ又は復号化したディジタル信号と、誤
り検出器で検出された誤り検出符号とをフレーム毎に複
数のフレーム分格納するためのバッファと、バッファに
格納されたフレームに誤りが検出された時には当該フレ
ームをバッファから破棄させ、バッファから格納された
フレームのうち無誤りのものを続いて出力させるための
切り替え器と、フレームを破棄した際に生じる時間的な
ずれを補間し、フレームの補間をした符号化データ又は
復号化したディジタル信号を与えるための補間手段と、
を有する。
The audio correction apparatus according to the second aspect of the present invention reproduces a digital signal obtained by decoding encoded data obtained by converting an audio signal or an audio signal into a digital signal and encoding the digital signal. An audio correction device used, wherein an encoded data or a digital signal obtained by decoding the encoded data is divided into frames, and an error detector that detects an error in the encoded data in each frame, and the encoded data or the decoding A buffer for storing the converted digital signal and the error detection code detected by the error detector for a plurality of frames for each frame, and when an error is detected in the frame stored in the buffer, the frame is removed from the buffer. A switch for discarding and outputting the error-free frames stored in the buffer subsequently, and a frame Interpolating time lag that occurs when the discards arm, and interpolation means for providing a digital signal encoded data or decoded to the interpolation frame,
Having.

【0011】本願請求項3の発明にかかる音声補正装置
は、請求項2の構成に加えて、符号化データ又は復号化
したディジタル信号のうち無誤りのものを格納するため
のデータバッファをさらに有し、バッファが空であった
場合、前記補間手段は、前記データバッファに格納され
た前記符号化データ又は前記復号化したディジタル信号
を選択して与えることを特徴とする。
According to the invention of claim 3 of the present application, in addition to the configuration of claim 2, a voice correction device further has a data buffer for storing an error-free encoded data or a decoded digital signal. However, when the buffer is empty, the interpolation means selects and gives the encoded data or the decoded digital signal stored in the data buffer.

【0012】本願請求項4の発明にかかる音声補正装置
は、請求項2の構成に加えて、誤り検出器によって誤り
検出された符号化データを復号化する復号化器を有し、
復号化器は、符号化データを復号化して得たディジタル
信号をバッファに与える事を特徴とする。
According to the invention of claim 4 of the present application, in addition to the structure of claim 2, the speech correction apparatus has a decoder for decoding the coded data in which the error is detected by the error detector,
The decoder is characterized by giving a digital signal obtained by decoding encoded data to a buffer.

【0013】本願請求項5の発明にかかる音声補正装置
は、請求項2の構成に加えて、補間手段によってフレー
ムの補間をした符号化データを復号化する復号化器を有
し、復号化器は、符号化データを復号化して得たディジ
タル信号を出力する事を特徴とする。
According to the invention of claim 5 of the present application, in addition to the structure of claim 2, the speech correction apparatus has a decoder for decoding the coded data in which the frame is interpolated by the interpolating means. Is characterized by outputting a digital signal obtained by decoding encoded data.

【0014】本願請求項6の発明にかかる音声補正装置
は、請求項2の構成に加えて、補間手段は、符号化デー
タ又は復号化したディジタル信号に所定のレベルと比較
して無音区間であるかを検出し、無音区間を検出したと
きに破棄したフレームの数だけ所定のデータを符号化デ
ータ又は復号化したディジタル信号に挿入して、フレー
ムの補間をする事を特徴とする。
According to a sixth aspect of the present invention, in addition to the configuration of the second aspect, the interpolating means compares the coded data or the decoded digital signal with a predetermined level in a silent section. It is characterized in that predetermined data is inserted into coded data or a decoded digital signal by the number of frames which are discarded when a silent section is detected, and frames are interpolated.

【0015】本願請求項7の発明にかかる音声補正装置
は、請求項6の構成に加えて、補間手段は、符号化デー
タ又は復号化したディジタル信号に所定のレベルと比較
して無音区間であるかを検出する無音区間検出器と、無
音区間を検出しないときには、バッファに格納された符
号化データ又は復号化したディジタル信号を選択し、無
音区間を検出したときには、破棄したフレームの数だけ
所定のデータを選択するスイッチと、を含んで構成され
ている事を特徴とする。
According to a seventh aspect of the present invention, in addition to the configuration of the sixth aspect, the interpolating means compares the coded data or the decoded digital signal with a predetermined level in a silent section. A silent section detector that detects whether or not, when the silent section is not detected, the coded data stored in the buffer or the decoded digital signal is selected, and when the silent section is detected, a predetermined number of discarded frames is determined. It is characterized in that it is configured to include a switch for selecting data.

【0016】本願請求項8の発明にかかる音声補正装置
は、請求項6又は7の構成に加えて、所定のデータは、
無音区間と同じデータ、無音区間と判定されたフレーム
の符号化データ、特定のサンプル値のいずれかであり、
複数フレームにわたって所定のデータを挿入するとき
は、所定のデータを繰り返し使用する、または、所定の
データの値を変化させてパワーを減少させるようにして
繰り返し使用する事を特徴とする。
In the voice correction device according to the invention of claim 8 of the present application, in addition to the configuration of claim 6 or 7, the predetermined data is
Either the same data as the silent section, the encoded data of the frame determined to be the silent section, or a specific sample value,
When inserting the predetermined data over a plurality of frames, it is characterized in that the predetermined data is repeatedly used, or the value of the predetermined data is changed to reduce the power and then repeatedly used.

【0017】本願請求項9の発明にかかる音声補正装置
は、請求項6の構成に加えて、補間手段は、破棄したフ
レームの数だけ符号化データ又は復号化したディジタル
信号を所定のフレーム数にわたって伸長することによっ
て、フレームの補間をする事を特徴とする。
According to the ninth aspect of the present invention, in addition to the configuration of the sixth aspect, the interpolating means has a predetermined number of frames of coded data or decoded digital signals for the number of discarded frames. It is characterized by interpolating a frame by expanding it.

【0018】本願発明にかかる音声補正装置によれば、
符号化データ又は前記符号化データを復号化したディジ
タル信号をフレーム毎に誤り検出をすることによって、
誤り検出された場合は、そのフレームは廃棄され、無誤
りのものが続いて出力される。このように誤り検出され
たフレームについては、復号、再生は行われないが、直
ちに誤りのないフレームの音を続けるため音が途切れる
ことはない。そのため、補間の失敗が生じることがな
く、異音の発生を回避することができる。
According to the voice correction device of the present invention,
By performing error detection for each frame of encoded data or a digital signal obtained by decoding the encoded data,
If an error is detected, the frame is discarded, and an error-free one is subsequently output. The frame in which the error is detected in this way is not decoded or reproduced, but the sound of the frame having no error is immediately continued, so that the sound is not interrupted. Therefore, the occurrence of abnormal noise can be avoided without causing a failure in interpolation.

【0019】誤りのないフレームを続いて出力すること
により、誤りが生じなかった場合に対し、時間的なずれ
が生じるのであるが、補間手段のひとつの方法として、
破棄したフレームの数だけ所定のデータを出力すること
により、自然に近い形で補償することができる。また、
補間手段のもうひとつの方法として、破棄したフレーム
の数だけ符号化データ又は復号化したディジタル信号を
所定のフレーム数にわたって伸長するようにして、(知
覚されない程度にフレーム長を伸張することで補償する
こともできる。
By outputting the error-free frames successively, there is a time lag with respect to the case where no error occurs, but as one method of the interpolation means,
By outputting predetermined data for the number of discarded frames, it is possible to perform compensation in a form close to natural. Also,
As another method of the interpolating means, the coded data or the decoded digital signal is expanded over a predetermined number of frames by the number of discarded frames (compensation is performed by expanding the frame length to the extent not perceivable). You can also

【0020】また、符号化データ又は復号化したディジ
タル信号のうち無誤りのものを格納するためのデータバ
ッファをさらに有することにより、バッファが空になっ
た場合でも従来どうりの補間ができるようになる。
Further, by further including a data buffer for storing an error-free encoded data or a decoded digital signal, interpolation can be performed as in the conventional case even when the buffer becomes empty. Become.

【0021】[0021]

【発明の実施の形態】本発明の音声補正装置は、オーデ
ィオまたは音声の符号化復号化装置の復号化側において
用いられる装置であって、オーディオ信号または音声信
号をディジタル信号に変換し、ディジタル信号をデータ
量圧縮または非圧縮で伝送または蓄積するために符号化
装置によって符号化データを生成し、符号化データを復
号化装置によってディジタル信号を再生する系に用いら
れるものである。そして、誤り検出されたフレームの復
号化を停止して直ちに最新の誤りのないフレームの復号
化を行う、或いは誤り検出されたフレームも含めて一旦
復号化を行い再生音の中の誤り検出されたフレームに相
当する部分を廃棄して直ちに誤りのないフレーム部分を
続けるようにした音を出力する処理を行い、その後で必
要に応じて、無音区間を検出しそれを延長する、または
フレーム長を伸張することを特徴としている。
BEST MODE FOR CARRYING OUT THE INVENTION A voice correction device of the present invention is a device used on the decoding side of an audio / voice encoding / decoding device, which converts an audio signal or a voice signal into a digital signal, and outputs the digital signal. Is used in a system in which encoded data is generated by an encoding device in order to transmit or store the compressed or uncompressed data amount, and the encoded data is reproduced by a decoding device. Then, the decoding of the frame in which the error is detected is stopped and the frame without the latest error is immediately decoded, or the decoding is performed once including the frame in which the error is detected, and the error in the reproduced sound is detected. The part corresponding to the frame is discarded and the sound is output immediately after continuing the error-free frame part, and then a silent interval is detected and extended, or the frame length is extended, if necessary. It is characterized by doing.

【0022】本発明の実施例を図面を参照して説明す
る。図1は、本発明の第1の実施例にかかる音声補正装
置を示したものであり、その機能をブロック図であらわ
したものである。
Embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows an audio correction apparatus according to a first embodiment of the present invention, and shows its function in a block diagram.

【0023】誤り検出器111は、復号化のために入力
端子から入力された符号化データから誤りを検出するた
めのものであり、符号化データの誤りの有無をフレーム
毎に1ビットの誤り検出符号である誤り検出情報103
として出力する。
The error detector 111 is for detecting an error from the coded data input from the input terminal for decoding, and detects whether or not there is an error in the coded data by 1-bit error detection for each frame. Error detection information 103 that is a code
Output as

【0024】符号化データバッファ102は、誤り検出
器111を経た符号化データ101をフレーム毎に複数
のフレーム分格納するためのバッファ102であり、格
納された符号化データ101を図の左から右へ転送し出
力するようになっている。そして、このバッファが空の
場合はバッファエンプティ信号を出力し、データ廃棄信
号があると、図の一番右側に転送され出力しようとして
いる符号化データを廃棄するようになっている。
The encoded data buffer 102 is a buffer 102 for storing a plurality of frames of the encoded data 101 that has passed through the error detector 111, and the stored encoded data 101 is from the left to the right in the figure. It is designed to be transferred to and output. When this buffer is empty, a buffer empty signal is output, and when there is a data discard signal, the coded data transferred to the rightmost side in the figure and being output is discarded.

【0025】誤り検出情報用バッファ104は、バッフ
ァ102に蓄えられたフレームごとにその誤り検出情報
103が入力端子103よりバッファ104に格納され
る。そして、データバッファ102と同様に、誤り検出
情報103を図の左から右へ転送し出力するようになっ
ている。
In the error detection information buffer 104, the error detection information 103 is stored in the buffer 104 from the input terminal 103 for each frame stored in the buffer 102. Then, like the data buffer 102, the error detection information 103 is transferred and output from the left side to the right side of the drawing.

【0026】カウンタ107は、誤り検出情報用データ
バッファ104から出力された誤り検出情報を用いて符
号化データのうち誤りの検出されたフレームの数をカウ
ントするためのものである。
The counter 107 is for counting the number of frames in which an error has been detected in the encoded data using the error detection information output from the error detection information data buffer 104.

【0027】パワー算出器105は、符号化データバッ
ファ102から出力された符号化データのレベル(パワ
ー)を1フレームごとに算出するためのものである。そ
して、パワー算出器105は、カウンタ107の値が零
でなく、且つバッファ102から読み出した符号化デー
タが無誤りの時に、その符号化データからそのフレーム
のパワーP(n)を算出する。
The power calculator 105 is for calculating the level (power) of the encoded data output from the encoded data buffer 102 for each frame. Then, when the value of the counter 107 is not zero and the encoded data read from the buffer 102 is error-free, the power calculator 105 calculates the power P (n) of the frame from the encoded data.

【0028】無音区間検出器106は、そのフレームの
パワーP(n)としきい値レベルPthとを比較し、その
フレームが無音区間であるかを判定する。そして、その
結果を切り替え器109に与えるようになっている。
The silent section detector 106 compares the power P (n) of the frame with a threshold level Pth to determine whether the frame is in a silent section. Then, the result is given to the switch 109.

【0029】無誤り符号化データバッファ110は、誤
り検出情報を用いて符号化データバッファ102から出
力された符号化データ101のうち誤りのないもの1フ
レーム分を格納し順次次段に出力するためのバッファ1
02であり、格納されたデータは補間データとして出力
されるようになっている。
Since the error-free coded data buffer 110 stores one frame of the coded data 101 output from the coded data buffer 102 that has no error using the error detection information and sequentially outputs it to the next stage. Buffer 1
02, and the stored data is output as interpolation data.

【0030】切り替え器109は、誤り検出情報用デー
タバッファ104からの誤り検出情報、無音区間検出器
106の判定結果、カウンタ107の計数値という3つ
の情報をもとにスイッチ108の切り替えを行う。ま
た、データ廃棄を示す信号(データ廃棄信号)をバッフ
ァ102,104に与えることにより、そのとき出力し
ようとしている符号化データ、誤り検出情報を廃棄さ
せ、バッファ102,104から次の符号化データ、誤
り検出情報を出力させるようにする。
The switch 109 switches the switch 108 on the basis of three pieces of information, that is, the error detection information from the error detection information data buffer 104, the judgment result of the silent section detector 106, and the count value of the counter 107. Further, by giving a signal indicating data discard (data discard signal) to the buffers 102 and 104, the encoded data and error detection information to be output at that time are discarded, and the next encoded data from the buffers 102 and 104, Causes error detection information to be output.

【0031】スイッチ108は、切り替え器109の制
御により符号化データバッファ102からの符号化デー
タ(復号用データ)、無音化、補間データから選択して
復号化器112に与える。復号化器112は、与えられ
た符号化データを復号化してオーディオ信号または音声
信号として出力するものであり、通常のデータ圧縮やデ
ジタル変調において復号化に用いられているものと同等
である。
Under the control of the switch 109, the switch 108 selects from the coded data (decoding data) from the coded data buffer 102, silence, and interpolated data, and supplies it to the decoder 112. The decoder 112 decodes the supplied encoded data and outputs it as an audio signal or a voice signal, and is equivalent to that used for decoding in ordinary data compression or digital modulation.

【0032】図2は、スイッチ切り替えの動作をフロー
チャートとして表現したものである。また、図3は、処
理の様子の一例を示したものである。これらを用いて動
作を説明すると次のようになる。
FIG. 2 is a flow chart showing the switching operation. Further, FIG. 3 shows an example of the state of processing. The operation will be described below using these.

【0033】まず、誤り検出器111で入力された符号
化データの誤り検出が行われて、各フレームの誤り検出
情報が入力端子103よりバッファ104に格納される
とともに、符号化データはフレーム毎にバッファ102
に格納される。そして、バッファ102から読み出した
符号化データに誤りがなく(図2符号201)、且つ誤
りがない場合(同図符号202)、切り替え器109
は、スイッチ108の状態が符号化データを復号化器1
12に与えるようになるにようにして時間的ずれがない
ようにそのまま復号化器112へ復号化音声データを渡
し、復号を行うようにする(同図符号206)。
First, the error detection of the encoded data input by the error detector 111 is performed, the error detection information of each frame is stored in the buffer 104 from the input terminal 103, and the encoded data is transmitted for each frame. Buffer 102
Stored in. Then, when the encoded data read from the buffer 102 has no error (reference numeral 201 in FIG. 2) and there is no error (reference numeral 202 in FIG. 2), the switch 109 is used.
Indicates that the state of the switch 108 is the decoder 1 for the encoded data.
Then, the decoded voice data is passed to the decoder 112 as it is so that there is no time lag so that it is given to the decoder 12 and the decoding is performed (reference numeral 206 in the figure).

【0034】例えば、図3の符号化データの1,2番が
この処理になり、スイッチ108の状態が符号化データ
を復号化器112に与えるようになる。
For example, this processing is performed for Nos. 1 and 2 of the encoded data of FIG. 3, and the state of the switch 108 gives the encoded data to the decoder 112.

【0035】次に、誤り検出情報用バッファ104から
の誤り検出情報によって符号化データバッファ102か
らの符号化データに誤り検出されたことが判明した時
(図2符号201)、バッファ102が空でない場合
(同図符号205)、切り替え器109は、そのフレー
ムの符号化データを廃棄するように、データ廃棄を示す
信号(データ廃棄信号)をバッファ102,104に与
えて次の符号化データ、誤り検出情報を出力させるよう
にする(同図符号208)。続く符号化データにも誤り
検出がされていれば(同図符号201)、続けて廃棄す
る(同図符号208)。
Next, when it is determined by the error detection information from the error detection information buffer 104 that an error has been detected in the encoded data from the encoded data buffer 102 (reference numeral 201 in FIG. 2), the buffer 102 is not empty. In this case (reference numeral 205 in the figure), the switch 109 gives a signal indicating data discard (data discard signal) to the buffers 102 and 104 so as to discard the encoded data of the frame, and the next encoded data, error The detection information is output (reference numeral 208 in the figure). If an error is also detected in the subsequent encoded data (reference numeral 201 in the figure), it is subsequently discarded (reference numeral 208 in the figure).

【0036】符号化データに誤りがなくなれば(同図符
号201)、カウンタ107の値が0ではなく(同図符
号202)無音区間は検出されておらず(同図符号20
3)、挿入する状態でないため(同図符号204)、切
り替え器109は、スイッチ108の状態が符号化デー
タを復号化器112に与えるようになるにようにしてそ
のまま復号化器112へ復号化された音声データを渡
し、復号を行うようにする(同図符号206)。
If the encoded data has no error (reference numeral 201 in the figure), the value of the counter 107 is not 0 (reference numeral 202 in the figure), and no silent section is detected (reference numeral 20 in the same figure).
3) Since it is not in a state to be inserted (reference numeral 204 in the figure), the switch 109 decodes to the decoder 112 as it is so that the state of the switch 108 gives the encoded data to the decoder 112. The audio data thus obtained is passed and decoded (206 in the figure).

【0037】例えば、図3の符号化データの3番がこの
誤り検出された場合の処理になり、スイッチ108の状
態がそのフレームの符号化データを廃棄するようにな
る。そして、符号化データの4番が誤りがなくなった場
合の処理になり、スイッチ108の状態が符号化データ
を復号化器112に与えるようになる。こうして、順次
誤りのないフレームが順次スイッチ108を介して復号
化器112に与えられるようになる。この時、誤り検出
された場合、その後に続く無誤りのフレームは、誤りが
無かった場合よりも時間的に早く出力され、復号される
ことになる。
For example, the third code of the coded data shown in FIG. 3 is processed when this error is detected, and the state of the switch 108 discards the coded data of the frame. Then, the process of the coded data No. 4 is performed when there is no error, and the state of the switch 108 gives the coded data to the decoder 112. Thus, sequentially error-free frames are sequentially applied to the decoder 112 via the switch 108. At this time, when an error is detected, the subsequent error-free frame is output and decoded earlier in time than when there is no error.

【0038】そして、パワー算出器105および無音区
間検出器106によって符号化データに無音区間が検出
された場合(同図符号203)、切り替え器109は、
スイッチ108の状態が無音化になるにようにして無音
の符号化データを復号化器112へ与え、所定のデータ
として無音区間と同じデータを挿入する(同図符号20
7)。なお、所定のデータとして、他に、特定のサンプ
ル値を用いることができる。無音区間と判定された符号
化データを使用する事も可能であり、また、パワーを減
少させながら繰り返し使用する事も可能である。
When the power calculator 105 and the silent interval detector 106 detect a silent interval in the encoded data (reference numeral 203 in the figure), the switch 109 is
The coded data of silence is supplied to the decoder 112 so that the state of the switch 108 is silenced, and the same data as the silent section is inserted as predetermined data (reference numeral 20 in the figure).
7). In addition, a specific sample value can be used as the predetermined data. It is possible to use the coded data determined to be the silent section, and it is also possible to repeatedly use it while reducing the power.

【0039】そして、カウンタ107は、誤り検出され
たフレームの数のカウント値を減少させ0になるまで無
音区間のデータを挿入する(同図符号202)。値が0
となったところで無音のフレームの挿入を停止し、スイ
ッチ108の状態が符号化データを復号化器112に与
えるようになる。こうして、複数フレームにわたって無
音区間のデータを挿入することによって、等価的に無音
区間を延長することによって、符号化データの廃棄によ
って生じた時間的なずれの補正が行われる。
Then, the counter 107 reduces the count value of the number of frames in which the error is detected and inserts the data of the silent section until it becomes 0 (reference numeral 202 in the figure). Value is 0
At that point, the insertion of the silent frame is stopped, and the state of the switch 108 gives the encoded data to the decoder 112. In this way, by inserting data of a silent section over a plurality of frames, the silent section is equivalently extended, thereby correcting the time lag caused by discarding the encoded data.

【0040】例えば、図3の符号化データの5番が無音
区間が検出された場合の処理になり、スイッチ108の
状態が無音化になるにようにして無音の符号化データを
復号化器112に与えるようになり、符号化データの5
番と挿入された無音区間とで無音区間が延長される。そ
して、カウンタ107のカウント値が0になると、図3
の符号化データの6番のように、スイッチ108の状態
が符号化データを復号化器112に与えるようになる。
以降、再び上記にある誤り検出情報による符号化データ
の復号,廃棄の切り替えに戻る。
For example, the number 5 of the coded data of FIG. 3 is the process when a silence section is detected, and the decoder 112 is used to decode the coded data of silence so that the state of the switch 108 becomes silenced. To the encoded data of 5
The silent section is extended by the turn and the inserted silent section. Then, when the count value of the counter 107 becomes 0, as shown in FIG.
The state of the switch 108 causes the encoded data to be given to the decoder 112, like the encoded data No. 6 of FIG.
After that, the process returns to the above-described switching between decoding and discarding of the encoded data based on the error detection information.

【0041】さらに、符号化データの誤り検出が長く続
いた場合、バッファ102,104に格納された符号化
データを使い切って空の状態になる可能性もある。その
場合、従来行われてきたように、無誤り符号化データバ
ッファ110を用いて補間が行われる。この場合、誤り
が検出され(同図符号201)、バッファ102,10
4が空の状態になり(同図符号205)、スイッチ10
8の状態が補間データを復号化器112に与えるように
なる。バッファ110に格納された最後の無誤りの符号
化データを、パワーを小さくしながらそのデータを繰り
返して使用することによって外挿が行われる。
Further, when the error detection of the coded data continues for a long time, the coded data stored in the buffers 102 and 104 may be used up and become empty. In that case, the interpolation is performed using the error-free coded data buffer 110 as is conventionally done. In this case, an error is detected (reference numeral 201 in the figure), and the buffers 102, 10
4 becomes empty (reference numeral 205 in the figure), and the switch 10
The state of 8 gives the interpolation data to the decoder 112. Extrapolation is performed by repeatedly using the last error-free coded data stored in the buffer 110 while reducing the power.

【0042】この様に、本実施例では、符号化データの
誤り検出があった場合、そのデータを廃棄すると共に廃
棄したデータと同じ長さの無音区間を挿入し、無音区間
を延長することによってデータの補正を行っている。ま
た、符号化データの誤り検出が長く続いた場合でも、最
後の無誤りの符号化データを使用することによって外挿
が行われる。これによって、符号化データに誤りがあっ
たとしても、補間等の失敗による異音の発生がなくまた
音が途切れることなしに再生音を出力する音声補正装置
を実現することができる。
As described above, in this embodiment, when an error is detected in coded data, the data is discarded and a silent section having the same length as the discarded data is inserted to extend the silent section. Data is being corrected. Even when error detection of coded data continues for a long time, extrapolation is performed by using the last error-free coded data. With this, even if there is an error in the encoded data, it is possible to realize a voice correction device that outputs a reproduced sound without causing an abnormal sound due to a failure of interpolation or the like and without interrupting the sound.

【0043】この実施例では、符号化データに対して処
理を行っているが既に復号化した再生音に対して処理を
行うこともできる。また時間的なずれの補償で、無音の
フレームを挿入する方法を挙げたが、ほかに無音区間と
判定されたときのフレームを使用する、或いは繰り返し
使用するときは順次パワーを下げていくという方法もあ
る。
In this embodiment, the coded data is processed, but it is also possible to process the reproduced sound which has already been decoded. In addition, we mentioned a method of inserting silence frames by compensating for time lag, but another method is to use frames when it is determined to be a silence section, or to reduce power sequentially when repeatedly used. There is also.

【0044】図4は、本発明の第2の実施例にかかる音
声補正装置を示したものであり、この実施例は、符号化
データを復号した後に復号化したデータの補正を行う場
合の例を示したものである。
FIG. 4 shows an audio correction apparatus according to the second embodiment of the present invention. This embodiment is an example in which encoded data is decoded and then decoded data is corrected. Is shown.

【0045】この実施例の音声補正装置では、まず、誤
り検出器111で復号化のために入力端子から入力され
た符号化データから誤りを誤り検出器111で検出し、
復号化器112で、符号化データを復号化してオーディ
オ信号または音声信号である復号データ301として出
力するようになっている。
In the speech correction apparatus of this embodiment, first, the error detector 111 detects an error from the coded data input from the input terminal for decoding,
The decoder 112 decodes the encoded data and outputs the decoded data 301 as an audio signal or a voice signal.

【0046】ここで、復号する際に従来行われてきたよ
うにパワー等の補間を行ってもよい。この場合、符号化
復号化で後ろ向き予測を使用している場合後に続くフレ
ームに符号誤りがなくとも以前に起きた誤りの影響を受
けるので、その影響を少なくすることができる。
Here, interpolation such as power may be performed at the time of decoding as is conventionally done. In this case, when backward prediction is used in encoding / decoding, even if there is no code error in the subsequent frame, the frame is affected by the error that has occurred before, so that the effect can be reduced.

【0047】そして、復号化器112の出力に再生音用
バッファ302と、誤り検出器111の出力に誤り検出
情報用バッファ104とが設けられている。そして、前
記第1の実施例と同様に、再生音用バッファ302に、
復号データ301がフレーム毎に複数のフレーム分格納
され、また、誤り検出情報用バッファ304に、バッフ
ァ302に蓄えられたフレームごとにその誤り検出情報
303が格納されるようになっている。
A reproduced sound buffer 302 is provided at the output of the decoder 112, and an error detection information buffer 104 is provided at the output of the error detector 111. Then, in the same way as the first embodiment, in the reproduction sound buffer 302,
The decoded data 301 is stored for each frame for a plurality of frames, and the error detection information buffer 304 stores the error detection information 303 for each frame stored in the buffer 302.

【0048】無誤り符号化データバッファ309は、誤
り検出情報から再生音用バッファ302から出力された
復号化データ301のうち誤りのないもの1フレーム分
を格納するためのバッファであり、格納されたデータは
補間データとして出力されるようになっている。
The error-free coded data buffer 309 is a buffer for storing one frame of the decoded data 301 output from the reproduced sound buffer 302 that has no error from the error detection information, and is stored. The data is output as interpolation data.

【0049】切り替え器307は、誤り検出情報用デー
タバッファ304からの誤り検出情報、カウンタ305
の計数値という3つの情報をもとにスイッチ108の切
り替えを行う。
The switch 307 is provided with the error detection information from the error detection information data buffer 304 and the counter 305.
The switch 108 is switched on the basis of the three pieces of information called the count value of.

【0050】補間フィルタ及び間引フィルタ308(時
間軸伸張器)は、再生音用バッファ302から復号デー
タ301をその時間軸を伸長して出力するものである。
その時間軸の伸張の割合は1%程度であれば知覚されに
くいことから、この実施例では、1フレームの廃棄に対
して、例えば、各々101/100倍に復号データ30
1の時間軸を伸張したフレームを100フレーム出力す
るようにしている。
The interpolation filter and decimation filter 308 (time axis expander) expands the decoded data 301 from the reproduced sound buffer 302 along its time axis and outputs it.
If the rate of expansion of the time axis is about 1%, it is difficult to perceive it. Therefore, in this embodiment, the decoded data 30 is, for example, 101/100 times as large as the discard of one frame.
100 frames in which the time axis of 1 is expanded are output.

【0051】カウンタ305は、前述の実施例と同様、
誤り検出情報用データバッファ304から出力された誤
り検出情報を用いて符号化データのうち誤りの検出され
たフレームの数をカウントする。そして、この実施例で
はさらに、切り替え器307の状態から、廃棄したフレ
ーム数ととともに、伸張したフレームの数をカウントす
る。時間軸の伸張の割合が先述のような場合では、伸張
したフレームのカウント数が100になると廃棄したフ
レームのカウント数を1減らすようにする。
The counter 305 is similar to the above-mentioned embodiment.
Using the error detection information output from the error detection information data buffer 304, the number of frames in which an error is detected in the encoded data is counted. Then, in this embodiment, the number of decompressed frames is counted together with the number of discarded frames from the state of the switch 307. In the case where the expansion rate of the time axis is as described above, when the expanded frame count reaches 100, the discarded frame count is decreased by one.

【0052】スイッチ108は、切り替え器307の制
御により再生音用バッファ302からの復号データ、廃
棄、補間フィルタ及び間引フィルタ308からの出力、
補間データから選択してに与える。補間フィルタ及び間
引フィルタ308は、与えられた符号化データを復号化
してオーディオ信号または音声信号として出力する。
The switch 108, under the control of the switch 307, decodes data from the reproduced sound buffer 302, discards, outputs from the interpolation filter and thinning filter 308,
Select from the interpolation data and give to. The interpolation filter and decimation filter 308 decodes the coded data given and outputs it as an audio signal or a voice signal.

【0053】図5は、スイッチ切り替えの動作をフロー
チャートとして表現したものである。また、図6は、処
理の様子の一例を示したものである。これらを用いて切
り替えの動作を説明すると次のようになる。
FIG. 5 is a flow chart showing the switching operation. Further, FIG. 6 shows an example of the state of processing. The switching operation will be described below using these.

【0054】この実施例では、まず復号した音である復
号データ301をフレーム毎にバッファ302に格納す
るとともに、復号データ301の誤り検出の如何に関わ
らず、それぞれのフレームの誤り検出情報303をバッ
ファ304に格納する。
In this embodiment, first, the decoded data 301 which is the decoded sound is stored in the buffer 302 for each frame, and the error detection information 303 of each frame is buffered regardless of the error detection of the decoded data 301. Store in 304.

【0055】そして、誤り検出情報用バッファ104か
らの誤り検出情報により、再生音用バッファ302から
の復号データ301に誤りが検出されず(図5符号50
1)、カウンタ305の誤り検出の回数が0である(以
前のデータに誤りが検出されていない)場合(同図符号
502)、スイッチ108は、再生音用バッファ302
からの復号データをそのまま出力するようになっている
(同図符号503)。
Then, due to the error detection information from the error detection information buffer 104, no error is detected in the decoded data 301 from the reproduced sound buffer 302 (reference numeral 50 in FIG. 5).
1) If the number of error detections of the counter 305 is 0 (no error is detected in the previous data) (reference numeral 502 in the figure), the switch 108 causes the reproduced sound buffer 302 to operate.
The decoded data from is output as it is (reference numeral 503 in the figure).

【0056】例えば、図6の復号データの1,2番がこ
の処理になり、スイッチ108の状態が復号データを出
力するようになる。
For example, the No. 1 and No. 2 of the decoded data in FIG. 6 is this processing, and the state of the switch 108 is to output the decoded data.

【0057】次に、誤り検出情報用バッファ304から
の誤り検出情報によって再生音用データバッファ302
からの復号データに誤り検出されたことが判明した時
(図5符号501)、バッファ302が空でない場合
(同図符号505)、切り替え器307は、そのフレー
ムの復号データを廃棄するようにスイッチ108の状態
がなるようにし、データ廃棄信号をバッファ302,3
04にあたえて次の復号データ、誤り検出情報を出力さ
せるようにする(同図符号507)。続く復号データに
も誤り検出がされていれば(同図符号501)、続けて
廃棄する(同図符号507)。この廃棄された数はカウ
ンタ305にカウントされる。
Next, according to the error detection information from the error detection information buffer 304, the reproduced sound data buffer 302
When it is determined that an error has been detected in the decoded data from (No. 501 in FIG. 5), if the buffer 302 is not empty (No. 505 in FIG. 5), the switch 307 switches so as to discard the decoded data of the frame. 108, the data discard signal is sent to the buffers 302, 3
Then, the next decoded data and error detection information are output in accordance with No. 04 (reference numeral 507). If an error is also detected in the subsequent decoded data (reference numeral 501 in the figure), it is continuously discarded (reference numeral 507 in the figure). The discarded number is counted by the counter 305.

【0058】例えば、図6の復号データの1,2番がこ
の処理になり、スイッチ108の状態が復号データを廃
棄されている。
For example, the No. 1 and No. 2 of the decrypted data in FIG. 6 is this processing, and the state of the switch 108 is that the decrypted data is discarded.

【0059】復号データに誤りがなくなれば(同図符号
501)、カウンタ305の値が0ではないので(同図
符号502)、切り替え器307は、スイッチ108の
状態が補間フィルタ及び間引フィルタ308を経て時間
軸伸張して復号データを与えるようにする(同図符号5
04)。このとき、復号データについて、時間軸伸張し
たもののカウント数が100になると廃棄したもののカ
ウント数を1減らすようにする。
If there is no error in the decoded data (reference numeral 501 in the figure), the value of the counter 305 is not 0 (reference numeral 502 in the figure). Therefore, the switch 307 determines that the state of the switch 108 is the interpolation filter and the thinning filter 308. Then, the time axis is expanded and the decoded data is given (reference numeral 5 in FIG.
04). At this time, when the count number of the decoded data that has been expanded on the time axis reaches 100, the count number of the discarded data is decremented by 1.

【0060】例えば、図3の符号化データの3番でこの
誤りが検出された後、符号化データの4番が誤りがなく
なった場合の処理になり、スイッチ108の状態が時間
軸伸張した復号データを与えるようになる。符号化デー
タの4番以降では101/100倍に時間軸伸張がされ
ているが、符号化データの104番で、復号データ30
1に誤りが検出されなくなり(図5符号501)、カウ
ンタ305の誤り検出の回数が0になって再生音用バッ
ファ302からの復号データをそのまま出力するように
なる(同図符号503)。
For example, after this error is detected at the coded data No. 3 in FIG. 3, the process becomes when the coded data No. 4 is error free, and the state of the switch 108 is time-axis expanded decoding. You will be given data. Although the time axis is expanded 101/100 times in the coded data No. 4 and after, the coded data No. 104 has the decoded data 30
No error is detected at 1 (reference numeral 501 in FIG. 5), the number of error detections of the counter 305 becomes 0, and the decoded data from the reproduction sound buffer 302 is directly output (reference numeral 503 in FIG. 5).

【0061】復号データの誤り検出が長く続いた場合な
どでは、前述の第1実施例と同様、バッファ302,3
04が空の状態になった場合、従来行われてきたよう
に、無誤り符号化データバッファ309を用いて補間が
行われる。この場合、誤りが検出され(同図符号50
1)、バッファ102,104が空の状態になり(同図
符号505)、スイッチ108の状態が補間データを与
えるようになる。バッファ110に格納された最後の無
誤りの復号データを、パワーを小さくしながらそのデー
タを繰り返して使用することによって外挿が行われる。
When the error detection of the decoded data continues for a long time, the buffers 302 and 3 are similar to the first embodiment.
When 04 becomes empty, interpolation is performed using the error-free coded data buffer 309 as is conventionally done. In this case, an error is detected (reference numeral 50 in FIG.
1), the buffers 102 and 104 become empty (reference numeral 505 in the figure), and the state of the switch 108 gives interpolation data. Extrapolation is performed by repeatedly using the last error-free decoded data stored in the buffer 110 while reducing the power.

【0062】この様に、この実施例は、誤り検出された
フレームを廃棄、直ちに無誤りのフレームを出力するこ
とで生じる時間的なずれの補償を出力するフレームの波
形を時間軸伸張することで行う場合の例を示したもので
ある。この方法では、第一の実施例と比較すると、第一
の実施例において時間的なずれの補償に無音区間が必要
であるが、この無音区間が長時間存在しないようなオー
ディオ信号などの場合にも適用できる、という利点があ
る。
As described above, in this embodiment, the frame of which the error is detected is discarded, and the waveform of the output frame is expanded on the time axis to compensate for the time lag caused by immediately outputting the error-free frame. This is an example of a case of performing. In this method, as compared with the first embodiment, a silence section is required for compensating for the time shift in the first embodiment. However, in the case of an audio signal in which this silence section does not exist for a long time, etc. Can also be applied.

【0063】この実施例では、復号化した再生音である
に対して処理を行っているが、復号する前の符号化音声
データの段階で処理することもできる。その場合、図7
に示すように、復号化器112を音声補正装置の初段に
設けるのではなくて、切り替え器307によって制御さ
れるスイッチ701の後段に設けるようにしても良い。
この場合、復号化器112で通常の復号を行い、時間軸
伸張器308で再生音を時間軸伸張して出力するなどの
処理を行う。そして、スイッチ701と連動したスイッ
チ108を用いて、上記実施例と同様に出力を切り替え
る。このようにしても、上記実施例と同様の処理を行う
ようにすることができる。
In this embodiment, the processing is performed on the decoded reproduced sound, but it may be processed at the stage of the encoded audio data before decoding. In that case, FIG.
As shown in, the decoder 112 may not be provided in the first stage of the audio correction apparatus, but may be provided in the latter stage of the switch 701 controlled by the switch 307.
In this case, the decoder 112 performs normal decoding, and the time-axis decompressor 308 performs processing such as time-axis decompression of the reproduced sound and outputting. Then, the output is switched using the switch 108 interlocking with the switch 701 as in the above-described embodiment. Even in this case, the same processing as that in the above embodiment can be performed.

【0064】時間軸伸張の方法として、伸張する長さが
サンプル数にして1乃至数個であればフレームの最後の
1サンプルを1回繰り返すなど、特定の位置のサンプル
を繰り返し使用するようにすると間引きフィルタ、補間
フィルタを使用する方法に比べて大幅に演算量を減らす
ことができる。
As a method of extending the time axis, if the extension length is 1 to several samples, the last sample of the frame is repeated once, and the sample at a specific position is repeatedly used. The amount of calculation can be significantly reduced as compared with the method using a thinning filter or an interpolation filter.

【0065】また第1,第2の実施例を併せればより多
様なオーディオ信号または音声信号に対応することがで
きる。
By combining the first and second embodiments, more various audio signals or voice signals can be dealt with.

【0066】以上、誤り検出されたフレームの廃棄し、
直ちに無誤りのフレームを使用することによる時間的な
ずれの補正法に関して主に述べてきたが、CDプレーヤ
ーのように機能が音を再生するのみであるためにその時
間的ずれが問題にならない場合は、そのような補正機構
はし付加しなくともよい。
As described above, the frame in which the error is detected is discarded,
Although I have mainly described the method of correcting the time shift immediately by using error-free frames, when the time shift does not matter because the function only reproduces sound like a CD player. Does not need to add such a correction mechanism.

【0067】なお、本発明は、いかなるオーディオ信号
または音声信号の符号化復号化器に対しても、バッファ
の容量で許容された範囲すなわち、バッファのデータ蓄
積による遅延が許される範囲であれば適用することが可
能である。
The present invention is applicable to any audio / voice signal coding / decoding apparatus as long as the buffer capacity allows, that is, the delay due to buffer data storage is allowed. It is possible to

【0068】[0068]

【発明の効果】以上説明したように、本発明によれば符
号誤りの存在する符号化音声データを復号するにあた
り、符号誤りを含むフレームを廃棄して直ちに無誤りの
フレームのデータを続いて出力させて音を再生すること
により、補間等の失敗による異音の発生が抑えられ、ま
た、音が途切れることなしに再生音を出力する音声補正
方法及びその装置を実現することができる。
As described above, according to the present invention, when decoding coded voice data having a code error, a frame containing a code error is discarded and immediately an error-free frame data is output. By reproducing the sound by doing so, it is possible to realize the sound correction method and the apparatus for suppressing the generation of the abnormal sound due to the failure of the interpolation and outputting the reproduced sound without the sound being interrupted.

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

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

【図2】第1の実施例の切り替え器の動作を示すフロー
チャート。
FIG. 2 is a flowchart showing the operation of the switch of the first embodiment.

【図3】第1の実施例の処理の様子を示す図。FIG. 3 is a diagram showing how processing is performed in the first embodiment.

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

【図5】第2の実施例の切り替え器の動作を示すフロー
チャート。
FIG. 5 is a flowchart showing the operation of the switch of the second embodiment.

【図6】第2の実施例の処理の様子を示す図。FIG. 6 is a diagram showing a processing state of a second embodiment.

【図7】第1の実施例の別の処理方法を示すブロック図
(一部分)。
FIG. 7 is a block diagram (partially) showing another processing method of the first embodiment.

【符号の説明】 101 符号化データ、 102 符号化データ用バッ
ファ、103 誤り検出情報、 104 誤り検出情報
用バッファ 105 パワー算出器、 106 無音区間検出器 107 カウンタ、 108 スイッチ、 109 切
り替え器 110 補間のための無誤り符号化データ用バッファ 301 符号化データ、 302 符号化データ用バッ
ファ、303 誤り検出情報、 304 誤り検出情報
用バッファ 305 カウンタ、 308 時間軸伸張手段、309
補間のための無誤り符号化データ用バッファ 701 スイッチ
[Description of Codes] 101 coded data, 102 coded data buffer, 103 error detection information, 104 error detection information buffer 105 power calculator, 106 silence interval detector 107 counter, 108 switch, 109 switcher 110 interpolation Error-free coded data buffer for use 301 coded data, 302 coded data buffer, 303 error detection information, 304 error detection information buffer 305 counter, 308 time axis expansion means, 309
Error-free coded data buffer 701 switch for interpolation

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04L 1/00 H04L 1/00 Z ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI Technical display location H04L 1/00 H04L 1/00 Z

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 オーディオ信号または音声信号をディジ
タル信号に変換し符号化することによって得た符号化デ
ータを復号化して得たディジタル信号を再生する音声補
正方法であって、 前記符号化データ又は前記符号化データを復号化したデ
ィジタル信号をフレーム毎に区切って、前記符号化デー
タをフレーム毎に誤り検出をし、 前記符号化データ又は前記復号化したディジタル信号
と、前記誤り検出で検出された誤り検出符号とを前記フ
レーム毎に複数のフレーム分格納し、 格納されたフレームに誤りが検出された時には当該フレ
ームを破棄させ、前記格納されたフレームのうち無誤り
のものを続いて出力させ、 前記フレームを破棄した際に生じる時間的なずれを補間
し、前記フレームの補間をした前記符号化データ又は前
記復号化したディジタル信号を与えることを特徴とする
音声補正方法。
1. A voice correction method for reproducing a digital signal obtained by decoding coded data obtained by converting an audio signal or a voice signal into a digital signal and encoding the digital signal. The digital signal obtained by decoding the coded data is divided into frames, and the coded data is subjected to error detection for each frame, and the coded data or the decoded digital signal and the error detected by the error detection. The detection code and a plurality of frames for each frame are stored, when an error is detected in the stored frame, the frame is discarded, and an error-free one of the stored frames is subsequently output, By interpolating the temporal shift that occurs when a frame is discarded, the coded data or the interpolated frame is decoded. Voice correction method characterized by providing a Ijitaru signal.
【請求項2】 オーディオ信号または音声信号をディジ
タル信号に変換し符号化することによって得た符号化デ
ータを復号化して得たディジタル信号を再生するのに用
いられる音声補正装置であって、 前記符号化データ又は前記符号化データを復号化したデ
ィジタル信号をフレーム毎に区切って、前記符号化デー
タをフレーム毎に誤りを検出する誤り検出器と、 前記符号化データ又は前記復号化したディジタル信号
と、前記誤り検出器で検出された誤り検出符号とを前記
フレーム毎に複数のフレーム分格納するためのバッファ
と、 前記バッファに格納されたフレームに誤りが検出された
時には当該フレームを前記バッファから破棄させ、前記
バッファから前記格納されたフレームのうち無誤りのも
のを続いて出力させるための切り替え器と、 前記フレームを破棄した際に生じる時間的なずれを補間
し、前記フレームの補間をした前記符号化データ又は前
記復号化したディジタル信号を与えるための補間手段
と、 を有する音声補正装置。
2. A voice correction device used for reproducing a digital signal obtained by decoding encoded data obtained by converting an audio signal or a voice signal into a digital signal and encoding the digital signal, A coded data or a digital signal obtained by decoding the coded data is divided for each frame, an error detector that detects an error in the coded data for each frame, and the coded data or the decoded digital signal, A buffer for storing a plurality of frames of the error detection code detected by the error detector for each frame, and when an error is detected in the frame stored in the buffer, the frame is discarded from the buffer. A switch for successively outputting an error-free one of the stored frames from the buffer, An audio correction device comprising: an interpolating unit that interpolates a temporal shift generated when the frame is discarded and provides the coded data obtained by interpolating the frame or the decoded digital signal.
【請求項3】 前記符号化データ又は前記復号化したデ
ィジタル信号のうち無誤りのものを格納するためのデー
タバッファをさらに有し、 前記バッファが空であった場合、前記補間手段は、前記
データバッファに格納された前記符号化データ又は前記
復号化したディジタル信号を選択して与えることを特徴
とする請求項2記載の音声補正装置。
3. A data buffer for storing an error-free one of the encoded data or the decoded digital signal, wherein the interpolation means, when the buffer is empty, 3. The audio correction apparatus according to claim 2, wherein the encoded data or the decoded digital signal stored in a buffer is selected and given.
【請求項4】 前記誤り検出器によって誤り検出された
前記符号化データを復号化する復号化器を有し、前記復
号化器は、前記符号化データを復号化して得たディジタ
ル信号を前記バッファに与える事を特徴とする請求項2
記載の音声補正装置。
4. A decoder for decoding the coded data, the error of which is detected by the error detector, wherein the decoder decodes the coded data to obtain a digital signal. 3. The method according to claim 2, wherein
The audio correction device described.
【請求項5】 前記補間手段によって前記フレームの補
間をした前記符号化データを復号化する復号化器を有
し、前記復号化器は、前記符号化データを復号化して得
たディジタル信号を出力する事を特徴とする請求項2記
載の音声補正装置。
5. A decoder for decoding the coded data obtained by interpolating the frame by the interpolation means, wherein the decoder outputs a digital signal obtained by decoding the coded data. The audio correction device according to claim 2, wherein
【請求項6】 前記補間手段は、前記符号化データ又は
前記復号化したディジタル信号に所定のレベルと比較し
て無音区間であるかを検出し、前記無音区間を検出した
ときに前記破棄したフレームの数だけ所定のデータを前
記符号化データ又は前記復号化したディジタル信号に挿
入して、前記フレームの補間をする事を特徴とする請求
項2記載の音声補正装置。
6. The interpolation means detects whether the coded data or the decoded digital signal is in a silent section by comparing with a predetermined level, and when the silent section is detected, the discarded frame is discarded. 3. The audio correction apparatus according to claim 2, wherein a predetermined number of predetermined data are inserted into the encoded data or the decoded digital signal to interpolate the frame.
【請求項7】 前記補間手段は、 前記符号化データ又は前記復号化したディジタル信号に
所定のレベルと比較して無音区間であるかを検出する無
音区間検出器と、 前記無音区間を検出しないときには、前記バッファに格
納された前記符号化データ又は前記復号化したディジタ
ル信号を選択し、前記無音区間を検出したときには、前
記破棄したフレームの数だけ所定のデータを選択するス
イッチと、 を含んで構成されている事を特徴とする請求項6記載の
音声補正装置。
7. The silent section detector compares the coded data or the decoded digital signal with a predetermined level to detect a silent section, and when the silent section is not detected. A switch for selecting the coded data or the decoded digital signal stored in the buffer and selecting the predetermined data by the number of the discarded frames when the silent section is detected. The audio correction device according to claim 6, wherein the audio correction device is provided.
【請求項8】 前記所定のデータは、無音区間と同じデ
ータ、無音区間と判定されたフレームの符号化データ、
特定のサンプル値のいずれかであり、複数フレームにわ
たって前記所定のデータを挿入するときは、前記所定の
データを繰り返し使用する、または、所定のデータの値
を変化させてパワーを減少させるようにして繰り返し使
用する事を特徴とする請求項6又は7記載の音声補正装
置。
8. The predetermined data is the same data as a silent section, encoded data of a frame determined to be a silent section,
It is one of specific sample values, and when inserting the predetermined data over a plurality of frames, the predetermined data is repeatedly used, or the value of the predetermined data is changed to reduce the power. The voice correction device according to claim 6 or 7, which is used repeatedly.
【請求項9】 前記補間手段は、前記破棄したフレーム
の数だけ前記符号化データ又は前記復号化したディジタ
ル信号を所定のフレーム数にわたって伸長することによ
って、前記フレームの補間をする事を特徴とする請求項
2記載の音声補正装置。
9. The interpolation means expands the coded data or the decoded digital signal by a predetermined number of frames by the number of the discarded frames to interpolate the frames. The voice correction device according to claim 2.
JP22393495A 1995-08-31 1995-08-31 Method and apparatus for correcting sound Pending JPH0969266A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22393495A JPH0969266A (en) 1995-08-31 1995-08-31 Method and apparatus for correcting sound

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22393495A JPH0969266A (en) 1995-08-31 1995-08-31 Method and apparatus for correcting sound

Publications (1)

Publication Number Publication Date
JPH0969266A true JPH0969266A (en) 1997-03-11

Family

ID=16806003

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22393495A Pending JPH0969266A (en) 1995-08-31 1995-08-31 Method and apparatus for correcting sound

Country Status (1)

Country Link
JP (1) JPH0969266A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002071389A1 (en) * 2001-03-06 2002-09-12 Ntt Docomo, Inc. Audio data interpolation apparatus and method, audio data-related information creation apparatus and method, audio data interpolation information transmission apparatus and method, program and recording medium thereof
JP2008178099A (en) * 2007-01-16 2008-07-31 Research In Motion Ltd Apparatus, and associated method for selecting whether to reject as invalid data segment received at communication station

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002071389A1 (en) * 2001-03-06 2002-09-12 Ntt Docomo, Inc. Audio data interpolation apparatus and method, audio data-related information creation apparatus and method, audio data interpolation information transmission apparatus and method, program and recording medium thereof
JP2008178099A (en) * 2007-01-16 2008-07-31 Research In Motion Ltd Apparatus, and associated method for selecting whether to reject as invalid data segment received at communication station
JP4659049B2 (en) * 2007-01-16 2011-03-30 リサーチ イン モーション リミテッド Apparatus for selecting whether to reject a data segment received at a communication station as invalid and associated method

Similar Documents

Publication Publication Date Title
US5873058A (en) Voice coding-and-transmission system with silent period elimination
CN1327409C (en) Wideband signal transmission system
JP4146489B2 (en) Audio packet reproduction method, audio packet reproduction apparatus, audio packet reproduction program, and recording medium
JP5032314B2 (en) Audio encoding apparatus, audio decoding apparatus, and audio encoded information transmission apparatus
JP3167385B2 (en) Audio signal transmission method
KR100944084B1 (en) Method and apparatus for decoding a coded digital audio signal which is arranged in frames containing headers
JP2004361731A (en) Audio decoding system and audio decoding method
JPH02288520A (en) Voice encoding/decoding system with background sound reproducing function
JPH07123242B2 (en) Audio signal decoding device
JP3946812B2 (en) Audio signal conversion apparatus and audio signal conversion method
US20070143118A1 (en) Apparatus and method for lossless audio signal compression/decompression through entropy coding
JP2728122B2 (en) Silence compressed speech coding / decoding device
JPH07334191A (en) Method of decoding packet sound
EP0275099A2 (en) Voice analyzing and synthesizing apparatus
EP0725385B1 (en) Sub-band audio signal synthesizing apparatus
JPH0969266A (en) Method and apparatus for correcting sound
JP2000124915A (en) Method and device for decoding soundless compressed code
JP3649854B2 (en) Speech encoding device
EP2200025A1 (en) Bandwidth scalable codec and control method thereof
JP4551555B2 (en) Encoded data transmission device
JP3487158B2 (en) Audio coding transmission system
JP2900987B2 (en) Silence compressed speech coding / decoding device
JPH0612095A (en) Voice decoding method
JPH0774650A (en) Audio encoder and decoder for encoding signal thereof
JPH1022936A (en) Interpolation device