JP4458635B2 - Frame correction device - Google Patents

Frame correction device Download PDF

Info

Publication number
JP4458635B2
JP4458635B2 JP2000219152A JP2000219152A JP4458635B2 JP 4458635 B2 JP4458635 B2 JP 4458635B2 JP 2000219152 A JP2000219152 A JP 2000219152A JP 2000219152 A JP2000219152 A JP 2000219152A JP 4458635 B2 JP4458635 B2 JP 4458635B2
Authority
JP
Japan
Prior art keywords
frame
error
average value
memory
frames
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2000219152A
Other languages
Japanese (ja)
Other versions
JP2002041088A (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.)
Faurecia Clarion Electronics Co Ltd
Original Assignee
Clarion 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 Clarion Co Ltd filed Critical Clarion Co Ltd
Priority to JP2000219152A priority Critical patent/JP4458635B2/en
Publication of JP2002041088A publication Critical patent/JP2002041088A/en
Application granted granted Critical
Publication of JP4458635B2 publication Critical patent/JP4458635B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve the problem that a frame error cannot be corrected even when the frame error occurs. SOLUTION: A error detecting circuit 30, which detects the error frame from audio data constituted with serial frames; and an interpolation circuit 70, which reads out the front frame and the rear frame of the error frame detected by the error detecting circuit from a third frame memory 13 and a fifth frame memory 15, generates a synthesized frame based on the front frame and the rear frame, and stores and renews the synthesized frame in a fourth frame memory 14 in order to interpolate the synthesized frame between the front and the rear frames of the error frame; are provided.

Description

【0001】
【発明の属する技術分野】
本発明は、例えば音声圧縮方式やMPEG方式の複数の連続フレームで構成するデータ内に発生したエラーフレームを補正するフレーム補正装置に関する。
【0002】
【従来の技術】
近年、音声圧縮方式やMPEG方式の複数の連続フレームで構成するデータを再生出力するオーディオ装置が広く知られている。
【0003】
このようなオーディオ装置では、連続フレーム内にフレームエラーが発生した場合、このエラーを検出することができる。
【0004】
【発明が解決しようとする課題】
しかしながら、このような従来のオーディオ装置によれば、複数の連続フレームで構成するデータ内にフレームエラーが発生すると、そのフレームエラーを検出することができるものの、そのまま、エラーフレームを出力してしまうため、このエラーフレームがノイズとなるといった問題点があった。
【0005】
本発明は上記問題点に鑑みてなされたものであり、その目的とするところは、フレームエラーが発生したとしても、このエラーフレームを補正することができるフレーム補正装置を提供することにある。
【0006】
【課題を解決するための手段】
上記目的を達成するために本発明のフレーム補正装置は、複数の連続フレームで構成するデータの内、前記連続フレーム内にエラーフレームを検出すると、このエラーフレームを補正するフレーム補正装置であって、前記連続フレームからエラーフレームを検出するエラー検出手段と、このエラー検出手段にて検出されたエラーフレームの前後フレームを抽出する前後フレーム抽出手段と、この前後フレーム抽出手段にて抽出した前フレーム及び後フレームに基づいて合成フレームを生成する合成フレーム生成手段と、この合成フレーム生成手段にて生成した合成フレームで、前記エラー検出手段にて検出したエラーフレームの前フレーム及び後フレーム間を補間する補間手段とを有するようにした。
【0007】
従って、本発明のフレーム補正装置によれば、フレームエラーが発生したとしても、エラーフレームの前後フレームを読み出し、これら前フレーム及び後フレームに基づいて合成フレームを生成し、この合成フレームでエラーフレームの前フレーム及び後フレーム間を補間するようにしたので、エラーフレームにあるべきフレームに最も相関性がある前後フレームを利用することで、フレーム間の連続性を損なうことなく、エラーフレームを補正することができる。
【0008】
本発明のフレーム補正装置は、前記合成フレーム生成手段が、前記前後フレーム抽出手段にて抽出した前フレーム及び後フレームの平均値を算出する平均値算出手段と、前記前フレームの平均値及び前記後フレームの平均値に基づいて、前記前フレーム及び後フレーム間の近似直線を算出する近似直線算出手段と、前記前フレーム及び後フレームに窓関数を掛け合わせる窓関数手段とを有し、これら窓関数を掛け合わせた前フレーム及び後フレームを、前記近似直線上で重ね合わせることで、前記合成フレームを生成するようにした。
【0009】
従って、本発明のフレーム補正装置によれば、前フレームの平均値及び後フレームの平均値に基づいて、前記前フレーム及び後フレーム間の近似直線を算出し、前記前フレーム及び後フレームに窓関数を掛け合わせ、これら窓関数を掛け合わせた前フレーム及び後フレームを、前記近似直線上で重ね合わせることで、前記合成フレームを生成するようにしたので、フレームの連続性を確実に保つことができる。
【0010】
【発明の実施の形態】
以下、図面に基づいて本発明のフレーム補正装置における実施の形態を示すオーディオ装置について説明する。図1は本実施の形態に示すオーディオ装置内部の概略構成を示すブロック図、図2は本実施の形態に示すオーディオ装置の要部であるフレーム補正部内部の概略構成を示すブロック図である。
【0011】
図1に示すオーディオ装置1は、オーディオデータを符号化するMPEGエンコーダ等のオーディオエンコーダ2と、このオーディオエンコーダ2にて符号化された、複数の連続フレームで構成するオーディオデータのエラーを補正するフレーム補正部3と、このフレーム補正部3で補正したオーディオデータをアナログ変換するD/Aコンバータ4とを有している。
【0012】
各フレームは、所定サンプリング間隔で計N個のオーディオデータで構成している。
【0013】
さらに、オーディオエンコーダ2は、各オーディオデータ及び、個々のオーディオデータ毎にエラーの有無を示すエラーフラグデータを、フレーム補正部3に順次伝送するものである。尚、エラーフラグデータは、オーディオデータにエラーがあれば“1”とし、エラーがなければ“0”とする。
【0014】
図2に示すフレーム補正部3は、所定サンプリング間隔毎のオーディオデータ及びエラーフラグデータを順次入力し、フレーム単位でオーディオデータ及びエラーフラグデータを記憶する計6個のフレームメモリ10と、このフレームメモリ10の内、第1フレームメモリ11に記憶されたオーディオデータ及びエラーフラグデータを読み出し、N個のオーディオデータを時間平均化することで、フレーム単位の平均値を算出すると共に、N個のエラーフラグデータを加算することでフレーム単位での加算結果を算出する平均値算出回路20と、この平均値算出回路20によるエラーフラグデータの加算結果に基づいてフレーム単位でのエラー有無を判別するエラー検出回路30と、平均値算出回路20にて算出されたフレーム単位の平均値及びエラー有無を示すエラーフラグをフレーム単位で順次記憶する4個の平均値メモリ40とを有している。
【0015】
平均値算出回路20で算出されるフレーム単位の平均値は、フレーム長をT(sec)、i番目のフレームに関わるオーディオデータの離散時間信号をxi(tn)と置き換え、i番目のフレームにおける平均値FAver(i)は、(数1)で算出することができる。
【数1】

