JPH1195800A - Abnormal state detecting/restoring device for voice codec - Google Patents

Abnormal state detecting/restoring device for voice codec

Info

Publication number
JPH1195800A
JPH1195800A JP9255355A JP25535597A JPH1195800A JP H1195800 A JPH1195800 A JP H1195800A JP 9255355 A JP9255355 A JP 9255355A JP 25535597 A JP25535597 A JP 25535597A JP H1195800 A JPH1195800 A JP H1195800A
Authority
JP
Japan
Prior art keywords
decoder
encoder
speech
abnormal state
state
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.)
Withdrawn
Application number
JP9255355A
Other languages
Japanese (ja)
Inventor
Osahide Eguchi
修英 江口
Mitsuru Tsuboi
満 坪井
Fumiaki Nishida
文昭 西田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP9255355A priority Critical patent/JPH1195800A/en
Publication of JPH1195800A publication Critical patent/JPH1195800A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)

Abstract

PROBLEM TO BE SOLVED: To detect the abnormal state of a line and the inside of a decoder and to quickly restore it by providing a means detecting a specific pattern from received coded information, a means detecting the abnormal state of the internal state of the decoder and a means notifying the encoder of its own station of the detected result, on the decoder side. SOLUTION: On the decoder 30 side, a specific pattern detecting means 31 detects a specific pattern from the received coded information, an abnormality detecting means 32 detects the abnormality of the internal state of a decoder 30 and an abnormality notifying means 33 notifies the encoder 20 of the own station of an abnormal state detection result. In this device, when specific coded information affixed to a line are received on the decoder 30 side, a processing corresponding to it is performed on the decoder 30 side. Moreover, when an abnormal state is detected on the decoder 30 side, a request for sending the specific coded information is performed with respect to the encoder 20 of its own station 20. When the decoder 30 of the counter station side receives the specific coded information, a silence inputting request is performed with respect to the encoder 20 of the counter station side and the encoder codingly processes a silence for a fixed time.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は音声コーデックの符
号帳を利用した異常状態検出/復旧方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an abnormal state detecting / restoring method using a codec of a speech codec.

【0002】[0002]

【従来の技術】音声符号化方式としては、CELP(C
ode Excited Linear Predic
tion)符号化方式を使用している。CELP符号化
器は、音声信号をその品質を保持しつつ情報圧縮する音
声符号化器として有望視されている。このベクトル量子
化音声符号化器ににおいては、符号帳(コードブック)
の各コードベクトルに予測重み付けを施して再生信号を
作り、再生信号と入力音声信号との間の誤差電力を評価
して最も誤差の少ないコードベクトルの番号(インデッ
クス)を決定して受信側に送信するものである。
2. Description of the Related Art CELP (C
ode Excited Linear Predic
) coding scheme is used. The CELP encoder is regarded as a promising audio encoder that compresses information while maintaining the quality of the audio signal. In this vector quantized speech encoder, a code book is used.
A prediction signal is applied to each code vector to generate a reproduction signal, the error power between the reproduction signal and the input audio signal is evaluated, and the code vector number (index) having the least error is determined and transmitted to the receiving side. Is what you do.

【0003】上記ベクトル量子化方式による符号器は、
前記符号帳に格納された約1000パターンの音源信号
のベクトル1つ1つに対して、線形予測合成フィルタ処
理を施し、再生された各音声信号と、符号化すべき入力
音声信号との間の誤差が最も小さくなる1つのパターン
をその約1000のパターンの中から探索するという処
理を行なう。
An encoder using the above-described vector quantization method is
A linear prediction synthesis filter process is performed on each of the approximately 1000 patterns of excitation signal vectors stored in the codebook, and an error between each reproduced audio signal and an input audio signal to be encoded. Is searched from among the approximately 1,000 patterns to find one pattern that minimizes.

【0004】このようなCELP符号化方式では、音源
情報として雑音符号帳(コードブック)や適応符号帳の
インデックスを送信しており、雑音符号帳は音声符号器
側での符号帳探索処理量や、符号帳のメモリ量を削減す
るために、木構造デルタ符号帳を採用している(特願平
3−127669号)。
In such a CELP coding method, a noise codebook (codebook) or an index of an adaptive codebook is transmitted as excitation information. In order to reduce the amount of codebook memory, a tree-structured delta codebook is employed (Japanese Patent Application No. 3-127669).

【0005】また、CELP符号化方式の音声コーデッ
クの場合、過去の情報を基に未来の信号を予測し、音声
の符号化/復号化処理を行なう。符号化器と復号器の音
声合成フィルタの状態は完全に一致していることが理想
的であるが、復号器側での同期引き込み処理や、回線異
常検出時のリセット処理等により復号器が受信した符号
化情報を基に復号処理を開始する時の復号器側の音声合
成フィルタの内部状態は、その符号化情報を生成した時
の符号化器の音声合成フィルタの状態と一致するもので
はなかった。
In the case of a speech codec of the CELP encoding system, a future signal is predicted based on past information, and speech encoding / decoding is performed. Ideally, the state of the speech synthesis filter of the encoder and the decoder should be completely the same, but the decoder receives the signal by the synchronization pull-in process on the decoder side or the reset process when a line error is detected. The internal state of the speech synthesis filter on the decoder side when decoding processing is started based on the encoded information does not match the state of the speech synthesis filter of the encoder when the encoded information is generated. Was.

【0006】図11は符号化部と復号部のタイミングの
ずれの説明図である。符号化データは最初は0から始ま
り、#2フレームは#1フレームの影響を受けて#2の
フレームデータを作り、#3フレームは#1と#2のフ
レームの影響を受けて#3のフレームデータを作る。と
ころが、復号器が#3フレームから復号処理を開始した
場合、#1,#2フレームの影響が無いために符号化器
が#3フレームを処理した時の音声合成フィルタの状態
と復号器が#3フレームを処理した時の音声合成フィル
タの状態は一致せず、ついには復号音声データが発散す
る可能性がある。
FIG. 11 is an explanatory diagram of a timing difference between the encoding unit and the decoding unit. The encoded data starts from 0 at first, the # 2 frame is affected by the # 1 frame to create the # 2 frame data, and the # 3 frame is affected by the # 1 and # 2 frames and the # 3 frame is affected. Make data. However, when the decoder starts the decoding process from the # 3 frame, the state of the speech synthesis filter when the encoder processes the # 3 frame and the When three frames are processed, the states of the speech synthesis filters do not match, and eventually the decoded speech data may diverge.

【0007】[0007]

【発明が解決しようとする課題】前述した木構造デルタ
符号帳は、N本の符号帳を持ち、それらを加減算するこ
とにより、2N−1種類の雑音ベクトルを生成すること
が可能であり、その番号0〜2N−2を符号化情報とし
て送信する。例えば、木構造デルタ符号帳が5本であれ
ば、31種類の雑音ベクトルを生成し、0〜30までが
符号化情報となる。
The above-mentioned tree-structured delta codebook has N codebooks, and by adding and subtracting them, it is possible to generate 2 N -1 types of noise vectors. The numbers 0 to 2 N -2 are transmitted as encoded information. For example, if there are five tree-structured delta codebooks, 31 kinds of noise vectors are generated, and 0 to 30 are coded information.

【0008】ここで、回線誤りや回線断による受信デー
タの貼り付き等の異常が生じた場合、本来出現する筈の
ない番号2N−1(オール“1”)を復号器が受信して
しまう可能性がある。現状の復号器では、この番号を受
信した時を想定しておらず実運用面で動作を保証してい
ないという不具合を生じていた。
[0008] Here, when an abnormality such as sticking of received data due to a line error or line disconnection occurs, the decoder receives the number 2 N -1 (all "1") which should not appear originally. there is a possibility. The current decoder has a problem that it does not assume when this number is received and does not guarantee the operation in actual operation.

【0009】また、復号器の立ち上がり時や回線異常状
態からの復旧時には、符号化器側の内部状態と一致して
いないため、場合によっては前述したように復号音声が
発散する可能性がある。
Also, when the decoder starts up or recovers from a line abnormal state, it does not match the internal state of the encoder side, so that in some cases, the decoded speech may diverge as described above.

【0010】本発明はこのような課題に鑑みてなされた
ものであって、回線異常状態や復号器の内部異常状態を
検出して速やかに復旧することができる音声コーデック
の異常状態検出/復旧装置を提供することを目的として
いる。
SUMMARY OF THE INVENTION The present invention has been made in view of such problems, and has an abnormal state detecting / restoring apparatus for a voice codec capable of detecting a line abnormal state or an internal abnormal state of a decoder and quickly recovering the state. It is intended to provide.

