JP5599487B2 - Audio processing apparatus for ADPCM audio transmission system and audio processing method therefor - Google Patents

Audio processing apparatus for ADPCM audio transmission system and audio processing method therefor Download PDF

Info

Publication number
JP5599487B2
JP5599487B2 JP2013091460A JP2013091460A JP5599487B2 JP 5599487 B2 JP5599487 B2 JP 5599487B2 JP 2013091460 A JP2013091460 A JP 2013091460A JP 2013091460 A JP2013091460 A JP 2013091460A JP 5599487 B2 JP5599487 B2 JP 5599487B2
Authority
JP
Japan
Prior art keywords
error
value
subframe
adpcm
correction
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.)
Active
Application number
JP2013091460A
Other languages
Japanese (ja)
Other versions
JP2013178554A (en
Inventor
大 諏訪
幸雄 仲
裕行 石原
紀宏 豊村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2013091460A priority Critical patent/JP5599487B2/en
Publication of JP2013178554A publication Critical patent/JP2013178554A/en
Application granted granted Critical
Publication of JP5599487B2 publication Critical patent/JP5599487B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Telephone Function (AREA)

Description

本発明は、ADPCM方式で差分量子化された音声データを伝送するADPCM音声伝送システムの音声処理装置およびその音声処理方法に関する。   The present invention relates to an audio processing device of an ADPCM audio transmission system that transmits audio data differentially quantized by the ADPCM method and an audio processing method thereof.

音声をADPCM方式で差分量子化した音声データとし、この音声データを伝送フレーム単位で送受信する音声処理装置の一例として、コードレス電話機やPHS(Personal Handyphone System)が知られている。   Cordless telephones and PHS (Personal Handyphone System) are known as examples of a voice processing device that converts voice into differentially quantized voice data by the ADPCM method and transmits / receives the voice data in units of transmission frames.

例えば、(特許文献1)には、伝送フレーム中のADPCM音声データの受信信号強度を検出し、エラー有りと判定されたADPCM音声データうちで受信信号強度が一定値以下のADPCM音声データについてのみ差分値を小さくするか、または差分無しとした後に復号するPHSに適用したADPCM音声伝送システムの誤り処理方法が記載されている。   For example, in (Patent Document 1), the received signal strength of ADPCM audio data in a transmission frame is detected, and only the difference between ADPCM audio data having a received signal strength of a certain value or less among ADPCM audio data determined to have an error. An error processing method of an ADPCM audio transmission system applied to PHS which is decoded after a value is reduced or no difference is described is described.

特開平8−288914号公報JP-A-8-288914

しかし、(特許文献1)に記載のADPCM音声伝送システムの誤り処理方法では、受信信号強度が一定値以下の場合にのみ補正処理を行うものである。従って、受信信号強度は十分な状態でも電波干渉により受信エラーが発生してしまった場合などでは、やはり激しくはじけるようなクリック性の雑音(以下、パツ音と称する。)が発生する可能性がある。また、差分値を差分無しとする「0」を含む小さい値に置換するだけでは、音声データによってはパツ音が発生する可能性がある。   However, in the error processing method of the ADPCM audio transmission system described in (Patent Document 1), correction processing is performed only when the received signal strength is a certain value or less. Accordingly, when a reception error occurs due to radio wave interference even when the received signal strength is sufficient, clickable noise (hereinafter referred to as a popping sound) that may be violently generated may occur. . Further, if only the difference value is replaced with a small value including “0” indicating no difference, a pop sound may be generated depending on the audio data.

そこで本発明は、電波干渉等による受信エラーにも対応可能とすることで、パツ音の発生を防止し、受信エラー発生時の音声品質の低下を最小限に抑えることが可能なADPCM音声伝送システムの音声処理装置およびその音声処理方法を提供することを目的とする。   Therefore, the present invention is able to cope with a reception error due to radio wave interference or the like, thereby preventing the generation of a pop sound and minimizing a decrease in voice quality when a reception error occurs. It is an object of the present invention to provide a voice processing apparatus and a voice processing method thereof.

本発明は、ADPCM方式で差分量子化された音声データを伝送するADPCM音声伝送システムの音声処理装置であって、伝送フレームは複数のサブフレームから成り、前記複数のサブフレームについて個々にエラーの有無を検知するエラー検知部と、前記エラー検知部によってエラーが検知された場合に補正の処理を実行する音声処理部と、を有し、前記音声処理部は、前記エラー検知部によってエラー有りとされたサブフレームが前記伝送フレームの中の所定の範囲に及んでいるか否かを調べ、エラー有りとされたサブフレームが前記所定の範囲に及んでいない場合は第1の時間間隔で補正を実行し、エラー有りとされたサブフレームが前記所定の範囲に及んでいる場合は第2の時間間隔で補正を実行し、前記第2の時間間隔は、前記第1の時間間隔より短い。   The present invention is an audio processing apparatus of an ADPCM audio transmission system that transmits audio data differentially quantized by the ADPCM method, wherein the transmission frame is composed of a plurality of subframes, and each of the plurality of subframes has an error. And an audio processing unit that executes correction processing when an error is detected by the error detection unit, and the audio processing unit determines that there is an error by the error detection unit. Whether or not the subframe has reached the predetermined range in the transmission frame. If the subframe in which the error has occurred does not reach the predetermined range, the correction is performed at the first time interval. If the subframe in which an error has occurred extends over the predetermined range, correction is performed at a second time interval, and the second time interval is Shorter than the first time interval.

本発明は、音声処理部による音声データの補正を、複数のサブフレームについての個々のエラーの有無に応じて補正するので、電波干渉などによりエラーの発生状態が異なっていても適切に音声データの補正を行うことができる。よって、本発明は、電波干渉等による受信エラーにも対応可能とすることで、パツ音の発生を防止し、受信エラー発生時の音声品質の低下を最小限に抑えることが可能である。   The present invention corrects the sound data by the sound processing unit in accordance with the presence or absence of individual errors for a plurality of subframes. Therefore, even if the error occurrence state is different due to radio wave interference or the like, the sound data is appropriately corrected. Correction can be performed. Therefore, the present invention can cope with a reception error due to radio wave interference or the like, thereby preventing the generation of a popping sound and minimizing a decrease in voice quality when a reception error occurs.

(A)親機の送信部を示すブロック図、(B)子機の受信部を示すブロック 図(A) Block diagram showing transmission unit of parent device, (B) Block diagram showing reception unit of child device 伝送フレームのフォーマットを説明するための図Diagram for explaining transmission frame format 子機の受信部の音声処理を示すフローチャートFlow chart showing audio processing of the receiving unit of the slave unit 受信エラー処理を示すフローチャートFlow chart showing reception error processing サブフレーム処理を示すフローチャートFlow chart showing subframe processing エラー値および補正間隔値を説明するための図Diagram for explaining error value and correction interval value エラーカウンタ処理を示すフローチャートFlow chart showing error counter processing エラーカウンタを説明するための図Illustration for explaining the error counter 受信音声データ処理を示すフローチャートFlow chart showing received voice data processing 受信エラーなし処理を示すフローチャートFlow chart showing processing without receiving error

本発明の第1の態様は、ADPCM方式で差分量子化された音声データを伝送するADPCM音声伝送システムの音声処理装置であって、伝送フレームは複数のサブフレームから成り、前記受信した伝送フレームの前記複数のサブフレームについて個々にエラーの有無を検知するエラー検知部と、前記エラー検知部によってエラーが検知された場合に補正の処理を実行する音声処理部と、を有し、前記音声処理部は、前記エラー検知部によってサブフレームエラーの発生頻度を判定し、前記サブフレームエラーの発生頻度が閾値未満である場合は第1の時間間隔で補正を実行し、前記サブフレームエラーの発生頻度が閾値以上である場合は第2の時間間隔で補正を実行し、前記第2の時間間隔は、前記第1の時間間隔より短い。 A first aspect of the present invention is an audio processing apparatus of an ADPCM audio transmission system that transmits audio data differentially quantized by the ADPCM method, wherein the transmission frame is composed of a plurality of subframes, and the received transmission frame An error detection unit that individually detects the presence or absence of an error for the plurality of subframes; and an audio processing unit that executes correction processing when an error is detected by the error detection unit, the audio processing unit Determines the frequency of occurrence of a subframe error by the error detection unit, performs correction at a first time interval when the frequency of occurrence of the subframe error is less than a threshold , and determines the frequency of occurrence of the subframe error. If it is equal to or greater than the threshold value , correction is performed at the second time interval, and the second time interval is shorter than the first time interval.

本発明の第2の態様は、前記音声処理部が、前記エラー検知部によって判定されたサブフレームエラーの発生頻度が閾値未満である場合は、第1の値が示すエラーの重み度によって補正を実行し、前記サブフレームエラーの発生頻度が閾値以上である場合は、第2の値が示すエラーの重み度によって補正を実行し、前記第2の値が示すエラーの重み度は、前記第1の値が示すエラーの重み度より重度である。 In the second aspect of the present invention, when the frequency of occurrence of the subframe error determined by the error detection unit is less than a threshold , the audio processing unit corrects the error according to the error weighting degree indicated by the first value. If the occurrence frequency of the subframe error is equal to or greater than a threshold value, correction is performed according to the error weighting degree indicated by the second value, and the error weighting degree indicated by the second value is It is more severe than the error weight indicated by the value of.

第2の態様においては、音声処理部による音声データの補正をエラーの重み度に応じた補正値で行うので、電波干渉などによりエラーの発生状態が異なっていても適切に音声データの補正を行うことができる。 In the second aspect , since the audio data is corrected by the audio processing unit with a correction value corresponding to the error weight, the audio data is appropriately corrected even if the error occurrence state is different due to radio wave interference or the like. be able to.

本発明の第3の態様は、第2の態様において、前記音声処理部は、ADPCMの音声データに付随する符号に応じて音声データからエラーの重み度に応じた値を減算または加算することにより、ADPCM復号化後の値の変化を抑える方向の処理を行う。 According to a third aspect of the present invention, in the second aspect , the sound processing unit subtracts or adds a value corresponding to the error weighting degree from the sound data according to a code accompanying the sound data of ADPCM. Then, the processing in the direction to suppress the change of the value after ADPCM decoding is performed.

第3の態様においては、エラーの発生時、ADPCMの音声データ(差分値)の符号が正(差分値の加算)を示しておればエラーの重み度に応じた値を音声データから減算し、音声データ(差分値)の符号が負(差分値の減算)を示しておれば、エラーの重み度に応じた値を音声データに加算するので、これがADPCM復号化後の値の変化を抑える方向の処理となり、エラーの重み度に応じて復号後の音量が低下される。この処理により、ミュートを示す値に置換える補正と比較して、過度な補正となることを防止することができる。 In the third aspect , when an error occurs, if the sign of ADPCM audio data (difference value) indicates positive (addition of difference value), a value corresponding to the error weight is subtracted from the audio data. If the sign of the audio data (difference value) indicates a negative value (subtraction of the difference value), a value corresponding to the error weight is added to the audio data. This suppresses the change in the value after ADPCM decoding. Thus, the volume after decoding is reduced according to the error weight. By this processing, it is possible to prevent an excessive correction compared to the correction that replaces the value indicating mute.

本発明の第4の態様は、第2の態様または第3の態様において、エラー検知部は、伝送フレームを構成する同期語、制御データ、または音声データのエラーをそれぞれ検知し、音声処理部は、エラーの重み度として、音声データのエラーを同期語および制御データより重くする。 According to a fourth aspect of the present invention, in the second aspect or the third aspect , the error detection unit detects an error in a synchronization word, control data, or audio data that constitutes a transmission frame, and the audio processing unit As the error weighting, the error of the voice data is made heavier than the synchronization word and control data.

第4の態様においては、同期語、制御データ、および音声データのそれぞれで発生するエラーにおいて、音声データにて発生するエラーの重み度が重いとすることで、過度な音質低下を招くことを抑止している。 In the fourth aspect , in the error that occurs in each of the synchronization word, control data, and audio data, the weight of the error that occurs in the audio data is heavy, thereby preventing excessive deterioration in sound quality. doing.

本発明の第5の態様は、第2の態様ないし第4の態様のいずれか1つにおいて、音声処理部が、エラーの重み度に応じた値に基づいた積算を行うことでサブフレームエラーの発生頻度を算出し、サブフレームエラーの発生頻度に基づいた補正値により音声データを補正する。 A fifth aspect of the present invention, in to free the second aspect one of the fourth aspect, the audio processing unit, the sub-frame error by performing the integration based on the value corresponding to the weight of the error The occurrence frequency is calculated, and the audio data is corrected with a correction value based on the occurrence frequency of the subframe error .

第5の態様においては、エラーの重み度が軽度であっても、エラー発生頻度が高ければ補正の度合いを高めた方がエラーによる影響を抑止することができるので、エラーの重み度に応じた値に基づいた積算を行い、この積算値に基づいた補正値により音声データを補正することで、複数の伝送フレームにかけてエラーが頻繁に発生しても対応することができる。 In the fifth aspect , even if the error weight is light, if the error occurrence frequency is high, the effect of the error can be suppressed by increasing the correction degree. By performing integration based on the value and correcting the audio data with the correction value based on the integration value, it is possible to cope with frequent occurrence of errors over a plurality of transmission frames.

本発明の第6の態様は、第5の態様において、音声処理部は、エラーの重み度が軽度である場合に、軽度に応じた補正値で前記音声データを補正し、サブフレームエラーの発生頻度に基づいた補正値による補正を、エラーを含む所定数の伝送フレームを受信した後とすることで遅延させる。 According to a sixth aspect of the present invention, in the fifth aspect , the sound processing unit corrects the sound data with a correction value corresponding to the lightness when the error weight is light, and generates a subframe error. The correction by the correction value based on the frequency is delayed after a predetermined number of transmission frames including an error are received.

第6の態様においては、軽度なエラーが継続的に発生した場合に、エラー発生頻度に基づいた補正値である積算値に基づいて補正を行うと過度な補正となるおそれがある。従って、エラーの重み度が軽度である場合に、軽度に応じた補正値で音声データを補正し、エラー発生頻度に基づいた補正値による補正を、エラーを含まない所定数の伝送フレームを受信した後とすることで、積算値による補正を遅延させる。そうすることで、パツ音の発生を抑えつつ、音質に与える影響を少なくすることができる。 In the sixth aspect , when minor errors continuously occur, if correction is performed based on the integrated value, which is a correction value based on the error occurrence frequency, there is a risk of excessive correction. Therefore, when the error weight is mild, the audio data is corrected with the correction value according to the mildness, and the correction by the correction value based on the error occurrence frequency is received, and a predetermined number of transmission frames not including the error are received. By doing so, the correction by the integrated value is delayed. By doing so, it is possible to reduce the influence on sound quality while suppressing the generation of popping sounds.

本発明の第7の態様は、第2の態様において、一つの伝送フレームの中のエラーが発生したサブフレームの数をカウントし、カウントしたサブフレームエラー数に応じてエラー値または補正間隔値を設定する。この処理により、サブフレームエラー数が大きいほどエラー値を大きく、または補正間隔値を小さく設定し、より適切に音声データの補正を行うことができる。 According to a seventh aspect of the present invention, in the second aspect , the number of subframes in which an error has occurred in one transmission frame is counted, and an error value or a correction interval value is set according to the counted number of subframe errors. Set. As a result of this processing, the larger the number of subframe errors, the larger the error value or the smaller the correction interval value, so that the audio data can be corrected more appropriately.

本発明の第8の態様は、ADPCM方式で差分量子化された音声データを伝送するADPCM音声伝送システムの音声処理方法であって、伝送フレームは複数のサブフレームから成り、前記複数のサブフレームについて個々にエラーの有無を検知することによりサブフレームエラーの発生頻度を判定し、前記サブフレームエラーの発生頻度が閾値未満である場合は、第1の時間間隔で補正を実行し、前記サブフレームエラーの発生頻度が閾値以上である場合は、第2の時間間隔で補正を実行し、前記第2の時間間隔は、前記第1の時間間隔より短い。 An eighth aspect of the present invention is an audio processing method of an ADPCM audio transmission system for transmitting audio data differentially quantized by the ADPCM method, wherein the transmission frame is composed of a plurality of subframes, and the plurality of subframes are determining the frequency of occurrence of the sub-frame error by individually detecting the presence or absence of an error, if the frequency of occurrence of the sub-frame error is less than the threshold value, performs a correction in a first time interval, said sub-frame error When the occurrence frequency is equal to or higher than the threshold value , correction is performed at a second time interval, and the second time interval is shorter than the first time interval.

(実施の形態)
本発明の実施の形態に係るADPCM音声伝送システムを、コードレス電話機を例に図面に基づいて説明する。図1は、本発明の実施の形態に係るコードレス電話機を示す図であり、(A)は親機の送信部を示すブロック図であり、(B)は子機の受信部を示すブロック図である。
(Embodiment)
An ADPCM audio transmission system according to an embodiment of the present invention will be described with reference to the drawings by taking a cordless telephone as an example. 1A and 1B are diagrams showing a cordless telephone according to an embodiment of the present invention, in which FIG. 1A is a block diagram showing a transmission unit of a parent device, and FIG. 1B is a block diagram showing a reception unit of a child device. is there.

ADPCM音声伝送システムとして機能する図1に示すコードレス電話機1は、電話回線と接続された親機2と、この親機2と無線信号により送受信する子機3とを備えている。なお、図1においては、親機2は送信部20のみを、子機3は受信部30のみを図示しているが、親機2には子機3からの無線信号を復調すると共に復号化を行って電話回線へ送信する受信部が設けられ、子機3には、音声信号を符号化すると共に変調して無線信号を親機2へ送信する送信部が設けられている。   A cordless telephone 1 shown in FIG. 1 that functions as an ADPCM audio transmission system includes a parent device 2 connected to a telephone line, and a child device 3 that transmits and receives the parent device 2 using radio signals. In FIG. 1, the base unit 2 shows only the transmitting unit 20 and the handset 3 shows only the receiving unit 30, but the base unit 2 demodulates and decodes the radio signal from the handset 3. The slave unit 3 is provided with a transmission unit that encodes and modulates a voice signal and transmits a radio signal to the master unit 2.

親機2の送信部20は、電話制御部21と、A/Dコンバータ22と、量子化圧縮部23と、ADPCM符号化部24と、送信フレーム生成部25と、無線送信部26とを備えている。   The transmission unit 20 of the base unit 2 includes a telephone control unit 21, an A / D converter 22, a quantization compression unit 23, an ADPCM encoding unit 24, a transmission frame generation unit 25, and a wireless transmission unit 26. ing.

電話制御部21は、電話回線との発着呼や音声信号の送受信を行う。A/Dコンバータ22は、アナログの音声信号をデジタルの音声データへ変換する。量子化圧縮部23は、A−則またはμ−則に基づいて音声データを量子化処理および圧縮処理を行う。ADPCM符号化部24は、量子圧縮された音声データをADPCM方式のG.726により4ビットの適応的な予測の差分値へ符号化する。ADPCM方式では、適応的に予測された値に対する実測値の差分を音声データとして出力する。   The telephone control unit 21 sends and receives calls and voice signals to and from the telephone line. The A / D converter 22 converts an analog audio signal into digital audio data. The quantization compression unit 23 performs quantization processing and compression processing on the audio data based on the A-law or the μ-law. The ADPCM encoding unit 24 converts the voice data subjected to quantum compression into an ADPCM G. In step 726, a 4-bit adaptive prediction difference value is encoded. In the ADPCM method, a difference between actually measured values with respect to adaptively predicted values is output as voice data.

送信フレーム生成部25は、送信フレームとして、同期語、制御データ、差分値である音声データおよびチェックデータであるCRCから構成される伝送フレームを生成する。無線送信部26は、入力した伝送フレームを変調した無線信号を、アンテナ26aを介して時分割多重方式で送信する。   The transmission frame generation unit 25 generates a transmission frame including a synchronization word, control data, audio data as a difference value, and CRC as check data as a transmission frame. The radio transmission unit 26 transmits a radio signal obtained by modulating the input transmission frame by the time division multiplexing method via the antenna 26a.

子機3の受信部30は、無線受信部31と、受信フレーム分離部32と、エラー検知部33と、エラー判定部34と、音声処理部35と、ADPCM復号化部36と、逆量子化伸張部37と、D/Aコンバータ38と、増幅部39とを備えている。   The reception unit 30 of the slave unit 3 includes a radio reception unit 31, a reception frame separation unit 32, an error detection unit 33, an error determination unit 34, an audio processing unit 35, an ADPCM decoding unit 36, and an inverse quantization. An expansion unit 37, a D / A converter 38, and an amplification unit 39 are provided.

無線受信部31は、アンテナ31aを介して受信した無線信号を復調して伝送フレームとして出力する。受信フレーム分離部32は、伝送フレームから同期語、制御データ、音声データおよびCRCにそれぞれ分離する。エラー検知部33は、分離された同期語、制御データ、音声データについてエラーの発生の有無を検知する。同期語は、所定ビットパターンか否かで検知される。制御データおよび音声データは、それぞれ対応するCRCをチェックすることでエラーの発生の有無を検知する。エラー判定部34は、検出されたエラーの重み度、またはエラーの発生頻度を判定する。   The wireless reception unit 31 demodulates a wireless signal received via the antenna 31a and outputs it as a transmission frame. The reception frame separation unit 32 separates the transmission frame into a synchronization word, control data, voice data, and CRC. The error detection unit 33 detects whether or not an error has occurred in the separated synchronization word, control data, and audio data. The synchronization word is detected based on whether or not it has a predetermined bit pattern. The control data and the voice data detect the occurrence of an error by checking the corresponding CRC. The error determination unit 34 determines the degree of weight of the detected error or the occurrence frequency of the error.

音声処理部35は、エラー判定部34により判定された結果に応じた補正値に基づいて、ADPCM復号化前の差分値(4ビット)である音声データを補正する。エラーが発生している場合は後述する処理を行った上で音声データを出力し、エラーの発生がないときには補正せずにそのまま出力したりする。   The voice processing unit 35 corrects the voice data that is the difference value (4 bits) before ADPCM decoding based on the correction value corresponding to the result determined by the error determination unit 34. When an error has occurred, the audio data is output after performing the processing described later, and when there is no error, it is output without correction.

ADPCM復号化部36は、入力した音声データ(4ビットの差分値)と、内部の予測によって得た予測値に基づいて復号化した音声データを生成する。エラーが発生している場合、音声データは音声処理部35で4ビットのまま補正処理が為され、ADPCM復号化部36はこの補正処理済みの音声データに基づいて復号化処理をする。   The ADPCM decoding unit 36 generates decoded audio data based on the input audio data (4-bit difference value) and a prediction value obtained by internal prediction. If an error has occurred, the audio data is corrected by the audio processing unit 35 while remaining 4 bits, and the ADPCM decoding unit 36 performs the decoding process based on the corrected audio data.

逆量子化伸張部37は、A−則またはμ−則に基づいて音声データを逆量子化処理および伸張処理を行う。D/Aコンバータ38は、デジタルデータである音声データをアナログの音声信号へ変換する。増幅部39は、アナログの音声信号を増幅してスピーカ39aへ出力する。   The inverse quantization expansion unit 37 performs inverse quantization processing and expansion processing on the audio data based on the A-law or the μ-law. The D / A converter 38 converts audio data that is digital data into an analog audio signal. The amplifying unit 39 amplifies the analog audio signal and outputs it to the speaker 39a.

本実施の形態では、エラー検知部33と、エラー判定部34と、音声処理部35と、ADPCM復号化部36とで、音声処理装置を構成している。   In the present embodiment, the error detection unit 33, the error determination unit 34, the audio processing unit 35, and the ADPCM decoding unit 36 constitute an audio processing device.

以上のように本発明の実施の形態に係るコードレス電話機1は構成されている。ここで親機2の送信フレーム生成部25が生成する伝送フレームおよび受信フレーム分離部32が分離する伝送フレームについて、図2に基づいて詳細に説明する。図2は、伝送フレームのフォーマットを説明するための図である。   As described above, the cordless telephone 1 according to the embodiment of the present invention is configured. Here, the transmission frame generated by the transmission frame generation unit 25 of the base unit 2 and the transmission frame separated by the reception frame separation unit 32 will be described in detail with reference to FIG. FIG. 2 is a diagram for explaining the format of a transmission frame.

伝送フレームは、ADPCM符号化部24で符号化された音声データが含まれる。伝送フレームは、同期語、制御データおよびこの制御データに対するCRCと、音声データのビット列を4つに分割した第1サブフレームから第4サブフレームの各サブフレームと、それぞれのサブフレームに対応するCRCとを有する。   The transmission frame includes audio data encoded by the ADPCM encoding unit 24. The transmission frame includes a synchronization word, control data, a CRC for this control data, each subframe from the first subframe to the fourth subframe obtained by dividing the bit string of audio data into four, and a CRC corresponding to each subframe. And have.

無線送信部26から32kbpsで送信される音声データは、10msごとに一つの伝送フレームとしているので、一つの伝送フレームには320ビットの音声データが含まれている。従って、一つのサブフレームは80ビットであり、4ビットで一つのADPCMワードは20ワードである。   Since the audio data transmitted from the wireless transmission unit 26 at 32 kbps is one transmission frame every 10 ms, one transmission frame includes 320-bit audio data. Therefore, one subframe is 80 bits, and one ADPCM word in 4 bits is 20 words.

送信フレーム生成部25は、このような伝送フレームを生成して無線送信部26へ出力する。また、受信フレーム分離部32は、伝送フレームをそれぞれに分離してエラー検知部33へ出力すると共に、音声データを音声処理部35へ出力する。   The transmission frame generation unit 25 generates such a transmission frame and outputs it to the wireless transmission unit 26. In addition, the reception frame separation unit 32 separates the transmission frames and outputs them to the error detection unit 33, and also outputs the audio data to the audio processing unit 35.

次に、この伝送フレームを受信した子機3の受信部30の音声処理方法について、その手順を図3から図10に基づいて説明する。図3は、子機3の受信部30の音声処理を示すフローチャートである。図4は、受信エラー処理を示すフローチャートである。図5は、サブフレーム処理を示すフローチャートである。図6は、エラー値および補正間隔値を説明するための図である。図7は、エラーカウンタ処理を示すフローチャートである。図8は、エラーカウンタを説明するための図である。図9は、受信音声データ処理を示すフローチャートである。図10は、受信エラーなし処理を示すフローチャートである。   Next, the procedure of the voice processing method of the receiving unit 30 of the handset 3 that has received this transmission frame will be described with reference to FIGS. FIG. 3 is a flowchart showing audio processing of the receiving unit 30 of the child device 3. FIG. 4 is a flowchart showing reception error processing. FIG. 5 is a flowchart showing subframe processing. FIG. 6 is a diagram for explaining the error value and the correction interval value. FIG. 7 is a flowchart showing the error counter process. FIG. 8 is a diagram for explaining the error counter. FIG. 9 is a flowchart showing received voice data processing. FIG. 10 is a flowchart showing the processing without receiving error.

まず、伝送フレームを受信した無線受信部31は、復調して受信フレーム分離部32へ出力する。図3に示すS100にて受信フレーム分離部32は、上述したように伝送フレームに含まれる同期語と、制御データおよび制御データに対応するCRCと、音声データおよび音声データに対応するCRCとを分離して、それぞれをエラー検知部33へ出力すると共に、音声データを音声処理部35へ出力する。   First, the wireless reception unit 31 that has received the transmission frame demodulates and outputs it to the reception frame separation unit 32. In S100 shown in FIG. 3, the reception frame separation unit 32 separates the synchronization word included in the transmission frame, the CRC corresponding to the control data and the control data, and the CRC corresponding to the voice data and the voice data as described above. Then, each is output to the error detection unit 33 and the audio data is output to the audio processing unit 35.

S200にて、エラー検知部33では、受信した同期語が正しいビット配列か否か、制御データにCRCエラーが発生しているか否か、第1サブフレームから第4サブフレームにCRCエラーが発生しているか否かを調べ、その結果をエラー判定部34へ受信エラー情報として出力する。   In S200, the error detection unit 33 generates a CRC error from the first subframe to the fourth subframe, whether the received synchronization word is a correct bit arrangement, whether a CRC error has occurred in the control data, or not. And the result is output to the error determination unit 34 as reception error information.

S300にて、エラー判定部34では受信エラー情報に基づいて受信エラーの発生の有無を判定する。ここでは、エラー判定部34の判定結果として、受信エラーが発生したものとして説明する。   In S300, error determination unit 34 determines whether or not a reception error has occurred based on the reception error information. Here, it is assumed that a reception error has occurred as a determination result of the error determination unit 34.

S400にて、受信エラーが発生していると、受信エラー処理を行う。この受信エラー処理については、図4に基づいて説明する。   If a reception error has occurred in S400, reception error processing is performed. This reception error process will be described with reference to FIG.

図4に示す受信エラー処理では、まずS401にて同期語にエラーが発生していたか否かを判定する。同期語にエラーが発生していない場合には、S402にて制御データにCRCエラーが発生していたか否かを判定する。更に、制御データエラーが発生していない場合には、S403にて第1サブフレームから第4サブフレームの音声データにCRCエラーが発生していたか否かを判定する。音声データエラーが発生していない場合には、S404にてエラー値として「0」を代入して受信エラー処理を終了する。   In the reception error process shown in FIG. 4, it is first determined in S401 whether or not an error has occurred in the synchronization word. If no error has occurred in the synchronization word, it is determined in S402 whether a CRC error has occurred in the control data. If no control data error has occurred, it is determined in S403 whether a CRC error has occurred in the audio data of the first to fourth subframes. If no audio data error has occurred, “0” is substituted as the error value in S404, and the reception error process is terminated.

S403にて、音声データエラーが発生している場合には、S420aにてサブフレーム処理を実行して本処理を終了する。サブフレーム処理については後段で説明する。   If an audio data error has occurred in S403, the subframe process is executed in S420a and the process is terminated. The subframe processing will be described later.

S402にて制御データエラーが発生していた場合には、S405へ移行して音声データエラーが発生しているか否かを判定する。音声データエラーが発生していない場合には、S406にてエラー値にエラー無しを示す「0」を代入する。またこの場合には、S407にて補正間隔値を「4」に設定する。S405にて、音声データエラーが発生している場合には、S420bにてサブフレーム処理を実行する。   If a control data error has occurred in S402, the process proceeds to S405 to determine whether or not an audio data error has occurred. If no audio data error has occurred, “0” indicating no error is substituted for the error value in S406. In this case, the correction interval value is set to “4” in S407. If an audio data error has occurred in S405, subframe processing is executed in S420b.

この例では、エラーが全く検出されない場合、または軽微なエラーの場合に(同期語のエラーや制御データエラーが発生している場合でも音声データエラーは無しの場合)、エラー値として「0」が割り当てられる。補正間隔値とはエラーの有無を調べて補正をする時間間隔であり、この値が大きければ長い時間間隔でエラー検知/補正の処理が行われ、この値が小さくなるに従ってより短い間隔で行われる。エラーが検出されても上記のように軽微な場合あれば、エラー値としては「0」とする代わりに補正間隔値を比較的大きな値「4」に設定し、その後は粗い間隔でエラー検知/補正の処理が行われる。   In this example, if no error is detected or if it is a minor error (when there is no voice data error even if a synchronization word error or control data error has occurred), “0” is set as the error value. Assigned. The correction interval value is a time interval in which the presence or absence of an error is checked and correction is performed. If this value is large, error detection / correction processing is performed at a long time interval, and as this value decreases, the correction interval value is performed at a shorter interval. . If an error is detected but is insignificant as described above, instead of setting the error value to “0”, the correction interval value is set to a relatively large value “4”. Correction processing is performed.

S401にて同期エラーが発生していた場合には、S408へ移行して制御データエラーが発生しているか否かを判定する。制御データエラーが発生していない場合には、S409にて音声データエラーの発生の有無を判定する。音声データエラーが発生していない場合には、S410にてエラー値に「0」を代入する。また、次のS411にて補正間隔値を「4」に設定する。そして受信エラー処理を終了する。この補正間隔値の詳細については後述する。S409にて、音声データエラーが発生している場合には、S420cにてサブフレーム処理を実行して本処理を終了する。   If a synchronization error has occurred in S401, the process proceeds to S408 to determine whether a control data error has occurred. If no control data error has occurred, it is determined in S409 whether or not an audio data error has occurred. If no audio data error has occurred, “0” is substituted into the error value in S410. In step S411, the correction interval value is set to “4”. Then, the reception error process ends. Details of the correction interval value will be described later. If an audio data error has occurred in S409, the subframe process is executed in S420c, and this process ends.

このように同期語のエラーが発生している場合でも、制御データエラーと音声データエラーが共に無しの場合は、エラー値としては「0」が割り当てられる。この場合も補正間隔値を比較的大きな値「4」に設定し、その後は粗い間隔でエラー検知/補正の処理が行われる。   Thus, even if a synchronization word error has occurred, if there is no control data error and no voice data error, “0” is assigned as the error value. Also in this case, the correction interval value is set to a relatively large value “4”, and thereafter error detection / correction processing is performed at a rough interval.

S408にて制御データエラーが発生していた場合には、S412にて音声データエラーの発生の有無を判定する。音声データエラーが発生していない場合には、S413にてエラー値に「1」を代入する。また次の、S414にて補正間隔値を「4」に設定して受信エラー処理を終了する。S412にて、音声データエラーが発生している場合には、S420dにてサブフレーム処理を実行して本処理を終了する。   If a control data error has occurred in S408, it is determined in S412 whether an audio data error has occurred. If no audio data error has occurred, “1” is substituted into the error value in S413. In the next step S414, the correction interval value is set to “4” and the reception error process is terminated. If an audio data error has occurred in S412, a subframe process is executed in S420d, and this process ends.

このように受信エラー処理では、同期語において発したエラーや制御データにおいて発生したエラーの内容に応じたエラー値およびその後の補正間隔値を設定している。なお、音声データにおいて発生したエラーについては、次に説明するサブフレーム処理にてエラー値および補正間隔値が設定される。   As described above, in the reception error process, an error value corresponding to the error generated in the synchronization word or the error generated in the control data and the subsequent correction interval value are set. For errors that occur in audio data, error values and correction interval values are set in subframe processing described below.

このサブフレーム処理について図5に基づいて説明する。サブフレーム処理では、まず、S421にて変数「サブフレームエラー数」を初期値として「0」に設定する。また、変数iを「1」に設定しておく。この変数iは第1サブフレームから第4サブフレームまでを検査するためのカウンタである。S422にてエラー検知部33からの受信エラー情報のうちサブフレームに関するサブフレームエラー情報を取得する。   This subframe processing will be described with reference to FIG. In the subframe processing, first, the variable “number of subframe errors” is set to “0” as an initial value in S421. The variable i is set to “1”. This variable i is a counter for inspecting from the first subframe to the fourth subframe. In S422, subframe error information related to the subframe is acquired from the reception error information from the error detection unit 33.

S423では変数iで示されるサブフレームはエラーが発生しているか否かを判定する。つまり、最初は変数iが「1」であるため、CRCエラーが第1サブフレームに発生していたか否かを判定することを示している。エラーの発生が無ければS424へ移行する。S424では変数iに1を加算する。そして、S425にて変数iがサブフレーム総数より大きい数(本実施の形態では「4」)より大であるか否かを判定する。変数iが4以下である場合にはS423へ移行する。   In S423, it is determined whether an error has occurred in the subframe indicated by the variable i. That is, since the variable i is “1” at the beginning, it is determined whether or not a CRC error has occurred in the first subframe. If no error has occurred, the process proceeds to S424. In S424, 1 is added to the variable i. Then, in S425, it is determined whether or not the variable i is larger than the number larger than the total number of subframes (“4” in the present embodiment). When the variable i is 4 or less, the process proceeds to S423.

ここで、S423にてサブフレームにCRCエラーが発生していた場合には、S426にて変数「サブフレームエラー数」に「1」を加算する。そして、S427にて変数「サブフレームエラー数」が、詳細には後述する先頭ミュート閾値「2」以下であるか否かを判定する。変数「サブフレームエラー数」が先頭ミュート閾値「2」より大きい場合にはS424へ移行し、先頭ミュート閾値「2」以下である場合にはS428にて先頭ミュートフラグを有効とする設定を行う。先頭ミュートフラグは先頭のサブフレームからミュート効かせことを指示するためのものであり、エラーが検出され、iが閾値「2」以下である場合(第1サブフレーム、第2サブフレーム)に先頭ミュートフラグを有効とし、先頭のサブフレームからミュートの処理をする。   If a CRC error has occurred in the subframe in S423, “1” is added to the variable “number of subframe errors” in S426. Then, in S427, it is determined whether or not the variable “number of subframe errors” is equal to or smaller than a head mute threshold “2” described later in detail. If the variable “number of subframe errors” is larger than the head mute threshold “2”, the process proceeds to S424, and if it is less than the head mute threshold “2”, the head mute flag is set to be valid in S428. The head mute flag is for instructing the mute effect from the head subframe. When an error is detected and i is equal to or less than the threshold value “2” (first subframe, second subframe), the head mute flag is used. The mute flag is enabled and mute processing is performed from the first subframe.

全てのサブフレームの検査が終了すると、S429にて変数「サブフレームエラー数」がサブフレームエラー閾値以上であるか否かを判定する。本実施の形態ではサブフレームエラー閾値を「3」とする。つまりS429では、一つの伝送フレームの中でCRCエラーが発生したサブフレームが3つ以上ある場合には、サブフレームエラー閾値以上となる。   When all subframes have been inspected, it is determined in S429 whether or not the variable “number of subframe errors” is equal to or greater than the subframe error threshold. In this embodiment, the subframe error threshold is “3”. In other words, in S429, if there are three or more subframes in which a CRC error has occurred in one transmission frame, the subframe error threshold is exceeded.

エラー発生のサブフレームの数が閾値「3」未満である場合には、サブフレーム処理にて同期エラーおよび制御エラーが発生していると判定されていれば、S430にてサブフレームエラー値に「2」を設定し、それ以外であれば「1」を設定する。また、S431にて補正間隔値を「4」に設定する。   If the number of subframes in which an error has occurred is less than the threshold “3”, if it is determined in the subframe processing that a synchronization error and a control error have occurred, the subframe error value is set to “ “2” is set, otherwise “1” is set. In S431, the correction interval value is set to “4”.

またS429にて、エラー発生のサブフレームの数が閾値「3」以上である場合には、S432にてエラー値に「3」を設定する。そして、サブフレーム処理にて同期エラーおよび制御エラーが発生していると判定されていれば、S433にて補正間隔値に「1」を設定し、それ以外であれば「2」を設定する。   If the number of error-occurring subframes is greater than or equal to the threshold “3” in S429, “3” is set as the error value in S432. If it is determined in the subframe processing that a synchronization error and a control error have occurred, “1” is set as the correction interval value in S433, and “2” is set otherwise.

このようにサブフレーム処理では、伝送フレームを構成する複数のサブフレームに付いて個々にエラーの有無を調べ、エラー発生回数をカウントし、カウントしたサブフレームエラー数に応じたエラー値および補正間隔値を設定する。また、エラーが発生したサブフレームが所定サブフレームより前に位置する場合、すなわち1番目または2番目のサブフレームである場合に、先頭ミュートフラグを有効とする設定を行う。   In this way, in subframe processing, the presence of errors is individually checked for a plurality of subframes constituting a transmission frame, the number of error occurrences is counted, and an error value and a correction interval value corresponding to the counted number of subframe errors. Set. In addition, when the subframe where the error has occurred is positioned before the predetermined subframe, that is, when it is the first or second subframe, a setting is made to enable the head mute flag.

ここでエラー値と補正間隔値の値について、図6に基づいて説明する。   Here, error values and correction interval values will be described with reference to FIG.

No.1は、伝送フレームにエラー発生がない状態なのでエラー値は最低レベルを意味する「0」であり、音声データは補正無しで復号化される。補正をしないので、補正間隔値は設定されない。   No. Since 1 is a state in which no error occurs in the transmission frame, the error value is “0”, which means the lowest level, and the audio data is decoded without correction. Since no correction is performed, the correction interval value is not set.

No.2およびNo.3は、同期エラーまたは制御データのいずれか一方にエラーがあり、音声データにエラーがない場合である。このときには、エラー値としては「0」が設定され、補正間隔値として「4」が設定される。送信側から伝送パケットが時分割多重方式で送信される場合に、受信側では伝送パケットを同期語で完全に同期させなくても、受信側にて正常に受信したときのクロックに同期させることで、音声データを受信することはできる。つまり、同期エラーまたは制御データのいずれかにエラーがあっても、音声データにエラーが無ければ、音声を再生することは可能である。この場合は補正間隔値を「4」とすることで、時間間隔を比較的大きく空けた低頻度で補正処理を行う。   No. 2 and no. 3 is a case where either the synchronization error or the control data has an error, and the audio data has no error. At this time, “0” is set as the error value, and “4” is set as the correction interval value. When the transmission packet is transmitted from the transmission side by time division multiplexing, the reception side does not completely synchronize the transmission packet with the synchronization word, but synchronizes with the clock when it is normally received at the reception side. Voice data can be received. That is, even if there is an error in either the synchronization error or the control data, it is possible to reproduce the sound if there is no error in the sound data. In this case, by setting the correction interval value to “4”, the correction process is performed at a low frequency with a relatively large time interval.

No.4は、同期エラーおよび制御エラーのいずれもエラーであるが、音声データにはエラーがない状態である。この場合には、伝送フレームが全体的に正常に受信できてない可能性がある。従って、音声データにエラーがなくても、CRCによるエラーが検出できない状態であるおそれがあるので、エラー値としては「1」が設定される。またこの場合も、補正間隔値を「4」とすることで補正の頻度を低く設定している。   No. 4 is a state in which both the synchronization error and the control error are errors, but there is no error in the audio data. In this case, there is a possibility that the transmission frame cannot be normally received as a whole. Therefore, even if there is no error in the audio data, there is a possibility that an error due to CRC cannot be detected, so “1” is set as the error value. Also in this case, the correction frequency is set low by setting the correction interval value to “4”.

No.5からNo.7は、同期エラーまたは制御データの両方が同時にエラーでなく、エラー発生のサブフレームの総数が閾値「3」未満となる状態である。この場合は、音声データのエラーが発生しているため音声データの補正の必要があり、エラー発生サブフレームの数は少ないので軽度な補正でよく、エラー値を「1」、補正間隔値を「4」としている。   No. 5 to No. 7 is a state in which both the synchronization error and the control data are not errors at the same time, and the total number of subframes in which the error has occurred is less than the threshold “3”. In this case, since the audio data error has occurred, it is necessary to correct the audio data. Since the number of error-occurring subframes is small, mild correction is sufficient. The error value is “1” and the correction interval value is “ 4 ”.

No.8は、同期エラーまたは制御データの両方がエラーで、エラー発生のサブフレームの総数が閾値「3」未満となる状態である。この場合には、サブフレームにおけるエラーの発生頻度は少ないが、同期エラーまたは制御データの両方がエラーとなっているため、上述したように正常なサブフレームにもエラーが発生しているおそれがある。従って、エラー値を中度のエラーを示す「2」とし、補正間隔値を「4」としている。   No. 8 is a state in which both the synchronization error and the control data are errors, and the total number of subframes in which the error has occurred is less than the threshold “3”. In this case, the frequency of occurrence of errors in the subframe is low, but since both the synchronization error and the control data are errors, there is a possibility that an error also occurs in a normal subframe as described above. . Therefore, the error value is “2” indicating a medium error, and the correction interval value is “4”.

No.9からNo.11は、同期エラーまたは制御データの両方が同時にエラーでなく、エラー発生のサブフレームの総数が閾値「3」以上となる状態である。この場合には、サブフレームエラーにおけるエラーの発生頻度が高いので、エラー値を重度のエラーを示す「3」とし、補正間隔値を「2」としている。補正間隔値が小さくなることで、ADPCMワードの補正の度合いが高まる。   No. 9 to No. 11 is a state in which both the synchronization error and the control data are not errors at the same time, and the total number of subframes in which the error occurs is equal to or greater than the threshold “3”. In this case, since the occurrence frequency of the subframe error is high, the error value is set to “3” indicating a severe error, and the correction interval value is set to “2”. By reducing the correction interval value, the degree of ADPCM word correction increases.

No.12は、同期エラーまたは制御データの両方がエラーで、エラーを含むサブフレームの総数がサブフレームエラー閾値以上となる状態である。この場合には、サブフレームエラーにおけるエラーの発生頻度が高いので、エラー値を重度のエラーを示す「3」とし、補正間隔値を更に高くした「1」としている。   No. 12 is a state in which both the synchronization error and the control data are errors, and the total number of subframes including the error is equal to or greater than the subframe error threshold. In this case, since the frequency of occurrence of errors in the subframe error is high, the error value is set to “3” indicating a severe error, and the correction interval value is set to “1”.

このように本実施の形態では、同期語、制御データ、および音声データのそれぞれで発生するエラーにおいて、音声データにて発生するエラーの重み度が重いと判定している。そうすることで、過度な音質低下を招くことを抑止している。   As described above, in the present embodiment, it is determined that the error weight generated in the voice data is heavy among the errors generated in the synchronization word, the control data, and the voice data. By doing so, excessive sound quality degradation is suppressed.

図3に戻って、S400にて受信エラー処理が終了すると、S500にてエラーカウンタ処理を行う。このエラーカウンタ処理について、図7に基づいて説明する。   Returning to FIG. 3, when the reception error process is completed in S400, an error counter process is performed in S500. This error counter process will be described with reference to FIG.

図7に示すエラーカウンタ処理では、まずS501にて受信エラー処理およびこの受信エラー処理内で実行されるサブフレーム処理にて設定されたエラー値が、「0」か否かを判定する。エラー値が「0」であれば、受信した伝送フレームに、同期エラー、制御エラーおよび音声データエラーのいずれも発生していないということを示しているので、そのまま終了する。   In the error counter process shown in FIG. 7, first, in S501, it is determined whether or not the error value set in the reception error process and the subframe process executed in the reception error process is “0”. If the error value is “0”, it indicates that none of the synchronization error, the control error, and the voice data error has occurred in the received transmission frame, and the process is terminated as it is.

S501にてエラー値が「0」ではないと判定されると、S502にてこのエラー値が軽度閾値以下であるか否かを判定する。つまり、検知されたエラーの重さの度合いが軽度であるか否かをエラー値と軽度閾値とを比較することにより判定する。本実施の形態では、エラーが軽度であることを、軽度閾値を「1」として判定している。   If it is determined in S501 that the error value is not “0”, it is determined in S502 whether or not the error value is equal to or less than a mild threshold value. That is, it is determined by comparing the error value with the mild threshold value whether or not the degree of the detected error is minor. In the present embodiment, it is determined that the error is minor with the minor threshold being “1”.

エラー値が軽度閾値以下と判定されると、S503にてエラー判定部34に格納されている遅延カウンタを取得する。遅延カウンタは、エラーが検知された場合に、前の伝送フレーム続いて連続的にエラーが発生しているか否かの情報を得るために設けられている。この遅延カウンタによる音声処理については後述する。   If it is determined that the error value is less than or equal to the mild threshold value, the delay counter stored in the error determination unit 34 is acquired in S503. The delay counter is provided in order to obtain information on whether or not errors are continuously generated following the previous transmission frame when an error is detected. The audio processing by this delay counter will be described later.

S504にて遅延カウンタが所定の閾値以下であるか否かを判定する。遅延カウンタが所定の閾値以下である場合には、S505にてエラーカウンタを「1」に設定すると共に、補正間隔値を「4」に設定する。このエラーカウンタは、エラー値に応じた値を積算するカウンタで、音声データを補正する補正値となる。S505では、エラーカウンタに「1」を固定的に代入している。これは、遅延カウンタが所定値以下である期間は、最も小さい補正値で音声データを補正し、遅延カウンタが所定値より大きくなると、補正の遅延が終了してエラーカウンタによる積算値が音声データの補正値となることを意味している。   In S504, it is determined whether or not the delay counter is equal to or smaller than a predetermined threshold value. If the delay counter is equal to or smaller than the predetermined threshold, the error counter is set to “1” and the correction interval value is set to “4” in S505. This error counter is a counter that accumulates values corresponding to error values, and serves as a correction value for correcting audio data. In S505, “1” is fixedly assigned to the error counter. This is because the audio data is corrected with the smallest correction value during the period when the delay counter is less than or equal to the predetermined value, and when the delay counter becomes larger than the predetermined value, the correction delay ends and the integrated value by the error counter becomes the value of the audio data. It means that it becomes a correction value.

ここでは、所定の閾値を「6」として判定して、遅延カウンタが「6」以下である場合には、エラーカウンタが「1」となるように設定する。そうすることで、エラーが発生した伝送フレーム後に続く伝送フレームであって、遅延カウンタが所定の閾値以下となるまでの伝送フレームに、軽度な補正を継続的に適用することができる。これは、軽度なエラーが継続的に発生した場合に、エラーカウンタに基づいて補正を行うと過度な補正となるおそれがある。従って、エラーの重み度が軽度である場合に、軽度に応じた補正値で音声データを補正し、所定数の伝送フレームを受信した後とすることで積算値による補正を遅延させることで、パツ音の発生を抑えつつ、音質に与える影響を少なくすることができる。   Here, the predetermined threshold is determined as “6”, and when the delay counter is “6” or less, the error counter is set to be “1”. By doing so, a slight correction can be continuously applied to a transmission frame subsequent to a transmission frame in which an error has occurred until the delay counter falls below a predetermined threshold. This is likely to result in excessive correction if correction is performed based on the error counter when minor errors occur continuously. Therefore, when the error weight is mild, the audio data is corrected with a correction value corresponding to the lightness, and the correction by the integrated value is delayed by receiving the predetermined number of transmission frames. The influence on sound quality can be reduced while suppressing the generation of sound.

S506にて遅延カウンタが「0」か否か、または先頭ミュートフラグが設定されているか否かを判定する。遅延カウンタが「0」か否かの判定は、以前に受信した伝送フレームから引き続いてエラーカウンタの積算値を補正値とした補正の遅延を行っているか否かを判断するものである。また、先頭ミュートフラグが設定されているか否かの判定は、音声データにおけるエラーの発生が第1サブフレームまたは第2サブフレームのいずれであるか否かを判断するものである。   In S506, it is determined whether or not the delay counter is “0” or whether or not the head mute flag is set. Whether or not the delay counter is “0” is determined by determining whether or not a delay of correction using the integrated value of the error counter as a correction value is performed subsequently from the previously received transmission frame. The determination as to whether or not the head mute flag is set is to determine whether or not the occurrence of an error in the audio data is in the first subframe or the second subframe.

従って、遅延カウンタが「0」である場合には、以前に受信した伝送フレームから引き続いて補正の遅延を行っていないことを示しているので、軽度なエラーが発生したときに行う補正を指示するために、S507にてミュートフラグを「小」に設定する。また、先頭ミュートフラグが設定されていれば、パツ音の発生しやすい第1サブフレームか、または第2サブフレームでのエラーの発生を示しているので、ミュート処理の実行を指示するために、S507にてミュートフラグを「小」に設定する。そして、S508にて遅延カウンタに1を加算して終了する。   Therefore, when the delay counter is “0”, it indicates that the correction delay has not been performed subsequently from the previously received transmission frame, and therefore the correction to be performed when a minor error occurs is instructed. Therefore, the mute flag is set to “small” in S507. In addition, if the head mute flag is set, it indicates the occurrence of an error in the first subframe or the second subframe in which a pop sound is likely to occur, so in order to instruct the execution of the mute process, In step S507, the mute flag is set to “small”. In step S508, 1 is added to the delay counter, and the process ends.

なお、S506にて遅延カウンタが「0」でない場合には、以前に受信した伝送フレームにエラーが発生していたために、エラーカウンタの積算値を補正値とした補正を遅延させていることを示している。従って、音声データの補正については新たに設定をせず、以前の状態を継続するために、S507を実行せずに(ミュートフラグはそのまま)、S508を実行して終了する。また、先頭ミュートフラグが設定されていない場合は、エラーが発生したサブフレームがパツ音の発生しやすいサブフレームより後に位置するサブフレームであることを示しているので、S507を実行せずにS508を実行して終了する。   If the delay counter is not “0” in S506, it indicates that an error has occurred in a previously received transmission frame, and therefore correction using the error counter integrated value as a correction value is delayed. ing. Accordingly, the audio data correction is not newly set, and in order to continue the previous state, S507 is not executed (the mute flag is not changed), and S508 is executed and the process ends. If the head mute flag is not set, it indicates that the subframe in which the error has occurred is a subframe located after the subframe in which the pop sound is likely to be generated. Therefore, S508 is not executed. To exit.

S504にて遅延カウンタが所定の閾値(「6」)より大きい場合には、S509にてエラーカウンタに「1」を加算する。そして、S510にてエラーカウンタが「7」より大きいか否かを判定する。   If the delay counter is larger than the predetermined threshold (“6”) in S504, “1” is added to the error counter in S509. Then, in S510, it is determined whether or not the error counter is greater than “7”.

本実施の形態では、ADPCMワードが4ビットのデータであるので、エラーカウンタの最大値は7となる。従って、エラーカウンタが7より大きい場合には、S511にてエラーカウンタに「7」を代入して終了する。S510にてエラーカウンタが7以下であると判定された場合には、そのまま終了する。ここではエラーカウンタの上限値を設定している。   In the present embodiment, since the ADPCM word is 4-bit data, the maximum value of the error counter is 7. Therefore, if the error counter is larger than 7, “7” is substituted into the error counter in S511 and the process is terminated. If it is determined in S510 that the error counter is 7 or less, the processing is terminated as it is. Here, the upper limit value of the error counter is set.

S502にてエラー値が軽度閾値より大きいと判定された場合には、S512にてエラー値が重度閾値以上か否かを判定する。つまり、検知されたエラーの重さの度合いが重度であるか否かをエラー値により判定する。本実施の形態では、エラーが重度であることを、重度閾値「3」として判定している。   If it is determined in S502 that the error value is greater than the minor threshold, it is determined in S512 whether or not the error value is greater than or equal to the severe threshold. That is, it is determined from the error value whether the detected error is severe. In the present embodiment, it is determined that the error is severe as the severe threshold “3”.

エラー値が重度閾値未満であると、S513にてエラーカウンタが0か否かを判定する。これは、エラーの発生が以前に受信した伝送フレームに発生していたか否かを判定するものである。エラーカウンタが「0」である場合には、S514にてミュートフラグを「小」に設定する。また、S515にて、エラーカウンタに「1」を加算する。つまり、エラーの度合いは中度であるが、以前に受信した伝送フレームにエラーの発生が無かったことから、ミュートフラグとして「小」を設定するものである。そして、S510へ移行する。   If the error value is less than the severe threshold value, it is determined in S513 whether the error counter is 0 or not. This is to determine whether or not an error has occurred in a previously received transmission frame. If the error counter is “0”, the mute flag is set to “small” in S514. In S515, “1” is added to the error counter. That is, although the degree of error is medium, there is no error in the previously received transmission frame, so “small” is set as the mute flag. Then, the process proceeds to S510.

S512にて、エラー値が重度閾値以上と判定された場合には、S516にてミュートフラグとして「大」を設定する。更に、S517にてエラーカウンタに、軽度や中度の場合より大きい「3」を加算する。そして、S510へ移行する。   If it is determined in S512 that the error value is greater than or equal to the severe threshold value, “large” is set as the mute flag in S516. Further, in S517, “3” which is larger than the case of light or medium is added to the error counter. Then, the process proceeds to S510.

このようにエラーカウンタ処理では、エラー値を受信した伝送フレームに発生したエラーの重み度を計る値として使用して、エラーが軽度、中度、および重度のそれぞれに応じたエラーカウンタの加算などの処理を行っている。   In this way, in the error counter process, the error value is used as a value for measuring the degree of weight of the error that has occurred in the received transmission frame, and the error counter is added according to each of the mild, medium, and severe errors. Processing is in progress.

ここで、エラーカウンタについて、図8に基づいて説明する。エラーカウンタは、エラー値に応じた値を積算することでエラーの発生頻度を算出するカウンタである。例えば、エラーが軽度、または中度である場合には、エラーカウンタ処理(図7参照)のS509やS515にて、エラーカウンタに「1」が加算される。つまり、1回の伝送フレームにてエラー値が「1」または「2」に対応するようなエラーが発生した場合には、エラーカウンタは「1」ずつ増加する(図8においては折れ線S1として示す。)。しかし、受信した伝送フレームにエラー値「3」に対応するような重度のエラーが発生していた場合には、エラーカウンタは、一度に「3」増加することになる(図8においては折れ線S2として示す)。   Here, the error counter will be described with reference to FIG. The error counter is a counter that calculates an error occurrence frequency by accumulating values according to error values. For example, if the error is minor or moderate, “1” is added to the error counter in S509 or S515 of the error counter process (see FIG. 7). That is, when an error corresponding to an error value “1” or “2” occurs in one transmission frame, the error counter is incremented by “1” (indicated as a broken line S1 in FIG. 8). .) However, when a severe error corresponding to the error value “3” has occurred in the received transmission frame, the error counter increases by “3” at a time (in FIG. 8, the broken line S2). As shown).