Figure 0004458635
【0016】
尚、このtnは、時間のサンプリング間隔であり、(数2)で表すことができる。
【数2】
Figure 0004458635
【0017】
また、エラー検出回路30は、フレーム単位のエラーフラグデータの加算結果に基づいてフレーム単位でのエラー有無を判別するが、エラーフラグデータの加算結果が(1/2)N以上であれば、エラー有りと判別し、エラーフラグを“1”として、第3平均値メモリ41に順次伝送するものである。
【0018】
フレームメモリ10は、計6個のFIFOメモリであり、第1フレームメモリ11、第2フレームメモリ12、第3フレームメモリ13、第4フレームメモリ14、第5フレームメモリ15、第6フレームメモリ16で構成し、第1フレームメモリ11内にi番目のフレームに関わるオーディオデータ及びエラーフラグデータが記憶され、さらに(i+1)番目のフレームが到来すると、第1フレームメモリ11に記憶中のi番目のフレームに関わるオーディオデータ及びエラーフラグデータを読出出力しながら、これらオーディオデータ及びエラーフラグデータを第2フレームメモリ12に順次記憶すると共に、(i+1)番目のフレームに関わるオーディオデータ及びエラーフラグデータを第1フレームメモリ11に順次記憶する。
【0019】
このように第1フレームメモリ11、第2フレームメモリ12、第3フレームメモリ13、第4フレームメモリ14、第5フレームメモリ15、第6フレームメモリ16に順次読出/記憶するものである。
【0020】
また、平均値メモリ40は、計4個のFIFOメモリであり、第3平均値メモリ41、第4平均値メモリ42、第5平均値メモリ43及び第6平均値メモリ44で構成し、フレームメモリ10の記憶読出タイミングと連動しており、例えば第3フレームメモリ13にi番目のフレームに関わるオーディオデータ及びエラーフラグデータが記憶されるのと同一タイミングで、このi番目のフレームに関わる平均値が第3平均値メモリ41に記憶される。
【0021】
また、第3フレームメモリ13からi番目のフレームに関わるオーディオデータ及びエラーフラグデータが読出出力されるのと同一タイミングで、第3平均値メモリ41からもi番目のフレームに関わる平均値が読出出力される。
【0022】
さらに、フレーム補正部3は、エラー検出回路30にてフレーム単位でのエラーを検出して、このエラーフレームに関わる平均値が第4平均値メモリ42に記憶されると、このエラーフレームの前後フレーム(例えばi番目のフレームをエラーフレームとすると、前フレームは(i−1)番目のフレーム、後フレームは(i+1)番目のフレームとなる)に関わる平均値を第3平均値メモリ41及び第5平均値メモリ43から読み出し、これら前後フレームに関わる平均値に基づいて近似直線を算出する近似直線算出回路50と、後フレームに関わるオーディオデータを記憶している第3フレームメモリ13からオーディオデータを読み出し、このオーディオデータに窓関数を掛け合わせる後フレーム窓関数回路61と、前フレームに関わるオーディオデータを記憶している第5フレームメモリ15からオーディオデータを読み出し、このオーディオデータに窓関数を掛け合わせる前フレーム窓関数回路62と、近似直線算出回路50にて算出された近似直線、後フレーム窓関数回路61にて窓関数を掛け合わせた後フレーム及び、前フレーム窓関数回路62にて窓関数を掛け合わせた前フレームに基づいて合成フレームを生成し、この合成フレームを第4フレームメモリ14に更新記憶する補間回路70と、第6フレームメモリ16で順次読み出されるフレームに移動平均処理を施すことで、フレーム間の不連続性を修正するFIRフィルタ80とを有している。
【0023】
近似直線算出回路50は、第3平均値メモリ41に記憶中の平均値をAとし、第5平均値メモリ43に記憶中の平均値をBとした場合、(数3)を使用することで、近似直線を算出することができるものである。
【数3】
Figure 0004458635
【0024】
前フレーム窓関数回路62は、(数4)を使用することで、前フレームに窓関数w(tn)、例えばハミング窓関数を掛け合わせた前フレームを生成することができる。尚、後フレーム窓関数回路61においても、同様に(数4)を使用することで、後フレームに窓関数を掛け合わせることで後フレームを生成することができる。
【数4】
Figure 0004458635
【0025】
また、補間回路70は、(数5)を使用することで、前フレーム窓関数回路62で算出した前フレーム及び後フレーム窓関数回路61で算出した後フレームを合成して、近似直線算出回路で算出した近似直線上に重ね合わせることで合成フレームを生成することができる。
【数5】
Figure 0004458635
【0026】
尚、請求項記載の前後フレーム抽出手段は、第3フレームメモリ13及び第5フレームメモリ15に、平均値算出手段は平均値算出回路20に、エラー検出手段はエラー検出回路30に、近似直線算出手段は近似直線算出回路50に、窓関数手段は後フレーム窓関数回路61及び前フレーム窓関数回路62、補間手段及び合成フレーム生成手段は補間回路70に相当するものである。
【0027】
次に本実施の形態の動作について説明する。図3は本実施の形態に示すオーディオ装置1の要部であるフレーム補正部3のフレーム補正処理に関わる処理動作を示すフローチャートである。図4は同フレーム補正処理に関わる各処理動作のフレーム信号波形を示す説明図である。
【0028】
まずは、フレーム補正部3の第1フレームメモリ11は、オーディオエンコーダ2からのオーディオデータ及びエラーフラグデータをフレーム単位で順次に記憶する。さらに、第1フレームメモリ11は、次のフレームに関わるオーディオデータ(図4(a)参照)及びエラーフラグデータが伝送されると、現在記憶中のオーディオデータ及びエラーフラグデータを第2フレームメモリ12へと読出出力すると共に、これら伝送されたオーディオデータ及びエラーフラグデータを第1フレームメモリ11に順次記憶する。このように第2フレームメモリ12以降、同様の読出、記憶動作を繰り返す。
【0029】
さらに、平均値算出回路20は、第1フレームメモリ11に記憶中のオーディオデータ及びエラーフラグデータをフレーム単位で読み出し、(数1)に基づいて、これらオーディオデータをフレーム単位で平均値を算出すると共に、エラーフラグデータをフレーム単位で加算することで、フレーム単位のオーディオデータの平均値及びエラーフラグデータの加算結果をエラー検出回路30に伝送する。
【0030】
エラー検出回路30は、エラーフラグデータの加算結果に基づいて、この加算結果が(1/2)N以上であるか否かを判定し、その加算結果が(1/2)N未満であれば、フレームエラーは発生していないものと判断してエラーフラグを“0”とし、このフレームに関わる平均値(図4(A)の点線参照)及びエラーフラグを第3平均値メモリ41に記憶する。
【0031】
また、エラー検出回路30は、エラーフラグデータの加算結果に基づいて、この加算結果が(1/2)N以上であれば、フレームエラーが発生したものと判断して(ステップS11)、エラーフラグを“1”とし、このフレームに関わる平均値を“0”とし、これらエラーフラグ及び平均値を第3平均値メモリ41に記憶する(ステップS12)。
【0032】
尚、この第3平均値メモリ41に、例えばi番目のフレームに関わる平均値及びエラーフラグが記憶された場合、このi番目のフレームに関わるオーディオデータ及びエラーフラグデータも第3フレームメモリ13に記憶され、第4平均値メモリ42に(i−1)番目のフレームに関わる平均値及びエラーフラグが記憶された場合、この(i−1)番目のフレームに関わるオーディオデータ及びエラーフラグデータも第4フレームメモリ14に記憶され、第5平均値メモリ43及び第5フレームメモリ15間、第6平均値メモリ44及び第6フレームメモリ16間においても同様の関係で諸データが記憶されることになる。
【0033】
例えば第3平均値メモリ41、第5平均値メモリ43及び第6平均値メモリ44に記憶中のエラーフラグが“0”で、第4平均値メモリ42に記憶中のエラーフラグが“1”の場合、この第4平均値メモリ42に記憶中のエラーフラグ“1”に関わるフレーム、つまり第4フレームメモリ14に記憶中のオーディオデータに関わるフレームにエラーが発生しているものと判断することができる。
【0034】
近似直線算出回路50は、第4平均値メモリ42に記憶中の平均値に関わるフレームがエラーフレームであることから、その前後のフレームに関わる第3平均値メモリ41及び第5平均値メモリ42に記憶中の平均値を(数3)に代入することで、図4(b)の点線に示すように、エラーフレームを補間するフレームの近似直線を算出する(ステップS13)。
【0035】
さらに、前フレーム窓関数回路62は、エラーフレームの前フレームに関わるオーディオデータを第5フレームメモリ15から読み出し、(数4)に基づいて、この前フレームに対して窓関数を掛け合わせることで、図4(b)に示すような信号波形となる。
【0036】
また、後フレーム窓関数回路61は、エラーフレームの後フレームに関わるオーディオデータを第3フレームメモリ13から読み出し、(数4)に基づいて、この後フレームに対して窓関数を掛け合わせることで、図4(b)に示すような信号波形となる(ステップS14)。
【0037】
さらに、補間回路70は、図4(c)に示すように近似直線算出回路50にて算出した近似直線上に、前フレーム窓関数回路62及び後フレーム窓関数回路61で掛け合わせた信号波形を重ね合わせるように、(数5)に基づいて合成フレームを生成する(ステップS15)。
【0038】
補間回路70は、図4(c)に示すような合成フレームを生成すると、第4フレームメモリ14に記憶更新することになる(ステップS16)。
【0039】
そして、FIRフィルタ80では、第6フレームメモリ16から順次伝送されるフレーム単位のオーディオデータの不連続性を修正する移動平均処理を実行することで、連続したフレームを出力することになる。
【0040】
本実施の形態によれば、連続フレームからエラーフレームを検出すると、このエラーフレームの前後フレームを読み出し、これら前フレームの平均値及び後フレームの平均値に基づいて、エラーフレームを補間するフレームの近似直線を算出し、この近似直線上に、窓関数を掛け合わせた前フレーム及び窓関数を掛け合わせた後フレームを重ね合わせることで合成フレームを生成し、この合成フレームでエラーフレームの前フレーム及び後フレーム間を補間するようにしたので、エラーフレームにあるべきフレームと最も相関性がある前後フレームを利用することで、このフレームの連続性を損なうことなく、エラーフレームを補正することができ、ひいてはノイズが発生することもなくなる。
【0041】
尚、上記実施の形態においては、1フレーム分のフレームエラーが発生した場合を例にあげて説明したが、2フレーム分以上のフレームエラーが発生したとしても、その分、フレームメモリ10や平均値メモリ40の数を増設したり、又は各メモリのメモリ容量を変えることで、2フレーム分以上のフレームエラーが発生したとしても、そのフレーム間の連続性を損なうこともなく、エラーフレームを補正することができる。
【0042】
【発明の効果】
上記のように構成された本発明のフレーム補正装置によれば、フレームエラーが発生したとしても、エラーフレームの前後フレームを読み出し、これら前フレーム及び後フレームに基づいて合成フレームを生成し、この合成フレームでエラーフレームの前フレーム及び後フレーム間を補間するようにしたので、エラーフレームにあるべきフレームに最も相関性がある前後フレームを利用することで、フレームの連続性を損なうことなく、エラーフレームを補正することができる。
【図面の簡単な説明】
【図1】本発明のフレーム補正装置における実施の形態を示すオーディオ装置内部の概略構成を示すブロック図である。
【図2】本実施の形態に示すオーディオ装置の要部であるフレーム補正部内部の概略構成を示すブロック図である。
【図3】本実施の形態におけるフレーム補正部のフレーム補正処理に関わる処理動作を示すフローチャートである。
【図4】本実施の形態におけるフレーム補正部のフレーム補正処理に関わるフレームの信号波形を示す説明図である。
【符号の説明】
3 フレーム補正部(フレーム補正装置)
10 フレームメモリ(前後フレーム抽出手段)
13 第3フレームメモリ(前後フレーム抽出手段)
15 第5フレームメモリ(前後フレーム抽出手段)
20 平均値算出回路(平均値算出手段)
30 エラー検出回路(エラー検出手段)
40 平均値メモリ
50 近似直線算出回路(近似直線算出手段)
61 後フレーム窓関数回路(窓関数手段)
62 前フレーム窓関数回路(窓関数手段)
70 補間回路(補間手段、合成フレーム生成手段)[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a frame correction apparatus that corrects an error frame generated in data composed of a plurality of continuous frames of, for example, a voice compression method or MPEG method.
[0002]
[Prior art]
2. Description of the Related Art In recent years, audio devices that reproduce and output data composed of a plurality of continuous frames of a voice compression method or MPEG method are widely known.
[0003]
In such an audio apparatus, when a frame error occurs in a continuous frame, this error can be detected.
[0004]
[Problems to be solved by the invention]
However, according to such a conventional audio device, if a frame error occurs in data composed of a plurality of continuous frames, the frame error can be detected, but an error frame is output as it is. There is a problem that this error frame becomes noise.
[0005]
The present invention has been made in view of the above problems, and an object of the present invention is to provide a frame correction apparatus that can correct an error frame even if a frame error occurs.
[0006]
[Means for Solving the Problems]
In order to achieve the above object, a frame correction apparatus according to the present invention is a frame correction apparatus that corrects an error frame when an error frame is detected in the continuous frame among data composed of a plurality of continuous frames. Error detection means for detecting an error frame from the continuous frames, front and rear frame extraction means for extracting the previous and next frames of the error frame detected by the error detection means, and the previous and subsequent frames extracted by the front and rear frame extraction means Synthetic frame generating means for generating a synthetic frame based on the frame, and interpolation means for interpolating between the previous frame and the subsequent frame of the error frame detected by the error detecting means with the synthetic frame generated by the synthetic frame generating means And to have.
[0007]
Therefore, according to the frame correction apparatus of the present invention, even if a frame error occurs, the frame before and after the error frame is read, a synthesized frame is generated based on the previous frame and the subsequent frame, and the error frame is Since the previous frame and the subsequent frame are interpolated, the error frame can be corrected without impairing the continuity between the frames by using the preceding and following frames that are most correlated with the frame that should be in the error frame. Can do.
[0008]
In the frame correction apparatus of the present invention, the synthesized frame generation means calculates an average value of the previous frame and the subsequent frame extracted by the preceding and following frame extraction means, an average value of the previous frame and the subsequent frame An approximate straight line calculating means for calculating an approximate straight line between the previous frame and the subsequent frame based on an average value of the frame, and a window function means for multiplying the previous frame and the subsequent frame by a window function, and these window functions The synthesized frame is generated by superimposing the preceding frame and the succeeding frame multiplied by on the approximate line.
[0009]
Therefore, according to the frame correction apparatus of the present invention, an approximate straight line between the previous frame and the subsequent frame is calculated based on the average value of the previous frame and the average value of the subsequent frame, and a window function is applied to the previous frame and the subsequent frame. And the synthesized frame is generated by superimposing the previous frame and the subsequent frame multiplied by these window functions on the approximate line, so that the continuity of the frames can be reliably maintained. .
[0010]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an audio apparatus showing an embodiment of a frame correction apparatus according to the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration inside the audio apparatus shown in the present embodiment, and FIG. 2 is a block diagram showing a schematic configuration inside a frame correction unit which is a main part of the audio apparatus shown in the present embodiment.
[0011]
An audio apparatus 1 shown in FIG. 1 includes an audio encoder 2 such as an MPEG encoder that encodes audio data, and a frame that corrects an error in audio data that is encoded by the audio encoder 2 and includes a plurality of continuous frames. The correction unit 3 includes a D / A converter 4 that converts the audio data corrected by the frame correction unit 3 into analog data.
[0012]
Each frame is composed of a total of N audio data at a predetermined sampling interval.
[0013]
Further, the audio encoder 2 sequentially transmits each audio data and error flag data indicating the presence or absence of an error for each audio data to the frame correction unit 3. The error flag data is “1” if there is an error in the audio data, and “0” if there is no error.
[0014]
The frame correction unit 3 shown in FIG. 2 sequentially inputs audio data and error flag data at predetermined sampling intervals, and stores a total of six frame memories 10 for storing audio data and error flag data in units of frames. 10, the audio data and the error flag data stored in the first frame memory 11 are read, and the N audio data are time-averaged to calculate an average value for each frame, and the N error flags are calculated. An average value calculation circuit 20 that calculates an addition result in units of frames by adding data, and an error detection circuit that determines the presence or absence of errors in units of frames based on the addition result of error flag data by the average value calculation circuit 20 30 and the average value of each frame calculated by the average value calculation circuit 20 And a four average value memory 40 for sequentially storing a frame basis an error flag indicating the fine error presence.
[0015]
The average value of the frame unit calculated by the average value calculating circuit 20 is obtained by replacing the i-th frame by replacing the frame length with T (sec) and the discrete time signal of the audio data related to the i-th frame with x i (t n ). The average value FAver (i) at can be calculated by (Equation 1).
[Expression 1]
Figure 0004458635
[0016]
This t n is a sampling interval of time and can be expressed by (Equation 2).
[Expression 2]
Figure 0004458635
[0017]
The error detection circuit 30 determines whether or not there is an error in the frame unit based on the addition result of the error flag data in the frame unit. If the addition result of the error flag data is equal to or greater than (1/2) N, an error is detected. It is determined that there is, and the error flag is set to “1”, which is sequentially transmitted to the third average value memory 41.
[0018]
The frame memory 10 is a total of six FIFO memories, and includes a first frame memory 11, a second frame memory 12, a third frame memory 13, a fourth frame memory 14, a fifth frame memory 15, and a sixth frame memory 16. The i-th frame stored in the first frame memory 11 is stored in the first frame memory 11 when audio data and error flag data relating to the i-th frame are stored. These audio data and error flag data are sequentially stored in the second frame memory 12 while the audio data and error flag data relating to the (i + 1) th frame are stored in the first frame. Store sequentially in the frame memory 11.
[0019]
In this manner, the first frame memory 11, the second frame memory 12, the third frame memory 13, the fourth frame memory 14, the fifth frame memory 15, and the sixth frame memory 16 are sequentially read / stored.
[0020]
The average value memory 40 is a total of four FIFO memories, and includes a third average value memory 41, a fourth average value memory 42, a fifth average value memory 43, and a sixth average value memory 44, and a frame memory. For example, the audio data and error flag data related to the i-th frame are stored in the third frame memory 13 at the same timing as the average value related to the i-th frame. It is stored in the third average value memory 41.
[0021]
Further, at the same timing when audio data and error flag data related to the i-th frame are read out from the third frame memory 13, the average value related to the i-th frame is also read out from the third average value memory 41. Is done.
[0022]
Further, the frame correction unit 3 detects an error in units of frames by the error detection circuit 30, and when the average value related to the error frame is stored in the fourth average value memory 42, the frame before and after the error frame. For example, if the i-th frame is an error frame, the average value relating to the (i−1) -th frame for the previous frame and the (i + 1) -th frame for the subsequent frame) is used as the third average value memory 41 and the fifth average value. The audio data is read out from the average value memory 43 and the approximate line calculation circuit 50 for calculating the approximate line based on the average values related to the preceding and following frames and the third frame memory 13 storing the audio data related to the subsequent frame. , A post-frame window function circuit 61 that multiplies the audio data by a window function, and relates to the previous frame Audio data is read from the fifth frame memory 15 storing the audio data, and the audio data is multiplied by a window function before the frame window function circuit 62; the approximate straight line calculated by the approximate straight line calculation circuit 50; A synthesized frame is generated based on the frame after the window function is multiplied by the function circuit 61 and the previous frame multiplied by the window function by the previous frame window function circuit 62, and this synthesized frame is stored in the fourth frame memory 14. An interpolation circuit 70 for updating and storing, and an FIR filter 80 for correcting discontinuity between frames by applying moving average processing to frames sequentially read out by the sixth frame memory 16 are provided.
[0023]
When the average value stored in the third average value memory 41 is A and the average value stored in the fifth average value memory 43 is B, the approximate straight line calculation circuit 50 uses (Equation 3). An approximate straight line can be calculated.
[Equation 3]
Figure 0004458635
[0024]
The previous frame window function circuit 62 can generate a previous frame by multiplying the previous frame by a window function w (t n ), for example, a Hamming window function, by using (Equation 4). Also in the rear frame window function circuit 61, the rear frame can be generated by multiplying the rear frame by the window function by similarly using (Equation 4).
[Expression 4]
Figure 0004458635
[0025]
Further, the interpolation circuit 70 uses (Equation 5) to synthesize the previous frame calculated by the previous frame window function circuit 62 and the subsequent frame calculated by the subsequent frame window function circuit 61, and the approximate straight line calculation circuit. A composite frame can be generated by overlapping the calculated approximate straight line.
[Equation 5]
Figure 0004458635
[0026]
Note that the preceding and following frame extracting means includes the third frame memory 13 and the fifth frame memory 15, the average value calculating means for the average value calculating circuit 20, the error detecting means for the error detecting circuit 30, and the approximate straight line calculation. The means corresponds to the approximate straight line calculation circuit 50, the window function means corresponds to the post-frame window function circuit 61 and the previous frame window function circuit 62, and the interpolation means and the combined frame generation means correspond to the interpolation circuit 70.
[0027]
Next, the operation of the present embodiment will be described. FIG. 3 is a flowchart showing processing operations related to the frame correction processing of the frame correction unit 3 which is a main part of the audio apparatus 1 shown in the present embodiment. FIG. 4 is an explanatory diagram showing the frame signal waveform of each processing operation related to the frame correction processing.
[0028]
First, the first frame memory 11 of the frame correction unit 3 sequentially stores the audio data and error flag data from the audio encoder 2 in units of frames. Furthermore, when the audio data (see FIG. 4A) and error flag data relating to the next frame and the error flag data are transmitted, the first frame memory 11 stores the audio data and error flag data currently stored in the second frame memory 12. The transmitted audio data and error flag data are sequentially stored in the first frame memory 11. In this way, the same reading and storing operations are repeated from the second frame memory 12 onward.
[0029]
Further, the average value calculation circuit 20 reads out the audio data and error flag data stored in the first frame memory 11 in units of frames, and calculates the average value of these audio data in units of frames based on (Equation 1). At the same time, by adding the error flag data in units of frames, the average value of the audio data in units of frames and the addition result of the error flag data are transmitted to the error detection circuit 30.
[0030]
The error detection circuit 30 determines whether or not the addition result is (1/2) N or more based on the addition result of the error flag data, and if the addition result is less than (1/2) N. It is determined that no frame error has occurred, the error flag is set to “0”, and the average value (see the dotted line in FIG. 4A) and the error flag related to this frame are stored in the third average value memory 41. .
[0031]
Further, based on the addition result of the error flag data, the error detection circuit 30 determines that a frame error has occurred if the addition result is (1/2) N or more (step S11), and the error flag. Is set to “1”, the average value related to this frame is set to “0”, and the error flag and the average value are stored in the third average value memory 41 (step S12).
[0032]
For example, when the average value and the error flag related to the i-th frame are stored in the third average value memory 41, the audio data and the error flag data related to the i-th frame are also stored in the third frame memory 13. When the average value and error flag related to the (i−1) th frame are stored in the fourth average value memory 42, the audio data and error flag data related to the (i−1) th frame are also stored in the fourth average value memory 42. The data is stored in the frame memory 14, and various data are stored in the same relationship between the fifth average value memory 43 and the fifth frame memory 15 and between the sixth average value memory 44 and the sixth frame memory 16.
[0033]
For example, the error flag stored in the third average value memory 41, the fifth average value memory 43, and the sixth average value memory 44 is “0”, and the error flag stored in the fourth average value memory 42 is “1”. In this case, it may be determined that an error has occurred in the frame related to the error flag “1” stored in the fourth average value memory 42, that is, the frame related to the audio data stored in the fourth frame memory 14. it can.
[0034]
Since the frame related to the average value stored in the fourth average value memory 42 is an error frame, the approximate line calculation circuit 50 stores the third average value memory 41 and the fifth average value memory 42 related to the preceding and subsequent frames. By substituting the stored average value into (Equation 3), an approximate straight line of a frame for interpolating an error frame is calculated as shown by a dotted line in FIG. 4B (step S13).
[0035]
Further, the previous frame window function circuit 62 reads out audio data related to the previous frame of the error frame from the fifth frame memory 15 and multiplies the previous frame by the window function based on (Equation 4). The signal waveform is as shown in FIG.
[0036]
Further, the post-frame window function circuit 61 reads out audio data related to the post-frame of the error frame from the third frame memory 13 and multiplies the post-frame by a window function based on (Equation 4), The signal waveform is as shown in FIG. 4B (step S14).
[0037]
Further, the interpolation circuit 70, as shown in FIG. 4C, multiplies the signal waveform obtained by multiplying the approximate line calculated by the approximate line calculation circuit 50 by the previous frame window function circuit 62 and the rear frame window function circuit 61. A composite frame is generated based on (Equation 5) so as to overlap (step S15).
[0038]
When the interpolating circuit 70 generates a composite frame as shown in FIG. 4C, the interpolating circuit 70 stores and updates the fourth frame memory 14 (step S16).
[0039]
The FIR filter 80 outputs a continuous frame by executing a moving average process for correcting discontinuity of audio data in units of frames sequentially transmitted from the sixth frame memory 16.
[0040]
According to the present embodiment, when an error frame is detected from consecutive frames, the frames before and after the error frame are read, and an approximation of a frame that interpolates the error frame based on the average value of the previous frame and the average value of the subsequent frame A straight line is calculated, and a composite frame is generated by superimposing the previous frame multiplied by the window function and the post-frame multiplied by the window function on the approximate straight line. Since inter-frame interpolation is used, the error frame can be corrected without losing the continuity of this frame by using the previous and next frames that have the most correlation with the frame that should be in the error frame. Noise is no longer generated.
[0041]
In the above embodiment, the case where a frame error for one frame has been described as an example. However, even if a frame error for two frames or more has occurred, the frame memory 10 and the average value are correspondingly generated. Even if two or more frame errors occur by increasing the number of memories 40 or changing the memory capacity of each memory, the error frames are corrected without losing the continuity between the frames. be able to.
[0042]
【The invention's effect】
According to the frame correction apparatus of the present invention configured as described above, even if a frame error occurs, the frame before and after the error frame is read, a synthesized frame is generated based on the previous frame and the subsequent frame, and this synthesis is performed. Since the frame is interpolated between the previous frame and the subsequent frame of the error frame, the error frame can be obtained without losing the continuity of the frame by using the previous and next frames that are most correlated with the frame that should be in the error frame. Can be corrected.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a schematic configuration inside an audio apparatus showing an embodiment of a frame correction apparatus of the present invention.
FIG. 2 is a block diagram showing a schematic configuration inside a frame correction unit which is a main part of the audio apparatus shown in the present embodiment;
FIG. 3 is a flowchart showing a processing operation related to a frame correction process of a frame correction unit in the present embodiment.
FIG. 4 is an explanatory diagram showing a signal waveform of a frame related to a frame correction process of a frame correction unit according to the present embodiment.
[Explanation of symbols]
3 Frame correction unit (frame correction device)
10 frame memory (before and after frame extraction means)
13 Third frame memory (front and rear frame extraction means)
15 Fifth frame memory (front and rear frame extraction means)
20 Average value calculation circuit (mean value calculation means)
30 Error detection circuit (error detection means)
40 Average value memory 50 Approximate line calculation circuit (approximate line calculation means)
61 Rear frame window function circuit (window function means)
62 Front frame window function circuit (window function means)
70 Interpolation circuit (interpolation means, composite frame generation means)