【0011】[0011]

【課題を解決するための手段】[Means for Solving the Problems]

(1)図1は本発明方法の原理を示す図である。図にお
いて、10はそれぞれ対向して接続されるコーデック
(音声処理装置)である。それぞれのコーデック10に
おいて、20は相手方に音声情報を符号化して送出する
符号化器、30は相手方からの符号化信号を受け取って
復号化する復号器である。符号化器20と復号器30は
互いに回線1,2で接続されている。
(1) FIG. 1 is a diagram showing the principle of the method of the present invention. In the figure, reference numeral 10 denotes codecs (audio processing devices) connected to each other. In each codec 10, reference numeral 20 denotes an encoder that encodes and transmits audio information to the other party, and reference numeral 30 denotes a decoder that receives and decodes an encoded signal from the other party. The encoder 20 and the decoder 30 are connected to each other via lines 1 and 2.

【0012】符号化器20側において、21は一定時間
無音を入力する無音入力手段、22は特定符号化情報を
出力する特定情報出力手段である。復号器30側におい
て、31は受信した符号化情報から特定パターンを検出
する特定パターン検出手段、32は復号器30の内部状
態に異常を検出する異常検出手段、33は異常状態検出
結果を自局の符号化器に通知する異常通知手段である。
On the encoder 20 side, reference numeral 21 denotes silence input means for inputting silence for a fixed time, and reference numeral 22 denotes specific information output means for outputting specific encoded information. On the decoder 30 side, 31 is a specific pattern detection means for detecting a specific pattern from the received coded information, 32 is an abnormality detection means for detecting an abnormality in the internal state of the decoder 30, and 33 is an abnormal state detection result. Is an abnormality notifying means for notifying the encoder of (1).

【0013】このように構成されたシステムにおいて、
木構造符号帳を持つCELP方式の音声コーデックにお
いて、原理的に出現しないオール“1”の木構造符号帳
番号が復号器30に入力された時を回線断や回線貼り付
き状態とみなし、回線の異常状態を検出して復号器30
での雑音を抑制することを特徴としている。
In the system configured as described above,
In a CELP speech codec having a tree-structured codebook, when a tree-structured codebook number, which does not appear in principle, is "1", is input to the decoder 30, it is regarded as a line disconnection or line sticking state. An abnormal state is detected and the decoder 30
It is characterized by suppressing noise at the point.

【0014】本発明では、復号器30側で回線貼り付き
の特定符号化情報を受信した場合には、それに応じた処
理を復号器30側で行なう。また、復号器30側で異常
状態を検出した時は自局の符号化器20に対して特定符
号化情報送信の要求を行なう。対局側の復号器30がこ
の特定符号化情報を受信すると、対向局の符号化器20
に対して無音入力要求を行ない一定時間、無音を符号化
処理する。無音の符号化情報を自局の復号器30が信号
処理を行なうことにより、対向局の符号化器20と自局
の復号器30の内部状態が一致し、異常状態からの復旧
を速やかに行なうことができる。
In the present invention, when the specific coded information with the line attached is received on the decoder 30 side, the corresponding processing is performed on the decoder 30 side. When the decoder 30 detects an abnormal state, it requests the encoder 20 of its own station to transmit specific encoded information. When the decoder 30 on the opposite station receives this specific encoded information, the encoder 20 on the opposite station receives the encoded information.
, A silent input request is made, and silence is encoded for a certain period of time. When the decoder 30 of the own station performs signal processing on the silent encoded information, the internal state of the encoder 20 of the opposite station matches the internal state of the decoder 30 of the own station, and recovery from the abnormal state is promptly performed. be able to.

【0015】従って、この発明の構成によれば、原理的
に存在しないオール“1”の木構造符号帳番号が復号器
30に入力された時には、何らかの異常状態(回線断や
回線貼り付き状態)とみなして雑音抑制処理を行なうこ
とができる。
Therefore, according to the configuration of the present invention, when an all- "1" tree structure codebook number that does not exist in principle is input to the decoder 30, some abnormal state (line disconnection or line sticking state) occurs. And the noise suppression processing can be performed.

【0016】(2)この場合において、原理的に出現し
ないオール“1”の木構造符号帳番号が復号器30に入
力された時を前記異常検出手段が検出して回線断や回線
貼り付き状態とみなし、回線の異常状態を検出して復号
器での雑音を抑制することを特徴としている。
(2) In this case, when the tree structure codebook number of all "1" which does not appear in principle is input to the decoder 30, the abnormality detecting means detects the line disconnection or line sticking state. And detects an abnormal state of the line to suppress noise in the decoder.

【0017】この発明の構成によれば、復号器30に異
常な信号が入力されたら、回線の異常であると判定し
て、復号器30での雑音を抑制することができる。 (3)この場合において、CELP方式の音声復号器の
合成フィルタの内部状態が発散し、雑音を発生したこと
を検出すると、自局の符号化器20の特定情報出力手段
22から対局の音声コーデックに対して木構造符号帳の
番号をオール“1”として符号化情報を送信することを
特徴としている。
According to the configuration of the present invention, when an abnormal signal is input to the decoder 30, it is determined that the line is abnormal and the noise in the decoder 30 can be suppressed. (3) In this case, when it is detected that the internal state of the synthesis filter of the CELP speech decoder has diverged and noise has been generated, the specific information output means 22 of the encoder 20 of the own station transmits the speech codec of the opposite station. The encoding information is transmitted by setting the numbers of the tree-structured codebook to all “1”.

【0018】この発明の構成によれば、復号器30の合
成フィルタの内部状態が発散した時には、自局の符号化
器20から異常を示すオール“1”を送信して、相手方
に異常を通知することができる。
According to the configuration of the present invention, when the internal state of the synthesis filter of the decoder 30 diverges, all "1" s indicating an abnormality are transmitted from the encoder 20 of the own station to notify the other party of the abnormality. can do.

【0019】(4)また、前記送信された符号化情報を
受信した時、木構造符号帳の番号がオール“1”であれ
ば、対局の音声復号器30で内部状態に発散状態が発生
したと判断し、無音入力手段21が自局の符号化器に無
音を入力して自局の符号化器の内部状態と対局の復号器
の内部状態を一致させることを特徴としている。
(4) When the transmitted coded information is received, if the number of the tree-structured codebook is all "1", a divergence state occurs in the internal state in the audio decoder 30 of the game. It is characterized in that the silence input means 21 inputs silence to the encoder of the own station and matches the internal state of the encoder of the own station with the internal state of the decoder of the opposite station.

【0020】この発明の構成によれば、対局で発散状態
が発生したことを検出したら、自局の符号化器に無音を
入力して対局の内部状態と一致させ、異常状態の復旧を
図ることができる。
According to the configuration of the present invention, when it is detected that a divergent state has occurred in a game, silence is input to an encoder of the own station to match the internal state of the game, thereby restoring an abnormal state. Can be.

【0021】(5)また、音声コーデックの起動時、対
局の音声復号器の立ち上がり時間を予測して符号化器の
入力を一定時間無音にすることを特徴としている。この
発明の構成によれば、対局の音声復号器の立ち上がりを
予測してその予測した時間で自局の符号化器を立ち上げ
るようにして、符号化器20と復号器30との位相を調
整するので発散等が発生しなくなる。
(5) Further, when the speech codec is activated, the rise time of the speech decoder of the opposite station is predicted, and the input of the encoder is silenced for a certain time. According to the configuration of the present invention, the phase of the encoder 20 and the decoder 30 are adjusted by predicting the rise of the audio decoder of the opposite station and starting the encoder of the own station at the predicted time. Therefore, divergence does not occur.

【0022】(6)また、前記復号器30は、入力した
音声符号が正常な場合には入力された音声符号化情報を
復号処理して復号音声として出力し、入力した音声符号
が異常な場合には、記憶していた前回のフレームの音声
符号化情報を復号処理して復号音声として出力すること
を特徴としている。
(6) If the input speech code is normal, the decoder 30 decodes the input speech coding information and outputs it as decoded speech. If the input speech code is abnormal, Is characterized in that the stored speech encoding information of the previous frame is decoded and output as decoded speech.