しかし、エラーが軽度の場合、このエラー値によるエラーカウンタの加算は、遅延カウンタが「6」より大きくなったときに行われる。遅延カウンタが「6」以下である間は、エラーカウンタにはS505にて「1」が設定され、遅延カウンタが「7」以上となったときに、エラー値による加算が行われる。   However, if the error is minor, the error counter is incremented by this error value when the delay counter becomes larger than “6”. While the delay counter is “6” or less, “1” is set in the error counter in S505, and when the delay counter becomes “7” or more, addition by the error value is performed.

図3に戻って、S500にてエラーカウンタ処理が終了すると、音声処理部35(図1参照)が受信音声データ処理を行う(S600)。この受信音声データ処理について、図9に基づいて説明する。   Returning to FIG. 3, when the error counter process is completed in S500, the voice processing unit 35 (see FIG. 1) performs the received voice data process (S600). This received audio data processing will be described with reference to FIG.

図9に示す受信音声データ処理は、S601にて受信フレーム分離部32から入力した音声データであるADPCMワード数を取得する。例えば、第1サブフレームから第4サブフレームまでの音声データが320ビットであれば、ADPCMワード数は80ワードである。   In the received voice data processing shown in FIG. 9, the number of ADPCM words, which are voice data input from the received frame separation unit 32 in S601, is acquired. For example, if the audio data from the first subframe to the fourth subframe is 320 bits, the number of ADPCM words is 80 words.