Claims (1)

複数の連続フレームで構成されるデータ内からエラーフレームを検出するエラー検出手段と、
前記エラー検出手段にて検出されたエラーフレームの前後フレームを抽出する前後フレーム抽出手段と、
前記前後フレーム抽出手段にて抽出した前フレーム及び後フレームに基づいて合成フレームを生成する合成フレーム生成手段と、
前記合成フレーム生成手段にて生成した合成フレームで、前記エラー検出手段にて検出したエラーフレームの前フレーム及び後フレーム間を補間する補間手段とを有し、
前記合成フレーム生成手段は、
前記前後フレーム抽出手段にて抽出した前フレーム及び後フレームの平均値を算出する平均値算出手段と、
前記前フレームの平均値及び前記後フレームの平均値に基づいて、前記前フレーム及び後フレーム間の近似直線を算出する近似直線算出手段と、
前記前フレーム及び後フレームに窓関数を掛け合わせる窓関数手段とを有し、
これら窓関数を掛け合わせた前フレーム及び後フレームを、前記近似直線上で重ね合わせることで、前記合成フレームを生成するフレーム補正装置。
An error detection means for detecting an error frame from data comprised of a plurality of consecutive frames;
Front and rear frame extracting means for extracting the frames before and after the detected error frames in the error detecting means,
A composite frame generating means for generating a synthetic frame based on the frame and the rear frame before extracted by said front and rear frame extracting means,
Synthetic frame generated by the composite frame generating means, possess an interpolation means for interpolating between the previous frame and the rear frame of the error frame detected by said error detecting means,
The synthetic frame generation means includes
An average value calculating means for calculating an average value of the previous frame and the subsequent frame extracted by the preceding and following frame extracting means;
Approximate line calculation means for calculating an approximate line between the previous frame and the subsequent frame based on the average value of the previous frame and the average value of the subsequent frame;
Window function means for multiplying the front frame and the rear frame by a window function,
A frame correction apparatus for generating the composite frame by superimposing the previous frame and the rear frame multiplied by these window functions on the approximate line .
JP2000219152A 2000-07-19 2000-07-19 Frame correction device Expired - Fee Related JP4458635B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000219152A JP4458635B2 (en) 2000-07-19 2000-07-19 Frame correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000219152A JP4458635B2 (en) 2000-07-19 2000-07-19 Frame correction device