【0023】この発明の構成によれば、入力された音声
符号が異常な場合に、相関の高い記憶していた前回のフ
レーム情報を復号して音声信号として出力することによ
り、聞きやすい音声信号を得ることができる。
According to the configuration of the present invention, when the input speech code is abnormal, the previously stored frame information having a high correlation is decoded and output as a speech signal, so that an easy-to-listen speech signal is obtained. Obtainable.

【0024】(7)また、前記木構造符号帳番号のオー
ル“1”を利用して回線貼り付き、復号器内部状態発散
検出/復旧のいずれにも対応可能とすることを特徴とし
ている。
(7) Further, the present invention is characterized in that all the "1" s of the tree-structured codebook number are used to attach a line so that it is possible to cope with both detection and restoration of internal state divergence of the decoder.

【0025】この発明の構成によれば、異常状態を示す
オール“1”を異常検出、復旧のいずれにも用いること
により、処理が簡単になる。 (8)更に、前記木構造符号帳とは別の他の符号帳のオ
ール“0”を回線が“L”に張り付いた時と判断し、木
構造符号帳番号がオール“1”の時“H”に張り付いた
と判断することを特徴としている。
According to the configuration of the present invention, the processing is simplified by using all "1" s indicating an abnormal state for both abnormality detection and recovery. (8) Further, when it is determined that all “0” of another codebook other than the tree structure codebook is attached to the line “L” and the tree structure codebook number is all “1”, It is characterized in that it is determined that it has stuck to "H".

【0026】この発明の構成によれば、他の種類の符号
帳に対しても異常状態を判定することができる。
According to the configuration of the present invention, an abnormal state can be determined for other types of codebooks.

【0027】[0027]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態例を詳細に説明する。図2は本発明を実施する
復号器の構成例を示す回路図である。図1と同一のもの
は、同一の符号を付して示す。この実施の形態例は、木
構造符号帳を使用した音声コーデックの特定符号化情報
を回線貼り付き検出に使用した復号器の構成を示してい
る。復号器30には、通常時には正常なデータが、回線
貼り付き時にはオール“1”が入力される。34は音声
符号化情報を受ける回線インタフェースである。該回線
インタフェース34は、復号器30が受信したデータか
ら復号処理に必要なパラメータの抽出を行なう。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 2 is a circuit diagram showing a configuration example of a decoder embodying the present invention. 1 are denoted by the same reference numerals. This embodiment shows a configuration of a decoder that uses specific coding information of a voice codec using a tree-structured codebook for detection of line sticking. Normal data is input to the decoder 30 at normal times, and all “1” s are input at the time of line sticking. Reference numeral 34 denotes a line interface that receives voice encoded information. The line interface 34 extracts parameters necessary for the decoding process from the data received by the decoder 30.

【0028】35は抽出したパラメータの中で木構造符
号帳の番号を調査し、その値がオール“1”であるか否
かを調査する回線貼り付き検出部であり、図1の特定パ
ターン検出手段31に相当する。そして、回線貼り付き
検出部35での調査結果が正常であれば、パラメータ生
成部36は、復号処理に必要な符号帳ベクトル、フィル
タ係数、利得等の情報を生成し、セレクタ38を通して
復号処理部39に復号音声が生成される。
Numeral 35 denotes a line sticking detection unit for examining the number of the tree structure codebook in the extracted parameters and examining whether or not the value is all "1". It corresponds to the means 31. If the result of the check by the line sticking detection unit 35 is normal, the parameter generation unit 36 generates information such as a codebook vector, a filter coefficient, and a gain required for the decoding process, At 39, a decoded speech is generated.

【0029】パラメータ生成部36で生成された各パラ
メータは、前フレームパラメータ格納部37にコピーさ
れる。今、回線貼り付き検出部35で回線貼り付き状態
(オール“1”状態)が検出されると、前フレームパラ
メータ格納部37に格納されている前フレームの各パラ
メータがセレクタ38を介して復号処理部39に渡さ
れ、そこで復号音声が生成される。ここで、受信データ
が異常の時に、前フレーム時のデータを流すのは、異常
データのためにデータを流さないよりも流した方が音声
復号上都合がよいためである。通常、あるフレームの直
前のフレームデータは相関が極めて強いので、今回のデ
ータの代わりに代用で前回フレームデータを流した方が
都合がよいからである。
Each parameter generated by the parameter generator 36 is copied to the previous frame parameter storage 37. Now, when the line sticking detection unit 35 detects the line sticking state (all “1” state), each parameter of the previous frame stored in the previous frame parameter storage unit 37 is decoded through the selector 38. It is passed to a unit 39, where a decoded speech is generated. Here, the reason why the data of the previous frame is made to flow when the reception data is abnormal is that it is more convenient for the speech decoding to flow the data than to not flow the data due to the abnormal data. Usually, since the frame data immediately before a certain frame has a very strong correlation, it is more convenient to flow the previous frame data as a substitute for the current data.

【0030】この時、復号処理部39へ渡される利得情
報は最小利得値とすることにより、回線貼り付き状態が
数フレーム続いた時は徐々に復号音声のレベルを落とし
て雑音の発生を抑えることが可能である。
At this time, the gain information passed to the decoding processing unit 39 is set to the minimum gain value, so that when the line sticking state continues for several frames, the level of the decoded voice is gradually lowered to suppress the generation of noise. Is possible.

【0031】図3は本発明の一実施の形態例の動作を示
すフローチャートである。先ず回線インタフェース34
で木構造符号帳番号を抽出し(S1)、木構造符号帳の
番号をチェックする(S2)。その符号がオール“1”
であった場合、異常データということになるから、この
時には前フレームの復号処理パラメータを代わりに読み
出してデータとして使用する(S3)。
FIG. 3 is a flowchart showing the operation of the embodiment of the present invention. First, the line interface 34
To extract the tree structure codebook number (S1), and check the tree structure codebook number (S2). The sign is all "1"
In this case, the data is abnormal data. At this time, the decoding processing parameters of the previous frame are read instead and used as data (S3).

【0032】ステップS2において、木構造符号帳番号
がオール“1”でなかった場合には、パラメータ生成部
36で復号パラメータを生成して前フレームパラメータ
格納部37に新パラメータの格納を行なう(S4)。次
に、復号処理部39で信号処理がなされた後、復号音声
として出力される。以上の処理が必要なだけ繰り返され
ることになる。
If the tree structure codebook number is not all "1" in step S2, the parameter generation unit 36 generates a decoding parameter and stores the new parameter in the previous frame parameter storage unit 37 (S4). ). Next, after the signal processing is performed by the decoding processing unit 39, the signal is output as decoded sound. The above processing is repeated as necessary.

【0033】この実施の形態例によれば、入力された音
声符号化情報が異常な場合に、記憶していた前回のフレ
ーム情報を復号して音声信号として出力することによ
り、聞きやすい音声信号を得ることができる。
According to this embodiment, when the input audio coding information is abnormal, the stored previous frame information is decoded and output as an audio signal, so that an easy-to-hear audio signal is output. Obtainable.

【0034】図4は本発明の第1の実施の形態例を示す
ブロック図で、木構造符号帳番号オール“1”を復号器
30の内部状態検出に使用した実施の形態例である。図
2と同一のものは、同一の符号を付して示す。符号化器
20において、45は相手局からの入力音声か無音信号
を受けて、何れか一方を選択する入力切り替え部、46
は該入力切り替え部45の出力を受けて符号化を行なう
符号化部である。44は一定時間符号化器20の入力を
無音にするためのカウンタ部である。該カウンタ部44
は、前記入力切り替え部45に対して無音入力要求を出
して無音をセレクトさせる。
FIG. 4 is a block diagram showing a first embodiment of the present invention, in which the tree structure codebook number all "1" is used for detecting the internal state of the decoder 30. The same components as those in FIG. 2 are denoted by the same reference numerals. In the encoder 20, 45 is an input switching unit that receives an input voice or a silent signal from a partner station and selects one of them.
Is an encoding unit that performs encoding upon receiving the output of the input switching unit 45. Reference numeral 44 denotes a counter unit for silencing the input of the encoder 20 for a predetermined time. The counter section 44
Sends a silence input request to the input switching unit 45 to select silence.

【0035】47は該符号化部46からの符号化情報と
木構造符号帳番号オール“1”を受けて何れか一方を選
択して出力する符号化情報切り替え制御部である。48
は、該符号化情報切り替え制御部47の出力を受けて回
線に送出する符号化情報送信部である。
Reference numeral 47 denotes an encoded information switching control unit which receives the encoded information from the encoding unit 46 and the tree structure codebook number all "1" and selects and outputs one of them. 48
Is an encoded information transmitting unit that receives the output of the encoded information switching control unit 47 and sends it out to the line.

【0036】復号器30において、40は相手局からの
符号化情報を受信する符号化情報受信部、41は該符号
化情報受信部の出力を受けて符号帳番号がオール“1”
であるかどうかを検出する符号帳番号オール“1”検出
部である。該符号帳番号オール“1”検出部41の出力
は、無音入力要求として前記カウンタ部44に与えられ
る。
In the decoder 30, reference numeral 40 denotes a coded information receiving unit for receiving coded information from the partner station, and 41 denotes a codebook number which is all "1" upon receiving the output of the coded information receiving unit.
Is a codebook number all “1” detection unit for detecting whether or not the codebook number is “1”. The output of the codebook number all "1" detection unit 41 is given to the counter unit 44 as a silence input request.

【0037】42は符号化情報受信部40の出力を復号
する復号部である。該復号部42からは復号音声が出力
される。43は復号部42からの出力(合成フィルタの
内部状態)を受けて異常を検出する異常検出部である。
該異常検出部43の出力は符号化器20の符号化情報切
り替え部47に木構造符号帳番号オール“1”を要求す
る。このように構成された回路の動作を説明すれば、以
下の通りである。
A decoding unit 42 decodes the output of the encoded information receiving unit 40. The decoding unit 42 outputs a decoded voice. Reference numeral 43 denotes an abnormality detection unit that receives an output from the decoding unit 42 (the internal state of the synthesis filter) and detects an abnormality.
The output of the abnormality detection unit 43 requests the coded information switching unit 47 of the encoder 20 to have the tree structure codebook number all “1”. The operation of the circuit thus configured will be described as follows.

【0038】入力切り替え部43は、入力音声と無音入
力の切り替えを行なう。カウンタ部44は、一定時間符
号化器20の入力を無音にするためのカウンタであり、
自局の復号器30からの無音入力要求に入力切り替え部
45が一定時間無音を選択するように制御する。
The input switching unit 43 switches between input voice and silent input. The counter unit 44 is a counter for silencing the input of the encoder 20 for a fixed time,
In response to a silent input request from the decoder 30 of the own station, the input switching unit 45 controls so as to select silence for a certain time.

【0039】入力音声若しくは無音信号は、符号化部4
6で符号化処理され、符号化情報を生成する。この符号
化情報は、符号化情報切り替え制御部47を通過し、符
号化情報送信部48から回線へ出力される。
The input voice or silence signal is encoded by the encoding unit 4
6 to generate encoded information. This encoded information passes through the encoded information switching control unit 47 and is output from the encoded information transmitting unit 48 to the line.

【0040】符号化情報切り替え制御部47では、自局
の復号器30が合成フィルタの内部状態異常を異常検出
部43により検出した時、要求信号に従って符号化器2
0で生成された木構造符号帳番号オール“1”側に切り
替える。
In the coded information switching control unit 47, when the decoder 30 of its own station detects an abnormality in the internal state of the synthesis filter by the abnormality detecting unit 43, the coder 2 switches the encoder 2 according to the request signal.
0 is switched to the tree structure codebook number all “1” side generated.

【0041】復号器30側では、符号化情報受信部40
にて回線から符号化情報を受信した後、符号帳番号オー
ル“1”検出部41にて、木構造符号帳の番号がオール
“1”か否かを検出する。
On the decoder 30 side, an encoded information receiving unit 40
After receiving the encoded information from the line, the codebook number all "1" detector 41 detects whether or not the tree structure codebook number is all "1".

【0042】オール“1”が検出されると、符号帳番号
オール“1”検出部41は、対向局の復号器30の内部
状態が異常になったと判断し、自局の符号化器20のカ
ウンタ部44に無音入力要求を出す。復号部42では、
受信した符号情報から復号処理を行ない復号音声を生成
する。この時、若し受信した木構造符号帳番号がオール
“1”であった場合、先に説明した回線貼り付き検出時
の処理と同様に、前フレームの符号化情報を基に復号処
理を行なう。これにより、滑らかな復号音声を得ること
ができる。
When all "1" s are detected, the codebook number all "1" detector 41 determines that the internal state of the decoder 30 of the opposite station has become abnormal, and A silent input request is issued to the counter unit 44. In the decoding unit 42,
A decoding process is performed from the received code information to generate a decoded speech. At this time, if the received tree-structured codebook number is all “1”, the decoding process is performed based on the encoding information of the previous frame, as in the process of detecting the sticking of the line described above. . As a result, smooth decoded speech can be obtained.

【0043】また、異常検出部43により復号器内の合
成フィルタ内部状態の異常が検出されると、自局の符号
化器20の符号化情報切り替え制御部47により木構造
符号帳番号をオール“1”にするように要求を出す。
When the abnormality detecting section 43 detects an abnormality in the internal state of the synthesis filter in the decoder, the encoding information switching control section 47 of the encoder 20 of the own station changes the tree-structured codebook number to "all". Request to make it 1 ".

【0044】次に、これらの処理を2個の端末AとB間
の処理シーケンスで説明する。図5は第1の実施の形態
例の異常検出、復旧シーケンス例を示す図である。端末
Bからの符号化情報は端末Aの復号器で受信される(S
1)。ここで符号化情報を受けた端末Aの復号器で内部
異常が検出されると(S2)、端末Aの符号化器に対し
て木構造符号帳の番号をオール“1”にするように要求
する(S3)。
Next, these processes will be described with reference to a processing sequence between the two terminals A and B. FIG. 5 is a diagram illustrating an example of an abnormality detection and recovery sequence according to the first embodiment. The encoded information from terminal B is received by the decoder of terminal A (S
1). Here, when an internal abnormality is detected by the decoder of the terminal A that has received the encoded information (S2), the decoder of the terminal A is requested to set the number of the tree-structured codebook to all “1”. (S3).

【0045】端末Aの符号化器は、端末Bに対して木構
造符号帳の番号をオール“1”にして符号化情報を送出
する(S4)。端末Bは、オール“1”の木構造符号帳
の番号を受信すると符号化器に対して無音入力要求を出
し(S5)、端末Bの符号化器の入力を一定時間無音入
力に切り替える(S6)。符号化器の出力を無音にする
と同期してカウンタ(タイマ)を駆動する(S7)。一
定時間を検出するためである。
The encoder of the terminal A sets the number of the tree-structured codebook to all “1” to the terminal B and transmits the encoded information (S4). Upon receiving the number of the tree-structured codebook of all "1", terminal B issues a silent input request to the encoder (S5), and switches the input of the encoder of terminal B to silent input for a certain period of time (S6). ). When the output of the encoder is silenced, the counter (timer) is driven synchronously (S7). This is for detecting a certain time.

【0046】そして、端末Bは端末Aに対して無音入力
時の符号化情報を送信する(S8)。無音入力時の符号
化情報を受信した端末Aの復号器は、復号処理を行なう
ことにより、徐々に内部状態が端末Bの内部状態と一致
し、異常状態からの復旧を速やかに行なうことができ
る。その後、通常音声が端末Bに入力され(S9)、端
末A側にその符号化情報が送信される。
Then, the terminal B transmits the coded information at the time of silent input to the terminal A (S8). The decoder of terminal A, which has received the coded information at the time of silence input, performs the decoding process so that the internal state gradually matches the internal state of terminal B, and can promptly recover from the abnormal state. . Thereafter, the normal voice is input to the terminal B (S9), and the encoded information is transmitted to the terminal A side.

【0047】図6、図7は第1の実施の形態例による復
旧動作の実施の形態例を示すフローチャートで、前述し
た動作をソフトウェアで実現したものである。 符号化器側の動作 先ず、回路を初期化する(S1)。次に、カウンタ部4
4で無音入力要求フラグが立っているか否かをチェック
する(S2)。無音入力要求が立っていない場合には、
符号化器側では、通常の音声を入力する(S3)。無音
入力要求が立っている場合には、入力切り替え部45は
無音側を選択して符号化部46に与える。該符号化部4
6(図4参照)はこれらの信号を符号化処理する(S
5)。
FIGS. 6 and 7 are flowcharts showing an embodiment of the recovery operation according to the first embodiment. The above operation is realized by software. Operation on the encoder side First, the circuit is initialized (S1). Next, the counter unit 4
In step S4, it is checked whether a silent input request flag is set (S2). If there is no silent input request,
On the encoder side, normal speech is input (S3). If a silent input request has been made, the input switching unit 45 selects the silent side and supplies it to the encoding unit 46. The encoding unit 4
6 (see FIG. 4) encodes these signals (S
5).

【0048】次に、符号化器20は自局復号器の発散フ
ラグが立ったかどうかを異常検出部43からの出力によ
り認識する(S6)。発散フラグが立っていない場合に
は、特に自局復号器発散フラグを“0”にする(S
8)。ステップS6で発散フラグが立っている場合に
は、符号化情報切り替え制御部47は符号化部46の出
力ではなく木構造符号帳番号オール“1”側を選択し、
自局復号器発散フラグを“0”にする(S8)。自局復
号器発散フラグを“0”にした後、符号化情報送信部4
8から符号化情報の送信処理を行なう(S9)。
Next, the encoder 20 recognizes whether or not the divergence flag of the local station decoder has been set based on the output from the abnormality detector 43 (S6). If the divergence flag is not set, the divergence flag of the own-station decoder is set to "0" (S
8). If the divergence flag is set in step S6, the coding information switching control unit 47 selects the tree structure codebook number all “1” side instead of the output of the coding unit 46,
The self-station decoder divergence flag is set to "0" (S8). After setting the local station divergence flag to “0”, the encoded information transmitting unit 4
From step 8, transmission processing of encoded information is performed (S9).

【0049】復号器側の動作 復号器30側では、符号化器20から送られてきた信号
を符号化情報受信部40で受信する(S10)。符号帳
番号オール“1”検出部41は、受信した符号化情報を
チェックして木構造符号帳番号がオール“1”であるか
どうかを検出する(S11)。受信した符号が木構造符
号帳番号オール“1”であった時には、復号部42は、
図示しないメモリに記憶されている前フレームの符号化
情報で置き換え(S12)、無音入力要求フラグを1に
して無音入力期間をカウントするカウンタをリセットす
る(S13)。
Operation on the Decoder Side In the decoder 30, the signal transmitted from the encoder 20 is received by the encoded information receiving unit 40 (S10). The codebook number all “1” detection unit 41 checks the received coding information to detect whether the tree structure codebook number is all “1” (S11). When the received code is all tree-structured codebook numbers “1”, the decoding unit 42
It replaces the encoded information of the previous frame stored in the memory (not shown) (S12), resets a silence input request flag to 1, and resets a counter for counting the silence input period (S13).

【0050】復号部42は、符号化情報を復号化する
(S14)。異常検出部43は、復号部42の出力を受
けて内部状態発散が生じているかを検出する(S1
5)。発散が検出されない場合には、ステップS2に戻
る。
The decoding section 42 decodes the encoded information (S14). Upon receiving the output of the decoding unit 42, the abnormality detecting unit 43 detects whether internal state divergence has occurred (S1).
5). If no divergence is detected, the process returns to step S2.

【0051】発散が検出された場合には、自局の復号器
の発散検出フラグを“1”にする(S17)。その後、
カウンタ部44は無音入力要求があるかどうかチェック
する(S18)。無音要求がある場合には、カウンタ部
44はカウント値を更新する(S19)。そして、無音
入力が終了したかどうかチェックする(S20)。無音
入力が終了していない場合には、ステップS2に戻る。
無音入力が終了した場合には、無音入力要求フラグを
“0”にし(S21)、ステップS2に戻る。ステップ
S16において、発散が検出されなかった場合、ステッ
プS18において無音入力要求フラグが立っていなかっ
た場合でも同様である。
When the divergence is detected, the divergence detection flag of the decoder of the own station is set to "1" (S17). afterwards,
The counter unit 44 checks whether there is a silent input request (S18). If there is a silence request, the counter unit 44 updates the count value (S19). Then, it is checked whether or not the silent input has been completed (S20). If the silent input has not been completed, the process returns to step S2.
When the silent input has been completed, the silent input request flag is set to "0" (S21), and the process returns to step S2. The same applies to the case where no divergence is detected in step S16 and the case where the silent input request flag is not set in step S18.

【0052】このように、本発明によれば、復号器30
に異常な信号が入力されたら、回線の異常であると判定
して復号器30での雑音を抑制することができる。ま
た、復号器30の合成フィルタの内部状態が発散した時
には、自局の符号化器20から異常を示すオール“1”
を送信して、相手方に異常を通知することができる。
Thus, according to the present invention, the decoder 30
When an abnormal signal is input to the decoder 30, it is determined that the line is abnormal, and the noise in the decoder 30 can be suppressed. Further, when the internal state of the synthesis filter of the decoder 30 diverges, the encoder 20 of the own station outputs an all “1” indicating an abnormality.
To notify the other party of the abnormality.

【0053】また、対局で発散状態が発生したことを検
出したら、自局の符号化器に無音を入力して対局の内部
状態と一致させ、異常状態の復旧を図ることができる。
図8は本発明の第2の実施の形態例を示すブロック図で
ある。図4と同一のものは、同一の符号を付して示す。
この実施の形態例は、回線貼り付き検出と、復号器30
の内部状態異常検出に特定符号化情報を使用するように
したものである。
When it is detected that a divergent state has occurred in the game, silence can be input to the encoder of the own station to match the internal state of the game, thereby restoring the abnormal state.
FIG. 8 is a block diagram showing a second embodiment of the present invention. The same components as those in FIG. 4 are denoted by the same reference numerals.
In this embodiment, the line sticking detection and the decoder 30
The specific coded information is used for detecting the internal state abnormality of.

【0054】図において、50は符号化情報受信部40
の出力を受けて回線貼り付き状態を検出する回線貼り付
き検出部、51は該回線貼り付き検出部50の出力と符
号長番号オール“1”検出部41の出力を受けるオアゲ
ートである。52は、前フレームパラメータを格納する
前フレームパラメータ格納部である。オアゲート51の
出力は、無音入力要求としてカウンタ部44に入ると共
に、前記前フレームパラメータ格納部52に入る。この
ように構成されたシステムの動作を説明すれば、以下の
通りである。
In the figure, reference numeral 50 denotes an encoded information receiving unit 40.
A line sticking detection section 51 for detecting the line sticking state in response to the output of the line sticking detection section 51 receives the output of the line sticking detection section 50 and the output of the code length number all "1" detecting section 41. Reference numeral 52 denotes a previous frame parameter storage unit that stores a previous frame parameter. The output of the OR gate 51 enters the counter unit 44 as a silence input request and also enters the previous frame parameter storage unit 52. The operation of the system configured as described above will be described below.

【0055】木構造符号帳の番号がオール“1”である
ことを復号器30が検出すると、回線貼り付き時の処理
を行なうと共に、対局の復号器30の内部状態と自局の
符号化器20の内部状態を一致させる処理を行なう。
When the decoder 30 detects that the numbers of the tree-structured codebook are all "1", the decoder 30 performs processing when the line is attached, and performs the internal state of the decoder 30 of the opposite station and the encoder of the own station. A process for matching the internal states of the 20 is performed.

【0056】また、システムのリセット時、対局の復号
器30でフレーム同期を検出し、復号処理を開始する
際、内部状態が符号化器20側と大きく異なるため、場
合によっては対局の復号音声が発散状態となる可能性が
ある。そこで、符号化器20のカウンタ部44におい
て、システムのリセット時、対局の復号器30がフレー
ム同期を確立する時間に見合った期間、無音入力処理を
行なうように設定する。
When the system is reset, the decoder 30 of the opposite station detects the frame synchronization, and when the decoding process is started, the internal state is greatly different from that of the encoder 20 side. There is a possibility of divergence. Therefore, the counter section 44 of the encoder 20 is set so that when the system is reset, the silent input process is performed for a period corresponding to the time when the decoder 30 of the opposite station establishes frame synchronization.

【0057】この制御により、対局の復号器30の処理
開始時の内部状態が符号化器20側の内部状態とほぼ一
致し、復号器30側でのリセット直後の復号音声の発散
を防止することが可能となる。
By this control, the internal state at the start of processing of the decoder 30 of the opposite station substantially matches the internal state of the encoder 20 side, and the divergence of the decoded voice immediately after resetting on the decoder 30 side is prevented. Becomes possible.

【0058】図9,図10は本発明の第2の実施の形態
例の動作を示すフローチャートである。 符号化器側の動作 先ず、回路を初期化する(S1)。次に、カウンタ部4
4をリセットし、無音入力要求フラグを“1”にする
(S2)。符号化器20側では、無音入力要求フラグが
立っているかどうかをチェックする(S3)。無音要求
フラグが立っている場合にはカウンタ部44の出力で入
力切り替え部45を無音信号側に切り替え、無音入力を
行なう(S5)。無音要求フラグが立っていない場合に
は、カウンタ部44は入力切り替え部45を入力音声側
に切り替え、通常の音声を入力する(S4)。
FIGS. 9 and 10 are flowcharts showing the operation of the second embodiment of the present invention. Operation on the encoder side First, the circuit is initialized (S1). Next, the counter unit 4
4 is reset, and the silent input request flag is set to "1" (S2). The encoder 20 checks whether the silent input request flag is set (S3). If the silence request flag is on, the input switching unit 45 is switched to the silence signal side by the output of the counter unit 44, and a silence input is performed (S5). When the silence request flag is not set, the counter unit 44 switches the input switching unit 45 to the input audio side, and inputs a normal audio (S4).

【0059】符号化部46は、入力切り替え部45から
送られてくる信号を符号化する(S6)。次に、符号化
器20側は、異常検出部43からの信号を受けて自局の
復号器に発散フラグが立っているかどうかをチェックす
る(S7)。発散フラグが立っていた場合には、符号化
情報切り替え制御部47は、異常検出部43の出力を切
り替え信号として木構造符号帳番号オール“1”を選択
し、通常の符号をオール“1”に置き替える。
The encoding section 46 encodes the signal sent from the input switching section 45 (S6). Next, the encoder 20 receives the signal from the abnormality detector 43 and checks whether or not the divergence flag is set in the decoder of the own station (S7). When the divergence flag is set, the coding information switching control unit 47 selects the tree structure codebook number all “1” as a switching signal using the output of the abnormality detection unit 43, and sets the normal code to all “1”. Replace with

【0060】そして、ステップS8でオール“1”符号
に置き換えた場合、及びステップS7で発散フラグが立
っていなかった場合には、自局復号器発散フラグを
“0”に設定し(S9)、符号化情報送信部48は、符
号化情報切り替え制御部47の出力である符号化情報を
回線に送出する(S10)。
If the code is replaced with all "1" codes in step S8, and if the divergence flag is not set in step S7, the local station divergence flag is set to "0" (S9). The encoded information transmitting unit 48 sends the encoded information output from the encoded information switching control unit 47 to the line (S10).

【0061】復号器側の動作 復号器30側では、符号化情報受信部40が対局の符号
化器20から送信されてきた符号化情報を受信する(S
11)。回線貼り付き検出部50は、回線貼り付きがあ
るかどうかチェックする(S12)。回線貼り付きがあ
る場合には、復号部42は、前フレームパラメータ格納
部52に格納されている前フレームパラメータを基に復
号処理を行なう(S14)。今回のフレームと前回のフ
レームとは一般に相関が高いから、1フレーム前のパラ
メータを用いて復号化しても問題はないからである。次
に、無音入力要求フラグを“1”にし、オアゲート51
からカウンタ部44をリセットする(S15)。
Operation on the Decoder Side On the decoder 30 side, the coded information receiving unit 40 receives the coded information transmitted from the coder 20 of the opposite station (S
11). The line sticking detection unit 50 checks whether there is line sticking (S12). If there is a line sticking, the decoding unit 42 performs a decoding process based on the previous frame parameters stored in the previous frame parameter storage unit 52 (S14). This is because the current frame and the previous frame generally have a high correlation, so that there is no problem even if decoding is performed using the parameter of the previous frame. Next, the silent input request flag is set to “1”, and the OR gate 51 is set.
Resets the counter section 44 (S15).

【0062】次に、復号部42は、入力符号の復号処理
を行なう(S16)。この復号部42の復号処理におい
て、異常検出部42は内部状態発散の検出処理を行なう
(S17)。合成フィルタが異常になり、自局復号器の
発散検出フラグが“1”になったら、異常検出部43が
自局復号器の発散検出フラグを“1”にする(S1
9)。次に、無音入力要求フラグが“1”になっている
か否かをチェックし(S20)、無音入力要求フラグが
“1”になっている場合には、カウンタ部44を更新す
る(S21)。
Next, the decoding section 42 performs a decoding process of the input code (S16). In the decoding process of the decoding unit 42, the abnormality detection unit 42 performs a process of detecting internal state divergence (S17). When the synthesis filter becomes abnormal and the divergence detection flag of the own station decoder becomes “1”, the abnormality detecting unit 43 sets the divergence detection flag of the own station decoder to “1” (S1).
9). Next, it is checked whether or not the silence input request flag is "1" (S20). If the silence input request flag is "1", the counter 44 is updated (S21).

【0063】そして、無音入力が終了であるかどうかチ
ェックし(S22)、無音入力が終了である場合には、
無音入力要求フラグを“0”にして(S23)、ステッ
プS3に戻る。無音入力が終了していない場合には、ス
テップS3に戻る。ステップS18において、発散が検
出されない場合、及びステップS20において無音入力
要求フラグが立っていない場合も同様である。
Then, it is checked whether or not the silent input has been completed (S22). If the silent input has been completed,
The silent input request flag is set to "0" (S23), and the process returns to step S3. If the silent input has not been completed, the process returns to step S3. The same applies to the case where no divergence is detected in step S18 and the case where the silent input request flag is not set in step S20.

【0064】この実施の形態例によれば、前記復号器3
0は、入力した音声符号が正常な場合には入力された音
声符号を通常処理した信号を復号音声として出力し、入
力した音声符号が異常な場合には、記憶していた前回の
フレームの情報を復号音声として出力し、入力された音
声符号が異常な場合に、記憶していた前回のフレーム情
報を復号して音声信号として出力することにより、聞き
やすい音声信号を得ることができる。
According to this embodiment, the decoder 3
If the input speech code is normal, a signal obtained by normally processing the input speech code is output as a decoded speech, and if the input speech code is abnormal, the stored information of the previous frame is stored. Is output as a decoded voice, and when the input voice code is abnormal, the stored previous frame information is decoded and output as a voice signal, so that an easy-to-hear voice signal can be obtained.

【0065】以上説明した実施の形態例では、木構造符
号帳を用いた場合を例にとったが、本発明はこれに限る
ものではなく、別の他の符号帳のオール“0”を回線が
“L”に張り付いた時と判断し、木構造符号帳番号がオ
ール“1”の時“H”に張り付いたと判断することもで
きる。このようにすれば、他の種類の符号帳に対しても
異常状態を判定することができる。
In the above-described embodiment, the case where a tree-structured codebook is used is taken as an example. However, the present invention is not limited to this, and all “0” s of another codebook are connected to the line. Can be determined to be attached to "H" when the tree structure codebook number is all "1". In this way, an abnormal state can be determined for other types of codebooks.

【0066】また、本発明では木構造符号帳のオール
“1”の時のみを使用しているが、他の形式の符号帳で
も流用することができる。また、本発明では回線が
“H”レベルに貼りついた時、木構造符号帳の番号もオ
ール“1”になることを利用して、回線貼り付きの情報
をオール“1”を想定した。
In the present invention, only the case where the tree structure codebook is all "1" is used, but codebooks of other formats can be used. Also, in the present invention, it is assumed that the information with line sticking is all "1" by utilizing the fact that the number of the tree-structured codebook becomes all "1" when the line sticks to the "H" level.

【0067】これとは別に、他の形式の符号帳(例え
ば、適応符号帳)を利用し、回線が“L”レベルに貼り
付く時オール“0”の符号帳の番号を生成するならば、
回線のH/L貼り付きに対し、上記の回線異常検出、対
策を行なうことも可能である。
Separately from this, if a codebook of another format (for example, an adaptive codebook) is used to generate a codebook number of all “0” when the line is attached to the “L” level,
It is also possible to perform the above-described line abnormality detection and countermeasure against the line H / L sticking.

【0068】[0068]

【発明の効果】以上、詳細に説明したように、本発明に
よれば、 (1)木構造符号帳を持つCELP方式の音声コーデッ
クにおいて、符号化器側に一定時間無音を入力する無音
入力手段と、特定符号化情報を出力する特定情報出力手
段と備え、復号器側に受信した符号化情報から特定パタ
ーンを検出する特定パターン検出手段と、復号器の内部
状態の異常を検出する異常検出手段と、異常状態検出結
果を自局の符号化器に通知する異常通知手段とを備える
ことにより、原理的に存在しないオール“1”の木構造
符号帳番号が復号器に入力された時には、何らかの異常
状態(回線断や回線貼り付き状態)とみなして雑音抑制
処理を行なうことができる。
As described above in detail, according to the present invention, (1) a silent input means for inputting silence for a fixed time to an encoder side in a CELP type speech codec having a tree-structured codebook. And specific information output means for outputting specific encoded information, specific pattern detecting means for detecting a specific pattern from the encoded information received on the decoder side, and abnormality detecting means for detecting an abnormality in the internal state of the decoder And an abnormality notifying means for notifying the encoder of the own station of an abnormal state detection result, so that when a tree structure codebook number that is all “1” that does not exist in principle is input to the decoder, Noise suppression processing can be performed by regarding the state as an abnormal state (line disconnection or line sticking state).

【0069】(2)この場合において、原理的に出現し
ないオール“1”の木構造符号帳番号が復号器に入力さ
れた時を前記異常検出手段が検出して回線断や回線貼り
付き状態とみなし、回線の異常状態を検出して復号器で
の雑音を抑制することにより、復号器に異常な信号が入
力されたら、回線の異常であると判定して、復号器での
雑音を抑制することができる。
(2) In this case, when the tree structure codebook number of all "1" which does not appear in principle is input to the decoder, the abnormality detecting means detects the state and the state of line disconnection or line sticking. Assuming, by detecting an abnormal state of the line and suppressing noise at the decoder, if an abnormal signal is input to the decoder, it is determined that the line is abnormal and the noise at the decoder is suppressed. be able to.

【0070】(3)この場合において、CELP方式の
音声復号器の合成フィルタの内部状態が発散し、雑音を
発生したことを検出すると、自局の符号化器の特定情報
出力手段から対局の音声コーデックに対して木構造符号
帳の番号をオール“1”として符号化情報を送信するこ
とにより、復号器の合成フィルタの内部状態が発散した
時には、自局の符号化器から異常を示すオール“1”を
送信して、相手方に異常を通知することができる。
(3) In this case, when it is detected that the internal state of the synthesis filter of the CELP type speech decoder has diverged and noise has occurred, the specific information output means of the encoder of the own station outputs the speech of the opposite station. By transmitting the encoding information with the number of the tree-structured codebook being all “1” to the codec, when the internal state of the synthesis filter of the decoder diverges, the encoding of the own station shows an “all” indicating an abnormality. 1 "can be transmitted to notify the other party of the abnormality.

【0071】(4)また、前記送信された符号化情報を
受信した時、木構造符号帳の番号がオール“1”であれ
ば、対局の音声復号器で内部状態に発散状態が発生した
と判断し、無音入力手段が自局の符号化器に無音を入力
して自局の符号化器の内部状態と対局の内部状態を一致
させることにより、対局で発散状態が発生したことを検
出したら、自局の符号化器に無音を入力して対局の内部
状態と一致させ、異常状態の復旧を図ることができる。
(4) When the transmitted encoded information is received, if the number of the tree-structured codebook is all “1”, it is determined that a divergent state has occurred in the internal state in the audio decoder of the game. Judgment, when the silence input means detects that a divergence state has occurred in the game by inputting silence to the encoder of the own station and matching the internal state of the encoder of the own station with the internal state of the game. Then, the silent state is input to the encoder of the own station to match the internal state of the opposite station, thereby recovering the abnormal state.

【0072】(5)また、音声コーデックの起動時、対
局の音声復号器の立ち上がり時間を予測して符号化器の
入力を一定時間無音にすることにより、対局の音声復号
器の立ち上がりを予測してその予測した時間で自局の符
号化器を立ち上げるようにして、符号化器と復号器との
位相を調整するので発散等が発生しなくなる。
(5) When the speech codec is activated, the rise time of the speech decoder of the game is predicted by estimating the rise time of the speech decoder of the game and making the input of the encoder silent for a certain period of time. Then, the encoder of the own station is started at the predicted time and the phases of the encoder and the decoder are adjusted, so that divergence and the like do not occur.

【0073】(6)また、前記復号器は、入力した音声
符号が正常な場合には入力された音声符号化情報を復号
処理して復号音声として出力し、入力した音声符号化情
報が異常な場合には、記憶していた前回のフレームの音
声符号化情報を復号処理して復号音声として出力するこ
とにより、入力された音声符号が異常な場合に、記憶し
ていた前回のフレーム情報を復号して音声信号として出
力することにより、聞きやすい音声信号を得ることがで
きる。
(6) When the input speech code is normal, the decoder decodes the inputted speech coding information and outputs it as decoded speech, and the inputted speech coding information is abnormal. In this case, by decoding the stored speech encoding information of the previous frame and outputting the decoded speech as decoded speech, if the inputted speech code is abnormal, the stored previous frame information can be decoded. By outputting the audio signal as an audio signal, an easy-to-listen audio signal can be obtained.

【0074】(7)また、前記木構造符号帳番号のオー
ル“1”を利用して回線貼り付き、復号器内部状態発散
検出/復旧のいずれにも対応可能とすることにより、異
常状態を示すオール“1”を異常検出、復旧のいずれに
も用いることにより、処理が簡単になる。
(7) An abnormal state is indicated by using the tree-structured codebook number "1" to enable line sticking and detection / recovery of internal state divergence of the decoder. By using all "1" for both abnormality detection and recovery, the processing is simplified.

【0075】(8)更に、前記木構造符号帳とは別の他
の符号帳のオール“0”を回線が“L”に張り付いた時
と判断し、木構造符号帳番号がオール“1”の時“H”
に張り付いたと判断することにより、他の種類の符号帳
に対しても異常状態を判定することができる。
(8) Further, it is determined that all “0” of another codebook other than the tree structure codebook is when the line is stuck to “L”, and the tree structure codebook number is all “1”. "H"
, It is possible to determine an abnormal state for other types of codebooks.

【0076】このように、本発明によれば、回線異常状
態や復号器の内部異常状態を検出して速やかに復旧する
ことができる音声コーデックの符号帳を利用した異常状
態検出/復旧装置を提供することができる。
As described above, according to the present invention, there is provided an abnormal state detecting / restoring apparatus using a codebook of an audio codec capable of detecting a line abnormal state or an internal abnormal state of a decoder and quickly recovering it. can do.

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

【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.

【図2】本発明を実施する復号器の構成例を示す回路図
である。
FIG. 2 is a circuit diagram illustrating a configuration example of a decoder embodying the present invention.

【図3】本発明の一実施の形態例の動作を示すフローチ
ャートである。
FIG. 3 is a flowchart showing the operation of the embodiment of the present invention.

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

【図5】第1の実施の形態例の異常検出、復旧シーケン
ス例を示す図である。
FIG. 5 is a diagram illustrating an example of an abnormality detection and recovery sequence according to the first embodiment.

【図6】第1の実施の形態例の動作を示すフローチャー
トである。
FIG. 6 is a flowchart showing the operation of the first embodiment.

【図7】第1の実施の形態例の動作を示すフローチャー
トである。
FIG. 7 is a flowchart showing the operation of the first embodiment.

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

【図9】第2の実施の形態例の動作を示すフローチャー
トである。
FIG. 9 is a flowchart showing the operation of the second embodiment.

【図10】第2の実施の形態例の動作を示すフローチャ
ートである。
FIG. 10 is a flowchart showing the operation of the second embodiment.

【図11】符号化部と復号部のタイミングのずれの説明
図である。
FIG. 11 is an explanatory diagram of a timing difference between an encoding unit and a decoding unit.

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

10 音声コーデック 20 符号化器 21 無音入力手段 22 特定情報出力手段 30 復号器 31 特定パターン検出手段 32 異常検出手段 33 異常通知手段 DESCRIPTION OF SYMBOLS 10 Speech codec 20 Encoder 21 Silence input means 22 Specific information output means 30 Decoder 31 Specific pattern detection means 32 Abnormality detection means 33 Abnormality notification means

フロントページの続き (72)発明者 西田 文昭 神奈川県川崎市中原区上小田中4丁目1番 1号 富士通株式会社内Continuation of the front page (72) Inventor Fumiaki Nishida 4-1-1, Kamidadanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Fujitsu Limited

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 木構造符号帳を持つCELP方式の音声
コーデックにおいて、 符号化器側に一定時間無音を入力する無音入力手段と、
特定符号化情報を出力する特定情報出力手段と備え、 復号器側に受信した符号化情報から特定パターンを検出
する特定パターン検出手段と、復号器の内部状態の異常
を検出する異常検出手段と、異常状態検出結果を自局の
符号化器に通知する異常通知手段とを備えたことを特徴
とする音声コーデックの異常状態検出/復旧装置。
1. A speech codec of a CELP system having a tree-structured codebook, comprising: a silence input means for inputting silence for a predetermined time to an encoder;
A specific information output unit that outputs specific encoded information, a specific pattern detection unit that detects a specific pattern from the encoded information received on the decoder side, and an abnormality detection unit that detects an abnormality in an internal state of the decoder, An abnormal state detecting / restoring device for a voice codec, comprising: an abnormal state notifying unit for notifying an encoder of the own station of an abnormal state detection result.
【請求項2】 原理的に出現しないオール“1”の木構
造符号帳番号が復号器に入力された時を前記異常検出手
段が検出して回線断や回線貼り付き状態とみなし、回線
の異常状態を検出して復号器での雑音を抑制することを
特徴とする音声コーデックの異常状態検出/復旧装置。
2. The abnormality detecting means detects when a tree structure codebook number of all "1" which does not appear in principle is inputted to the decoder, and regards the state as a line disconnection or line sticking state, and a line abnormality is detected. An abnormal state detection / restoration apparatus for a speech codec, which detects a state and suppresses noise in a decoder.
【請求項3】 CELP方式の音声復号器の合成フィル
タの内部状態が発散し、雑音を発生したことを検出する
と、前記特定情報出力手段は自局の符号化器から対局の
音声コーデックに対して木構造符号帳の番号をオール
“1”として符号化情報を送信することを特徴とする請
求項1記載の音声コーデックの異常状態検出/復旧装
置。
3. Upon detecting that the internal state of the synthesis filter of the speech decoder of the CELP system has diverged and generated noise, the specific information output means sends a signal from its own encoder to the speech codec of the opposite station. 2. The apparatus for detecting and recovering from an abnormal state of a speech codec according to claim 1, wherein the encoded information is transmitted with all tree structure codebook numbers being "1".
【請求項4】 前記送信された符号化情報を受信した
時、前記特定パターン検出手段が木構造符号帳の番号が
オール“1”であれば、対局の音声復号器で内部状態に
発散状態が発生したと判断し、前記無音入力手段が自局
の符号化器に無音を入力して自局の符号化器の内部状態
と対局の復号器の内部状態を一致させることを特徴とす
る請求項2記載の音声コーデックの異常状態検出/復旧
装置。
4. When receiving the transmitted coded information, if the specific pattern detection means determines that the number of the tree-structured codebook is all “1”, the divergent state of the internal voice decoder is set to the internal state. The silence input means determines that a noise has occurred, and the silence input means inputs silence to the encoder of the own station to match the internal state of the encoder of the local station with the internal state of the decoder of the opposite station. 2. The abnormal state detection / restoration device of the audio codec according to 2.
【請求項5】 音声コーデックの起動時、対局の音声復
号器の立ち上がり時間を予測してし符号化器の入力を一
定時間無音にすることを特徴とする請求項1記載の音声
コーデックの異常状態検出/復旧装置。
5. The abnormal state of the speech codec according to claim 1, wherein at the time of activation of the speech codec, a rise time of a speech decoder of a game is predicted and the input of the encoder is silenced for a certain time. Detection / recovery device.
【請求項6】 前記復号器は、入力した音声符号が正常
な場合には入力された音声符号化情報を復号処理して復
号音声として出力し、入力した音声符号が異常な場合に
は、記憶していた前回のフレームの音声符号化情報を復
号処理して復号音声として出力することを特徴とする請
求項1記載の音声コーデックの異常状態検出/復旧装
置。
6. The decoder decodes the input speech coding information when the input speech code is normal and outputs the decoded speech as decoded speech, and stores the decoded speech code when the input speech code is abnormal. 2. The abnormal state detection / restoration device for an audio codec according to claim 1, wherein the audio encoding information of the previous frame that has been processed is decoded and output as decoded audio.
【請求項7】 前記木構造符号帳番号のオール“1”を
利用して回線貼り付き、復号器内部状態発散検出/復旧
のいずれにも対応可能とすることを特徴とする請求項1
乃至3の何れかに記載の音声コーデックの異常状態検出
/復旧装置。
7. The method according to claim 1, wherein all of the tree-structured codebook numbers “1” are used to attach to a line and to cope with both detection and restoration of internal state divergence of a decoder.
4. The apparatus for detecting / restoring an abnormal state of an audio codec according to any one of claims 1 to 3.
【請求項8】 前記木構造符号帳とは別の他の符号帳の
オール“0”を回線が“L”に貼り付いた時と判断し、
木構造符号帳番号がオール“1”の時“H”に貼り付い
たと判断することを特徴とする請求項1乃至5の何れか
に記載の音声コーデック異常状態検出/復旧装置。
8. Judging that all lines “0” of another codebook other than the tree structure codebook are attached to the line “L”,
6. The voice codec abnormal state detection / restoration device according to claim 1, wherein when the tree structure codebook number is all "1", it is determined that the codebook number has been attached to "H".
JP9255355A 1997-09-19 1997-09-19 Abnormal state detecting/restoring device for voice codec Withdrawn JPH1195800A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9255355A JPH1195800A (en) 1997-09-19 1997-09-19 Abnormal state detecting/restoring device for voice codec

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9255355A JPH1195800A (en) 1997-09-19 1997-09-19 Abnormal state detecting/restoring device for voice codec

Publications (1)

Publication Number Publication Date
JPH1195800A true JPH1195800A (en) 1999-04-09

Family

ID=17277640

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9255355A Withdrawn JPH1195800A (en) 1997-09-19 1997-09-19 Abnormal state detecting/restoring device for voice codec

Country Status (1)

Country Link
JP (1) JPH1195800A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003005798A (en) * 2001-06-21 2003-01-08 Sony Corp Recorder and reproducing device
JP2016024449A (en) * 2014-07-24 2016-02-08 株式会社タムラ製作所 Sound encoding system
CN115209223A (en) * 2022-05-12 2022-10-18 广州方硅信息技术有限公司 Control processing method, device, terminal and storage medium for video coding/decoding

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003005798A (en) * 2001-06-21 2003-01-08 Sony Corp Recorder and reproducing device
JP2016024449A (en) * 2014-07-24 2016-02-08 株式会社タムラ製作所 Sound encoding system
CN115209223A (en) * 2022-05-12 2022-10-18 广州方硅信息技术有限公司 Control processing method, device, terminal and storage medium for video coding/decoding

Similar Documents

Publication Publication Date Title
KR100563293B1 (en) Method and system for speech frame error concealment in speech decoding
US8340973B2 (en) Data embedding device and data extraction device
EP0843301B1 (en) Methods for generating comfort noise during discontinous transmission
US7617097B2 (en) Scalable lossless audio coding/decoding apparatus and method
US5142582A (en) Speech coding and decoding system with background sound reproducing function
JPH05122165A (en) Method of transmitting sound signal
JPH0730496A (en) Sound signal decoding device
JPH1195800A (en) Abnormal state detecting/restoring device for voice codec
KR20020067615A (en) A communication system having bad frame indicator means for resynchronization purpose
JP2904083B2 (en) Voice coding switching system
JP3487158B2 (en) Audio coding transmission system
EP1387351B1 (en) Speech encoding device and method having TFO (Tandem Free Operation) function
JP2002252644A (en) Apparatus and method for communicating voice packet
JP3055608B2 (en) Voice coding method and apparatus
JPH1155226A (en) Data transmitting device
JPH0981199A (en) Voice-band information transmitting device
JP4597360B2 (en) Speech decoding apparatus and speech decoding method
JP2001177481A (en) Decoder
JP2003522981A (en) Error correction method with pitch change detection
JPH07193514A (en) Transmission line code selecting data transmission system
JP2002099299A (en) Silent compressed voice coding and decoding device
JP2002041091A (en) Voice coding signal converter
JP2935213B2 (en) Audio information transmission method
JPH07115403A (en) Circuit for encoding and decoding silent section information
JP3091828B2 (en) Vector quantizer

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20041207