S602にてエラー判定部34より引き渡されたエラーカウンタが0であるか否かを判定する。エラーカウンタが「0」である場合にはエラーの発生がないことを示しているので、その第1サブフレームから第4サブフレームまでの音声データ(ADPCMワード)は補正されずに、そのままADPCM復号化部36へ出力して、受信音声データ処理を終了する。   In S602, it is determined whether or not the error counter delivered from the error determination unit 34 is zero. When the error counter is “0”, it indicates that no error has occurred. Therefore, the audio data (ADPCM word) from the first subframe to the fourth subframe is not corrected, and ADPCM decoding is performed as it is. Output to the conversion unit 36, and the received audio data processing is terminated.

S602にてエラーカウンタが「0」でない場合には、S603にてエラーカウンタが最大値「7」であるか否かを判定する。エラーカウンタが「7」でなければ、S604にて変数jに初期値「0」を代入する。   If the error counter is not “0” in S602, it is determined in S603 whether or not the error counter is the maximum value “7”. If the error counter is not “7”, the initial value “0” is substituted into the variable j in S604.

S605にて、ミュートフラグに「大」が設定されているか否かを判定する。このミュートフラグは、エラーカウンタ処理(図7参照)のS507,S514およびS517にて設定された値である。   In S605, it is determined whether or not “Large” is set in the mute flag. This mute flag is a value set in S507, S514, and S517 of the error counter process (see FIG. 7).

ミュートフラグに「大」が設定されていなければ、次にS606にて「小」が設定されているか否かを判定する。ミュートフラグに「小」が設定されていれば、S607にて音声処理部35内で設定されているミュートフラグ「小」に対するサンプル数を取得する。本実施の形態では、ミュートフラグ「小」に対するサンプル数を「8」としている。   If “large” is not set in the mute flag, it is next determined in step S606 whether or not “small” is set. If “small” is set in the mute flag, the number of samples for the mute flag “small” set in the audio processing unit 35 is acquired in S607. In the present embodiment, the number of samples for the mute flag “small” is “8”.

S608にて音声データの先頭からサンプル数分(8ワード分)ほどのADPCMワードに対して、ミュートを示す「15」(16進数で「F」)を書き込むことで置換える。つまり、第1サブフレームの先頭ビットから32ビット分を全部「1」とするミュート処理を行う。そうすることで、受信した伝送フレームは、8ワード分の時間の間に音量が減衰して行く状態となる。これは、第1サブフレームの先頭付近はパツ音が発生しやすいので、エラーカウンタ処理(図7参照)にてエラーの重み度合いが軽度、または中度である場合に、短時間の間だけ音量をミュート状態とすることで、パツ音の発生を抑えつつ、音質に与える影響を少なくすることができる。   In S608, replacement is performed by writing “15” (“F” in hexadecimal) indicating mute to the ADPCM word corresponding to the number of samples (8 words) from the beginning of the audio data. That is, a mute process is performed in which all 32 bits from the first bit of the first subframe are set to “1”. By doing so, the volume of the received transmission frame is attenuated during the time of 8 words. This is because a pop sound is likely to occur near the beginning of the first subframe, so that the volume of the sound only for a short time when the error weighting degree is light or medium in the error counter process (see FIG. 7). By setting the to mute state, it is possible to reduce the influence on the sound quality while suppressing the generation of the popping sound.

なお、本実施の形態では、エラーの重み度合いが軽度、または中度である場合にミュートフラグ「小」としているが、軽度と中度とで、ミュート処理による補正の度合いを分けるようにしてもよい。またエラー重み度合いを3段階より多くした場合には、その段階数に応じてミュート処理を行うサンプル数も増やすようにしてもよい。   In the present embodiment, the mute flag is set to “small” when the error weight degree is light or medium, but the degree of correction by the mute process may be divided into light and medium. Good. When the error weight degree is increased from three stages, the number of samples to be subjected to mute processing may be increased according to the number of stages.

S609にて変数jにミュートフラグ「小」に対するサンプル数を代入する。本実施の形態では、ミュートフラグ「小」に対するサンプル数を「8」としているので、変数jには「8」が代入される。   In step S609, the number of samples for the mute flag “small” is substituted into the variable j. In the present embodiment, since the number of samples for the mute flag “small” is “8”, “8” is substituted into the variable j.

S606にてミュートフラグに「小」が設定されていなければ、ミュートの設定をせずに次に移行する。   If “small” is not set in the mute flag in S606, the process proceeds to the next without setting mute.

S605にて、ミュートフラグに「大」が設定されていれば、S610にて音声処理部35内に設定されているミュートフラグ「大」に対するサンプル数を取得する。本実施の形態では、ミュートフラグ「大」に対するサンプル数を「16」としている。   If “large” is set in the mute flag in S605, the number of samples for the mute flag “large” set in the audio processing unit 35 is acquired in S610. In the present embodiment, the number of samples for the mute flag “large” is “16”.

S611にて音声データの先頭からサンプル数分ほどのADPCMワードに、ミュートを示す「15」(16進数で「F」)を書き込むことで置換える。つまり、第1サブフレームの先頭ビットから64ビット分を全部「1」とするミュート処理を行う。そうすることで、受信した伝送フレームの音声は、ミュートフラグが「小」であったときと比べて2倍の16ワード分の時間の間に音量が減衰して行く状態となる。これは、第1サブフレームの先頭ビット付近はパツ音が発生しやすいことに加えて、エラーの重み度合いが重度であるので、パツ音の発生する度合いが軽度や中度に比べて高いことによる。従って、長時間の間に音量を減衰させて行くことで、より効果的にパツ音の発生を抑えることができる。   In S611, replacement is performed by writing “15” (“F” in hexadecimal) indicating mute in the ADPCM word corresponding to the number of samples from the beginning of the audio data. That is, a mute process is performed in which all 64 bits from the first bit of the first subframe are set to “1”. By doing so, the sound of the received transmission frame is attenuated during the time of 16 words, which is twice that when the mute flag is “low”. This is because, in the vicinity of the first bit of the first subframe, a popping sound is likely to occur, and since the error weight is severe, the degree of the popping sound is higher than that of light or medium. . Therefore, the generation of a popping sound can be more effectively suppressed by attenuating the volume over a long period of time.

そして、S612にて変数jにミュートフラグ「大」に対するサンプル数を代入する。本実施の形態では、ミュートフラグ「大」に対するサンプル数を「16」としているので、変数jには「16」が代入される。   In step S612, the number of samples for the mute flag “large” is substituted into the variable j. In the present embodiment, since the number of samples for the mute flag “large” is “16”, “16” is substituted into the variable j.

このように、ミュートフラグに「小」または「大」が設定されていれば、設定された値に応じた長さの時間分ほど音量を減衰させて行くことで、エラーの重み度の応じた補正を行うことができる。従って、エラーの重み度応じてパツ音の発生を防止することができ、受信エラー発生時の音声品質の低下を最小限に抑えることができる。 In this way, if “small” or “large” is set in the mute flag, the volume is attenuated for the length of time corresponding to the set value, so that the error weighting degree is adjusted. Correction can be performed. Accordingly, it is possible to prevent the generation of a pop sound according to the error weighting degree , and to suppress a decrease in voice quality when a reception error occurs.

S613にて、変数jがエラー判定部34から通知された補正間隔値で割り切れるか否かを判定する。S609からS613へ移行した場合には変数jは「8」であり、S612からS613へ移行した場合には変数jは「16」である。例えば、受信した伝送フレームに同期エラーのみが発生していた場合には、受信エラー処理(図4参照)のS412にて補正間隔値が「4」に設定されるので、変数jでは割り切れる。従って、S616以降の処理を行う。   In S613, it is determined whether or not the variable j is divisible by the correction interval value notified from the error determination unit 34. The variable j is “8” when the process proceeds from S609 to S613, and the variable j is “16” when the process proceeds from S612 to S613. For example, when only a synchronization error has occurred in the received transmission frame, the correction interval value is set to “4” in S412 of the reception error process (see FIG. 4), and therefore it is divisible by the variable j. Therefore, the process after S616 is performed.

ここで、変数jが補正間隔値で割り切れない場合にはS614へ移行して変数jに「1」が加算される。そして、S615にて変数jが示す値がADPCMワードの数(本実施の形態では80ワード)より大きいか否かを判定する。変数jの方が大きい場合には全てのADPCMワードについての処理が完了したことを示しているので、受信音声データ処理を終了する。   If the variable j is not divisible by the correction interval value, the process proceeds to S614, and “1” is added to the variable j. Then, in S615, it is determined whether or not the value indicated by the variable j is greater than the number of ADPCM words (80 words in the present embodiment). If the variable j is larger, it indicates that the processing for all ADPCM words has been completed, so the received voice data processing is terminated.

変数jがADPCMワード数以下である場合には、S613へ移行して、再度、変数jが補正間隔値で割り切れるか否かを判定する。   If the variable j is equal to or less than the number of ADPCM words, the process proceeds to S613, and it is determined again whether the variable j is divisible by the correction interval value.

S613にて割り切れると判定された場合には、S616にてADPCMワードにおける先頭ビット(MSB)を抽出する。このときのADPCMワードは、音声データから変数j番目となる。つまり、補正間隔値が「4」の場合に、ミュート処理を行わないS606から移行してきたのであれば、まず0番目のADPCMワード(第1サブフレームの先頭の1ワード目)が対象となり、次に、4番目のADPCMワードが対象となる。   If it is determined in S613 that it is divisible, the first bit (MSB) in the ADPCM word is extracted in S616. The ADPCM word at this time is the variable j-th from the voice data. That is, when the correction interval value is “4” and the process proceeds from S606 in which the mute process is not performed, first, the 0th ADPCM word (the first word of the first subframe) is targeted, and the next The fourth ADPCM word is the target.

ミュートフラグ「小」に対するミュート処理を行ったS609から移行してきたのであれば、まず8番目(第1サブフレームの9ワード目)のADPCMワードが対象となり、次に12番目のADPCMワードが対象となる。   If the process proceeds from S609 in which the mute processing for the mute flag “small” has been performed, first, the eighth (9th word of the first subframe) ADPCM word is targeted, and then the twelfth ADPCM word is targeted. Become.

そして、例えば、補正間隔値が「2」で、ミュートフラグ「大」に対するミュート処理を行ったS612から移行してきたのであれば、まず16番目のADPCMワードが対象となり、次に18番目のADPCMワードが対象となる。   For example, if the correction interval value is “2” and the process proceeds from S612 in which the mute process for the mute flag “large” is performed, the 16th ADPCM word is first processed, and then the 18th ADPCM word is processed. Is the target.

S617にて、抽出されたADPCMワードの先頭ビットが「0」か否かを判定する。ADPCMワードは符号付き2進数で表されているので、先頭ビットが「0」であれば正数すなわち差分値を加算することを表す。ADPCMワードの先頭ビットが「1」であれば負数すなわち差分値を減算することを表す。   In S617, it is determined whether or not the first bit of the extracted ADPCM word is “0”. Since the ADPCM word is represented by a signed binary number, if the first bit is “0”, it indicates that a positive number, that is, a difference value is added. If the first bit of the ADPCM word is “1”, it means that a negative number, that is, a difference value is subtracted.

S618およびS621の処理は、先頭ビットの「0」または「1」の符号に応じてADPCMワード値からエラー重み度の値を減算または加算する。ADPCMワードの符号が「0」(差分値の加算)であれば、S618でエラーカウンタ値をADPCMワード値から減算し、復号化後の値の変化を抑える方向の処理を行う。それに対しADPCMワードの符号が「1」(差分値の減算)であれば、S621ではエラーカウンタ値をADPCMワード値に加算し、この場合も復号化後の値の変化を抑える方向の処理となる。このようにエラーの重み度に応じたエラーカウンタ値を、ADPCMワードの符号に応じて減算または加算する。   In the processing of S618 and S621, the error weight value is subtracted or added from the ADPCM word value according to the sign of “0” or “1” of the first bit. If the sign of the ADPCM word is “0” (addition of the difference value), the error counter value is subtracted from the ADPCM word value in S618, and processing in a direction to suppress the change in the value after decoding is performed. On the other hand, if the sign of the ADPCM word is “1” (subtraction of the difference value), the error counter value is added to the ADPCM word value in S621, and in this case also, the process is directed to suppress the change in the value after decoding. . Thus, the error counter value corresponding to the error weight is subtracted or added according to the sign of the ADPCM word.

S618の後は、S619にてADPCMワードが「15」(16進数で「F」)より大きいか否かを判定する。「15」より大きい場合には、S620にてADPCMワードを「15」(16進数で「F」)とする。またS621の後は、S622にてADPCMワードが「0」より小さいか否かを判定する。「0」より小さい場合には、S623にてADPCMワードを「0」とする。そして、S614にて変数jに1を加算してS615にて全てのADPCMワードについての処理が完了したか否かを判定して、完了していれば受信音声データ処理を終了する。   After S618, it is determined in S619 whether the ADPCM word is larger than “15” (hexadecimal “F”). If it is greater than “15”, the ADPCM word is set to “15” (hexadecimal “F”) in S620. After S621, it is determined in S622 whether the ADPCM word is smaller than “0”. If it is smaller than “0”, the ADPCM word is set to “0” in S623. In step S614, 1 is added to the variable j, and in step S615, it is determined whether or not the processing for all ADPCM words is completed. If the processing is completed, the received voice data processing is terminated.

S603にてエラーカウンタの値が「7」である場合には、エラーの発生頻度が高く積算することで重度のエラーの状態となってしまった状態である。このような状態では、S624によりミュートを示す「15」(16進数で「F」)を全てのADPCMワードに書き込むことで、音声の音量を減衰させて行く。   If the value of the error counter is “7” in S603, the error occurrence frequency is high and the error is severely errored. In such a state, the sound volume is attenuated by writing “15” (“F” in hexadecimal) indicating mute in all ADPCM words in S624.

このように、受信エラー処理(図4参照)やサブフレーム処理(図5参照)にてエラーの重み度に応じて設定されたエラー値に基づいて、エラー発生ごとに加算したエラーカウンタの値を補正値とし、ADPCM復号化部36へ入力させる差分値をこの補正値に従って小さくい値に変換し、復号後のPCMデータの変化幅を小さく抑えることができる。従って、エラーの重み度に応じて音声データの補正を行うことができるので、複数の伝送フレームにかけてエラーが頻繁に発生しても対応することができる。よって、電波干渉等による受信エラーにも対応可能とすることができ、パツ音の発生が防止でき、かつ受信エラー発生時の音声品質の低下を最小限に抑えることができる。   Thus, based on the error value set according to the error weight in the reception error processing (see FIG. 4) or subframe processing (see FIG. 5), the error counter value added for each error occurrence is The difference value input to the ADPCM decoding unit 36 as a correction value is converted into a small value according to the correction value, and the change width of the PCM data after decoding can be suppressed small. Therefore, since the audio data can be corrected according to the error weight, it is possible to cope with frequent occurrence of errors in a plurality of transmission frames. Accordingly, it is possible to cope with a reception error due to radio wave interference or the like, it is possible to prevent the occurrence of a popping sound, and it is possible to minimize a decrease in voice quality when a reception error occurs.

また、受信エラー処理(図4参照)やサブフレーム処理(図5参照)にてエラーの重み度に応じてそれぞれ設定された補正間隔値により、受信した音声データ(ADPCMワード)列のなかの補正を行う時間位置の間隔を変更することで、エラーの程度に応じた頻度で補正が行われ、過度な補正(出力PCMデータの急激な変化)を防止することができるので、音声品質の低下を抑制することができる。   Further, the correction in the received audio data (ADPCM word) sequence is performed by the correction interval value set in accordance with the error weighting degree in the reception error processing (see FIG. 4) and the subframe processing (see FIG. 5). By changing the interval of the time position for performing the correction, correction is performed at a frequency according to the degree of error, and excessive correction (abrupt change in output PCM data) can be prevented, so that the voice quality is reduced. Can be suppressed.

図3に戻って、S300でのエラー判定部34の判定で、受信エラーが発生していなかった場合には、S700へ移行して受信エラー処理を実行する。   Returning to FIG. 3, if no error has occurred in the determination by the error determination unit 34 in S300, the process proceeds to S700 to execute a reception error process.

図10に示すように受信エラーなし処理では、まず、エラーカウンタが「0」か否かを判定する(S701)。エラーカウンタが「0」でない場合には、S702にてエラー判定部34内に設定されている減算値を取得する。本実施の形態では、この減算値を「3」としている。そして、S703にてエラーカウンタから減算値「3」を減算する。つまり、エラーが発生していない場合に、音声データを補正する度合いとなるエラーカウンタを減算することで、補正の度合いを緩和している。例えば、伝送フレームにエラーが発生していない場合には、音量の回復を急速に行うために、エラーカウンタを「0」としてもよい。しかし、音声データによっては急速な音量の回復によりパツ音が発生するおそれがある。本実施の形態では、音量の回復を急速に行いつつ、パツ音の発生を抑止するために、エラーカウンタを所定値で減算している。   As shown in FIG. 10, in the reception error free process, first, it is determined whether or not the error counter is “0” (S701). If the error counter is not “0”, the subtraction value set in the error determination unit 34 is acquired in S702. In the present embodiment, this subtraction value is “3”. In step S703, the subtraction value “3” is subtracted from the error counter. In other words, when no error has occurred, the degree of correction is reduced by subtracting an error counter that is the degree to which the audio data is corrected. For example, when no error has occurred in the transmission frame, the error counter may be set to “0” in order to quickly recover the volume. However, depending on the audio data, there is a risk that a popping sound may be generated due to rapid volume recovery. In this embodiment, the error counter is subtracted by a predetermined value in order to suppress the occurrence of a pop sound while rapidly recovering the volume.

S704にて、減算されたエラーカウンタが「0」より小さいか否かを判定する。エラーカウンタが「0」より小さい場合に、S705にてエラーカウンタを「0」とする。   In S704, it is determined whether or not the subtracted error counter is smaller than “0”. When the error counter is smaller than “0”, the error counter is set to “0” in S705.

エラーカウンタが「0」以上である場合には、S706にて補正間隔値を「4」に設定する。   If the error counter is equal to or greater than “0”, the correction interval value is set to “4” in S706.

例えば、同期エラーおよび制御エラーの発生が無く、音声データがサブフレームエラー閾値「3」を超えるサブフレームのエラーが発生していたときは、補正間隔値は「2」となる(図6のNo.9参照)。従って、この場合には、2ワードごとのADPCMワードを補正することになる。ただし、その後エラーの発生がない伝送フレーム(全サブフレームがエラー無し)を1回受信することで、図10に示すように補正の間隔は2ワードから4ワードへ広がり(S706)、補正の頻度を下げる。次のS707にて遅延カウンタを「0」に設定する。遅延カウンタを「0」にすることにより、後の伝送フレームでエラーが検知された場合でもそれが前の伝送フレームに続く連続的なエラーではないことの情報を残す。   For example, when there is no synchronization error and no control error, and an error has occurred in a subframe exceeding the subframe error threshold “3”, the correction interval value is “2” (No in FIG. 6). .9). Therefore, in this case, every two words of ADPCM words are corrected. However, by receiving once a transmission frame in which no error occurs (all subframes have no error), the correction interval is expanded from 2 words to 4 words as shown in FIG. 10 (S706), and the frequency of correction Lower. In step S707, the delay counter is set to “0”. By setting the delay counter to “0”, even when an error is detected in a subsequent transmission frame, information is maintained that it is not a continuous error following the previous transmission frame.

このようにエラーの発生がないと、エラーカウンタの値を下げ、または補正間隔値を大きくする。エラー発生の状態から状況が改善し、あるときからエラー無しのフレームが連続すると、エラー発生時に増やされたエラーカウンタ値が下げられ、また補正間隔値が大きくなるので補正が緩められる。すなわち図7のS504において、遅延カウンタが「0」(閾値以下)である場合には、補正の度合いを決めるエラーカウンタは比較的低い値「1」に設定され、補正間隔値も比較的大きな「4」に設定される。遅延カウンタが閾値以下である範囲はこれらの値が維持され、エラーカウンタのカウントアップはされない。エラー無しの状態から状況が悪化し、エラー発生が連続する場合でも、遅延カウンタが閾値に達するまではエラーカウンタのカウントアップを遅らせる。エラー無しの伝送フレームが続けば、エラーカウンタの減算が進み、エラーカウンタ「0」になり(S705)、音声品質の回復を早めることができる。   If no error occurs in this way, the value of the error counter is decreased or the correction interval value is increased. If the situation improves from the state of error occurrence and there are consecutive frames without error from a certain time, the error counter value increased at the time of error occurrence is lowered, and the correction interval value is increased, so that the correction is relaxed. That is, in S504 of FIG. 7, when the delay counter is “0” (below the threshold), the error counter that determines the degree of correction is set to a relatively low value “1”, and the correction interval value is also relatively large “ 4 ". These values are maintained in a range where the delay counter is equal to or smaller than the threshold value, and the error counter is not counted up. Even if the situation deteriorates from the error-free state and errors continue to occur, the error counter is delayed until the delay counter reaches the threshold value. If an error-free transmission frame continues, the error counter is decremented to become an error counter “0” (S705), and the recovery of voice quality can be accelerated.

このようにして受信エラーが発生していない場合には図10に示す処理により、エラーカウンタの値を減少させることで、補正の度合いを軽減することができる。   When no reception error has occurred in this way, the degree of correction can be reduced by decreasing the value of the error counter by the process shown in FIG.

以上、本発明の実施の形態について説明してきたが、本発明は前記実施の形態に限定されるものではない。例えば、本実施の形態では、伝送フレームにおける音声データを第1サブフレームから第4サブフレームまでの4つのサブフレームに分割していたが、この分割数は適宜決定することが可能である。その場合には、分割したサブフレームに数に応じてサブフレームエラー閾値の数も変更する。なお、本実施の形態に係る他の閾値や設定値は一例であり、それぞれ関連する数値の大小関係が保たれていれば他の値を選択してもよい。   As mentioned above, although embodiment of this invention has been described, this invention is not limited to the said embodiment. For example, in the present embodiment, the audio data in the transmission frame is divided into four subframes from the first subframe to the fourth subframe, but the number of divisions can be determined as appropriate. In that case, the number of subframe error thresholds is also changed according to the number of divided subframes. Note that the other threshold values and set values according to the present embodiment are examples, and other values may be selected as long as the magnitude relations of the related numerical values are maintained.

本発明は、電波干渉等による受信エラーにも対応可能とすることで、パツ音の発生を防止し、受信エラー発生時の音声品質の低下を最小限に抑えることが可能なので、ADPCM方式で差分量子化された音声データを伝送するADPCM音声伝送システムの音声処理装置およびその音声処理方法に好適である。   Since the present invention can cope with a reception error due to radio wave interference or the like, it is possible to prevent the generation of a pop sound and to minimize a decrease in voice quality when a reception error occurs. This is suitable for an audio processing apparatus and an audio processing method of an ADPCM audio transmission system for transmitting quantized audio data.

1 コードレス電話機
2 親機
3 子機
20 送信部
21 電話制御部
22 A/Dコンバータ
23 量子化圧縮部
24 ADPCM符号化部
25 送信フレーム生成部
26 無線送信部
26a アンテナ
30 受信部
31 無線受信部
31a アンテナ
32 受信フレーム分離部
33 エラー検知部
34 エラー判定部
35 音声処理部
36 ADPCM復号化部
37 逆量子化伸張部
38 D/Aコンバータ
39 増幅部
39a スピーカ
DESCRIPTION OF SYMBOLS 1 Cordless telephone 2 Master unit 3 Slave unit 20 Transmitter 21 Telephone control unit 22 A / D converter 23 Quantization compression unit 24 ADPCM encoding unit 25 Transmission frame generation unit 26 Radio transmission unit 26a Antenna 30 Reception unit 31 Radio reception unit 31a Antenna 32 Reception frame separation unit 33 Error detection unit 34 Error determination unit 35 Audio processing unit 36 ADPCM decoding unit 37 Inverse quantization expansion unit 38 D / A converter 39 Amplification unit 39a Speaker

Claims (10)

ADPCM方式で差分量子化された音声データを伝送するADPCM音声伝送システムの音声処理装置であって、
伝送フレームは複数のサブフレームから成り、
受信した伝送フレームの前記複数のサブフレームについて個々にエラーの有無を検知するエラー検知部と、
前記エラー検知部によってエラーが検知された場合に補正の処理を実行する音声処理部と、
を有し、
前記音声処理部は、前記エラー検知部によって判定されたサブフレームエラーの発生頻度が閾値未満である場合は、第1の時間間隔で補正を実行し、前記サブフレームエラーの発生頻度が閾値以上である場合は、第2の時間間隔で補正を実行し、
前記第2の時間間隔は、前記第1の時間間隔より短い、
ADPCM音声伝送システムの音声処理装置。
An audio processing device of an ADPCM audio transmission system that transmits audio data differentially quantized by an ADPCM method,
A transmission frame is composed of a plurality of subframes.
An error detection unit that individually detects the presence or absence of an error for the plurality of subframes of the received transmission frame;
A voice processing unit that executes correction processing when an error is detected by the error detection unit;
Have
If the occurrence frequency of the subframe error determined by the error detection unit is less than the threshold, the audio processing unit performs correction at a first time interval, and the occurrence frequency of the subframe error is equal to or greater than the threshold. If there is, perform correction at the second time interval,
The second time interval is shorter than the first time interval;
A voice processing device for an ADPCM voice transmission system.
前記エラー検知部は、まず同期語にエラーが発生していたか否かを判定し、次に制御データにエラーが発生していたか否かを判定し、次に第1サブフレームから第4サブフレームの音声データにエラーが発生していたか否かを判定する
請求項1に記載のADPCM音声伝送システムの音声処理装置。
The error detection unit first determines whether an error has occurred in the synchronization word, then determines whether an error has occurred in the control data, and then determines from the first subframe to the fourth subframe. The voice processing apparatus of the ADPCM voice transmission system according to claim 1, wherein it is determined whether or not an error has occurred in the voice data.
前記音声処理部は、前記エラー検知部によって判定されたサブフレームエラーの発生頻度が閾値未満である場合は、第1の値が示すエラーの重み度によって補正を実行し、前記サブフレームエラーの発生頻度が閾値以上である場合は、第2の値が示すエラーの重み度によって補正を実行し、
前記第2の値が示すエラーの重み度は、前記第1の値が示すエラーの重み度より重度である、
請求項1に記載のADPCM音声伝送システムの音声処理装置。
When the occurrence frequency of the subframe error determined by the error detection unit is less than a threshold, the audio processing unit performs correction according to the error weighting degree indicated by the first value, and the occurrence of the subframe error If the frequency is greater than or equal to the threshold, correction is performed according to the error weighting indicated by the second value,
The error weighting degree indicated by the second value is more severe than the error weighting degree indicated by the first value.
The voice processing apparatus of the ADPCM voice transmission system according to claim 1.
前記音声処理部は、ADPCMの差分値である音声データに付随する符号に応じて音声データからエラーの重み度に応じた値を減算または加算することにより、ADPCM復号化後の値の変化を抑える方向の処理を行う、
請求項に記載のADPCM音声伝送システムの音声処理装置。
The voice processing unit suppresses a change in the value after ADPCM decoding by subtracting or adding a value corresponding to the error weight from the voice data in accordance with a code accompanying the voice data which is a difference value of ADPCM. Process direction,
The voice processing apparatus of the ADPCM voice transmission system according to claim 3 .
前記エラー検知部は、前記伝送フレームを構成する同期語、制御データ、または音声データのエラーをそれぞれ検知し、
前記音声処理部は、前記エラーの重み度として、前記音声データのエラーを前記同期語および制御データより重くする、
請求項3または4に記載のADPCM音声伝送システムの音声処理装置。
The error detection unit detects an error in a synchronization word, control data, or audio data constituting the transmission frame,
The speech processing unit makes the speech data error heavier than the synchronization word and control data as the error weight.
The voice processing apparatus of the ADPCM voice transmission system according to claim 3 or 4 .
前記音声処理部は、前記エラーの重み度に応じた値に基づいた積算を行うことで前記サブフレームエラーの発生頻度を算出し、前記サブフレームエラーの発生頻度に基づいた補正値により前記音声データを補正する、
請求項3ないし5のいずれか1項に記載のADPCM音声伝送システムの音声処理装置。
The audio processing unit calculates an occurrence frequency of the subframe error by performing integration based on a value corresponding to the degree of weight of the error, and uses the correction value based on the occurrence frequency of the subframe error to calculate the audio data Correct,
The voice processing apparatus of the ADPCM voice transmission system according to any one of claims 3 to 5 .
前記音声処理部は、前記エラーの重み度が軽度である場合に、前記軽度に応じた補正値で前記音声データを補正し、前記サブフレームエラーの発生頻度に基づいた補正値による補正を、エラーを含む所定数の伝送フレームを受信した後とすることで遅延させる、
請求項に記載のADPCM音声伝送システムの音声処理装置。
The speech processing unit corrects the speech data with a correction value according to the mildness when the error weight is mild, and performs correction with a correction value based on the occurrence frequency of the subframe error. Delay after receiving a predetermined number of transmission frames including
The voice processing apparatus of the ADPCM voice transmission system according to claim 6 .
前記音声処理部は、一つの伝送フレームの中のエラーが発生したサブフレームの数をカウントし、カウントしたサブフレームエラー数に応じてエラー値または補正間隔値を設定する、
請求項に記載のADPCM音声伝送システムの音声処理装置。
The voice processing unit counts the number of subframes in which an error occurs in one transmission frame, and sets an error value or a correction interval value according to the counted number of subframe errors.
The voice processing apparatus of the ADPCM voice transmission system according to claim 3 .
ADPCM方式で差分量子化された音声データを伝送するADPCM音声伝送システムの音声処理方法であって、
伝送フレームは複数のサブフレームから成り、
前記複数のサブフレームについて個々にエラーの有無を検知することによりサブフレームエラーの発生頻度を判定し、
前記サブフレームエラーの発生頻度が閾値未満である場合は、第1の時間間隔で補正を実行し、
前記サブフレームエラーの発生頻度が閾値以上である場合は、第2の時間間隔で補正を実行し、
前記第2の時間間隔は、前記第1の時間間隔より短い、
ADPCM音声伝送システムの音声処理方法。
An audio processing method for an ADPCM audio transmission system for transmitting audio data differentially quantized by an ADPCM method,
A transmission frame is composed of a plurality of subframes.
Determining the frequency of occurrence of subframe errors by detecting the presence or absence of errors individually for the plurality of subframes;
If the occurrence frequency of the subframe error is less than a threshold, perform correction at the first time interval;
If the occurrence frequency of the subframe error is equal to or greater than a threshold, correction is performed at a second time interval,
The second time interval is shorter than the first time interval;
Audio processing method for ADPCM audio transmission system.
前記エラーの有無を検知する処理では、
まず同期語にエラーが発生していたか否かを判定し、
次に制御データにエラーが発生していたか否かを判定し、
次に第1サブフレームから第4サブフレームの音声データにエラーが発生していたか否かを判定する
請求項に記載のADPCM音声伝送システムの音声処理方法。
In the process of detecting the presence or absence of the error,
First, determine if there was an error in the sync word,
Next, determine whether an error has occurred in the control data,
10. The voice processing method of the ADPCM voice transmission system according to claim 9 , wherein it is determined whether an error has occurred in the voice data of the first subframe to the fourth subframe.
JP2013091460A 2013-04-24 2013-04-24 Audio processing apparatus for ADPCM audio transmission system and audio processing method therefor Active JP5599487B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013091460A JP5599487B2 (en) 2013-04-24 2013-04-24 Audio processing apparatus for ADPCM audio transmission system and audio processing method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013091460A JP5599487B2 (en) 2013-04-24 2013-04-24 Audio processing apparatus for ADPCM audio transmission system and audio processing method therefor

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2008024679A Division JP5256756B2 (en) 2008-02-05 2008-02-05 Audio processing apparatus for ADPCM audio transmission system and audio processing method therefor

Publications (2)

Publication Number Publication Date
JP2013178554A JP2013178554A (en) 2013-09-09
JP5599487B2 true JP5599487B2 (en) 2014-10-01

Family

ID=49270163

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013091460A Active JP5599487B2 (en) 2013-04-24 2013-04-24 Audio processing apparatus for ADPCM audio transmission system and audio processing method therefor

Country Status (1)

Country Link
JP (1) JP5599487B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021201926A1 (en) * 2020-04-01 2021-10-07 Google Llc Audio packet loss concealment via packet replication at decoder input

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9024515D0 (en) * 1990-11-12 1991-01-02 Texas Instruments Ltd Improvements in or relating to digital communications
JP2627579B2 (en) * 1991-02-18 1997-07-09 日本電信電話株式会社 Audio muting method
JP3187953B2 (en) * 1992-07-17 2001-07-16 旭化成株式会社 Wireless communication device
JP3436940B2 (en) * 1992-09-10 2003-08-18 旭化成株式会社 Wireless communication device
JP3524128B2 (en) * 1993-04-08 2004-05-10 エクセラマティック インコーポレーテッド Continuous traction roller transmission
JPH0818891A (en) * 1994-07-04 1996-01-19 Hitachi Ltd Digital sound signal reproducing device
JPH0846577A (en) * 1994-07-28 1996-02-16 Kyocera Corp Digital mobile communication equipment
US5799039A (en) * 1994-09-19 1998-08-25 Motorola, Inc. Method and apparatus for error mitigating a received communication signal
JPH09312620A (en) * 1996-05-23 1997-12-02 Nec Corp Voice data interpolation processor
JPH09321713A (en) * 1996-05-28 1997-12-12 Oki Electric Ind Co Ltd Device for suppressing and limiting voice amplitude
JP4770087B2 (en) * 2001-08-09 2011-09-07 パナソニック株式会社 Wireless communication device
JP5256756B2 (en) * 2008-02-05 2013-08-07 パナソニック株式会社 Audio processing apparatus for ADPCM audio transmission system and audio processing method therefor

Also Published As

Publication number Publication date
JP2013178554A (en) 2013-09-09

Similar Documents

Publication Publication Date Title
US9196256B2 (en) Data processing method that selectively performs error correction operation in response to determination based on characteristic of packets corresponding to same set of speech data, and associated data processing apparatus
JP2010523018A (en) Headset having multiple earpieces linked wirelessly
US20070064681A1 (en) Method and system for monitoring a data channel for discontinuous transmission activity
JP5256756B2 (en) Audio processing apparatus for ADPCM audio transmission system and audio processing method therefor
JP5195402B2 (en) Wireless communication apparatus and wireless communication system
JP3992796B2 (en) Apparatus and method for generating noise in a digital receiver
JP5599487B2 (en) Audio processing apparatus for ADPCM audio transmission system and audio processing method therefor
WO2004012097A1 (en) Method for fast dynamic estimation of background noise
JP2627579B2 (en) Audio muting method
JP5447628B1 (en) Wireless communication apparatus and communication terminal
JP4398323B2 (en) Digital wireless communication device
JP6074661B2 (en) Wireless communication apparatus and communication terminal
JP5816799B2 (en) Transmission side wireless communication device and reception side wireless communication device
US7747928B2 (en) Digital wireless communication apparatus
JP3603469B2 (en) Voice quality improvement device
JPH07336290A (en) Vox control communication device
JPH0774733A (en) Digital radio telephone set
KR20100116102A (en) Method and apparatus for transmitting signal in a communication system
JP2009093056A (en) Digital voice communication method and digital voice communication device
JP2008292961A (en) Voice transmission system
JPH08137497A (en) Correcting device for error of transmitted code
JPH08316920A (en) Digital radio communication device
JP2006174028A (en) Voice coding method, voice decoding method, voice coding apparatus and voice decoding apparatus
JPH07225600A (en) Sound decoding device
JPH0685768A (en) Transmission code error compensation device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140128

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140327

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140422

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140620

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140715

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140812

R151 Written notification of patent or utility model registration

Ref document number: 5599487

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151