Publications (2)

Publication Number Publication Date
JP2002041088A JP2002041088A (en) 2002-02-08
JP4458635B2 true JP4458635B2 (en) 2010-04-28

Family

ID=18713984

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000219152A Expired - Fee Related JP4458635B2 (en) 2000-07-19 2000-07-19 Frame correction device

Country Status (1)

Country Link
JP (1) JP4458635B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5093233B2 (en) * 2007-04-27 2012-12-12 富士通株式会社 Signal output device, information device, signal output method, and signal output program
WO2008146466A1 (en) 2007-05-24 2008-12-04 Panasonic Corporation Audio decoding device, audio decoding method, program, and integrated circuit
FR2929466A1 (en) * 2008-03-28 2009-10-02 France Telecom DISSIMULATION OF TRANSMISSION ERROR IN A DIGITAL SIGNAL IN A HIERARCHICAL DECODING STRUCTURE
US8698911B2 (en) 2009-10-28 2014-04-15 Nikon Corporation Sound recording device, imaging device, photographing device, optical device, and program
JP5158054B2 (en) * 2009-10-28 2013-03-06 株式会社ニコン Recording device, imaging device, and program

Also Published As

Publication number Publication date
JP2002041088A (en) 2002-02-08

Similar Documents

Publication Publication Date Title
JP5362808B2 (en) Frame loss cancellation in voice communication
US20080122973A1 (en) Detection method of generation sequence of interlace picture and interlace/progressive conversion method and device
JP4458635B2 (en) Frame correction device
JP3133677B2 (en) Decoding processing device and decoding processing method thereof
JPH088933A (en) Voice cell coder
JP2543577B2 (en) Voice packet interpolation method
JPH0223744A (en) Sound packet interpolation system
JP2008112056A (en) Audio sigmal processor
JP2005233993A (en) Voice transmission system
JPH06350540A (en) Error compensating method for digital audio signal
JP3070287B2 (en) Audio processing circuit
JP2640598B2 (en) Voice decoding device
JPH11109993A (en) Phoneme connecting method and voice synthesizer
JP2003348023A (en) Method and device for reducing noise in packet communication
JP4472711B2 (en) Audio data processing apparatus and audio data processing method
JP3468370B2 (en) Playback device
JP2003264717A (en) Noise reduction device in digital image communication
JP5046661B2 (en) Audio equipment
JP4888865B2 (en) Streaming data compensation method and digital signal receiving apparatus
JPH0736491A (en) Pitch extracting device
JPH0877704A (en) Address controller
WO2007141928A1 (en) Information reproducing device
JP2006033356A (en) Audio data processing apparatus
JP2005143013A (en) Decoding apparatus
JPH0458628A (en) Waveform compensation method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070705

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091109

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091117

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100113

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100209

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130219

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130219

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140219

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees