Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4556866B2 - High efficiency encoding program and high efficiency encoding apparatus - Google Patents
[go: Go Back, main page]

JP4556866B2 - High efficiency encoding program and high efficiency encoding apparatus - Google Patents

High efficiency encoding program and high efficiency encoding apparatus Download PDF

Info

Publication number
JP4556866B2
JP4556866B2 JP2005376442A JP2005376442A JP4556866B2 JP 4556866 B2 JP4556866 B2 JP 4556866B2 JP 2005376442 A JP2005376442 A JP 2005376442A JP 2005376442 A JP2005376442 A JP 2005376442A JP 4556866 B2 JP4556866 B2 JP 4556866B2
Authority
JP
Japan
Prior art keywords
value
calculated
characteristic
quantization
filter
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
JP2005376442A
Other languages
Japanese (ja)
Other versions
JP2007178677A (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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan 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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP2005376442A priority Critical patent/JP4556866B2/en
Publication of JP2007178677A publication Critical patent/JP2007178677A/en
Application granted granted Critical
Publication of JP4556866B2 publication Critical patent/JP4556866B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

本発明は、音声又はオーディオ信号の符号化のための高能率符号化プログラム及び高能率符号化装置に関し、特に量子化雑音スペクトルを聴感的に望ましいものとすることによって聴くに耐え得る品質を提供する高能率符号化プログラム及び高能率符号化装置に関する。   The present invention relates to a high-efficiency encoding program and a high-efficiency encoding apparatus for encoding speech or audio signals, and in particular, provides a quality that can withstand listening by making the quantization noise spectrum audibly desirable. The present invention relates to a high-efficiency encoding program and a high-efficiency encoding apparatus.

従来から音声やオーディオ信号を符号化する技術はあり、その従来技術として下記の特許文献1がある。特許文献1には、差分符号化と準瞬時圧縮を用いた符号化方式において、量子化雑音スペクトルの形を変形させることで聴感上の品質を向上させる方法が記載されている。この方法は、デジタル音声信号の隣接する2サンプル間の差分値を、一定サンプル数の差分値から構成されるブロック内のレベルの最大値に応じて求めたレンジ情報を用いて圧縮を行う方式であり、レベル検出手段、マスキング特性演算手段、等ラウドネス曲線発生手段からの情報により決定されるフィルタ特性を、ノイズシェイピング手段によって量子化雑音に対して適用することで、等ラウドネス特性やマスキング特性に沿った量子化雑音スペクトルの形に変更することができ、聴感上のノイズを低減させることができる。   Conventionally, there is a technique for encoding a voice or an audio signal, and there is the following Patent Document 1 as the conventional technique. Patent Document 1 describes a method for improving the quality of hearing by changing the shape of a quantization noise spectrum in an encoding method using differential encoding and quasi-instantaneous compression. In this method, a difference value between two adjacent samples of a digital audio signal is compressed using range information obtained according to the maximum value of a level in a block composed of a difference value of a certain number of samples. Yes, the filter characteristics determined by the information from the level detection means, the masking characteristic calculation means, and the equal loudness curve generation means are applied to the quantization noise by the noise shaping means, so that the equal loudness characteristics and the masking characteristics are met. The quantization noise spectrum can be changed to a audible noise.

また、他の符号化技術としては下記の非特許文献1に記載されている技術が存在する。この技術は適応型差分PCM(Pulse Code Modulation)であり広く知られている。この技術は、1サンプル前の値を予測値として現サンプルとの差分値を算出して符号化を行うものであり、その際のステップサイズ(量子化幅)は直前の差分値を符号化した符号により決定される。この方式に基づく符号化ツールがPC(Personal Computer)で動作する汎用オーディオ編集ソフトウェアに組み込まれており、自由に符号化、復号化をすることができる。具体的に図12を用いて非特許文献1の高能率符号化装置を説明する。   As another encoding technique, there is a technique described in Non-Patent Document 1 below. This technique is adaptive differential PCM (Pulse Code Modulation) and is widely known. In this technique, a difference value from the current sample is calculated using a value one sample before as a predicted value, and encoding is performed, and a step size (quantization width) at that time is obtained by encoding the previous difference value. It is determined by the sign. An encoding tool based on this method is incorporated in general-purpose audio editing software that operates on a PC (Personal Computer), and can be freely encoded and decoded. Specifically, the high-efficiency encoding device of Non-Patent Document 1 will be described with reference to FIG.

図12に示すように、入力されるオーディオ信号X(n)はサンプリング周波数8kHz、12bit精度のリニアPCMである。通常のCDなどでは16ビットの精度があるため、LSB(Least Significant Bit)4ビット目を四捨五入して12bitに丸めて使用している。差分算出ステップ部121において、現サンプルであるX(n)と圧縮伸長された1つ前のサンプルX´(n−1)との差分が取られて差分値d(n)が生成される。そして、ステップサイズ(量子化幅)決定ステップ部123において、1つ前の差分値の符号化結果に基づき決定されたステップサイズss(n)が圧縮ステップ部122に供給され、差分値d(n)は4ビットのADPCMコードL(n)に変換される。伸長ステップ部124では、圧縮ステップ部122で変換されたADPCMコードL(n)が逆変換されて量子化雑音(以下、量子化誤差とも言う)を含んだ差分値d´(n)が得られる。そして、累積ステップ部125において差分算出ステップ部121の逆処理が行われて1つ前のサンプルX´(n−1)が再構築される。   As shown in FIG. 12, the input audio signal X (n) is a linear PCM with a sampling frequency of 8 kHz and 12-bit accuracy. Since an ordinary CD or the like has an accuracy of 16 bits, the LSB (Least Significant Bit) 4th bit is rounded to 12 bits. In the difference calculation step unit 121, the difference between the current sample X (n) and the previous compressed / extended sample X ′ (n−1) is taken to generate a difference value d (n). Then, in the step size (quantization width) determination step unit 123, the step size ss (n) determined based on the encoding result of the previous difference value is supplied to the compression step unit 122, and the difference value d (n ) Is converted into a 4-bit ADPCM code L (n). In the expansion step unit 124, the ADPCM code L (n) converted by the compression step unit 122 is inversely converted to obtain a difference value d ′ (n) including quantization noise (hereinafter also referred to as quantization error). . Then, the accumulation step unit 125 performs reverse processing of the difference calculation step unit 121 to reconstruct the previous sample X ′ (n−1).

また、この技術では、音声信号向けの符号化方式であるため、比較的緩やかな信号の変化を想定している。これにより、入力信号に急激な変化が生じた場合、直前の差分値を符号化した符号から現在のステップサイズ(量子化幅)を決定する構成ではステップサイズが信号に追随できずに量子化雑音が増加し、ざらざらと耳障りな音になるという問題があった。この問題を解消するため、上述した特許文献1に記載された技術を用いることを考える。特許文献1に記載された技術におけるノイズシェイピング手段は、量子化雑音を等ラウドネス特性やマスキング特性に基づいて聴覚的に聞こえない領域(例えば、16kHz以上)の量子化雑音を増加させるようにスペクトル形状を変化させている。
特許第3191457号公報(要約、図5) “Dialogic ADPCM Algorithm”1988,Dialogic Cooperation
Also, since this technique is an encoding method for audio signals, it assumes a relatively gradual change in signal. As a result, when a sudden change occurs in the input signal, the configuration in which the current step size (quantization width) is determined from the code obtained by encoding the immediately preceding difference value cannot follow the signal and the quantization noise There was a problem that the sound became rough and harsh. In order to solve this problem, consider using the technique described in Patent Document 1 described above. The noise shaping means in the technique described in Japanese Patent Application Laid-Open No. H10-228688 increases the spectral shape so that the quantization noise is increased in a region (for example, 16 kHz or more) inaudible based on equal loudness characteristics and masking characteristics. Is changing.
Japanese Patent No. 3191457 (summary, FIG. 5) “Dialogic ADPCM Algorithm” 1988, Dialogic Cooperation

しかしながら、特許文献1に記載された技術を非特許文献1に記載された技術に適用しようとした場合、非特許文献1の技術で用いられるサンプリング周波数が8kHz(ナイキスト周波数4kHz)であることから、量子化雑音を移動する帯域が存在しないという問題がある。また、マスキング特性に基づいた場合においても、マスキングレベル算出の際に一般的に低中域の量子化雑音を減らすように重み付けがなされるため、低中域で減らした分の量子化雑音を移動させる先がないという問題がある。   However, when the technique described in Patent Document 1 is applied to the technique described in Non-Patent Document 1, the sampling frequency used in the technique of Non-Patent Document 1 is 8 kHz (Nyquist frequency 4 kHz). There is a problem that there is no band for moving quantization noise. Even when based on the masking characteristics, weighting is generally performed to reduce the low-mid range quantization noise when calculating the masking level. There is a problem that there is no destination.

本発明は、上記問題を解決するためのものであり、低サンプリング周波数を用いる符号化において、既存のフォーマットに何ら変更を加えることなく、周波数的に一様に拡がった量子化雑音のスペクトル包絡線をオーディオ信号のスペクトル包絡線に近づけることができ、オーディオ信号の高品質化を図ることができ、特定の周波数帯域だけ信号対量子化雑音比(SNR)が高いといった偏りを改善することができ、処理フレーム境界で発生する品質ギャップを防ぐことができる高能率符号化プログラム及び高能率符号化装置を提供することを目的とする。   The present invention is to solve the above problem, and in encoding using a low sampling frequency, the spectral envelope of quantization noise spread uniformly in frequency without any change to the existing format. Can be made closer to the spectral envelope of the audio signal, the quality of the audio signal can be improved, and the bias that the signal-to-quantization noise ratio (SNR) is high only in a specific frequency band can be improved, An object of the present invention is to provide a high-efficiency encoding program and a high-efficiency encoding apparatus that can prevent a quality gap that occurs at a processing frame boundary.

上記目的を達成するために、本発明によれば、等ラウドネス特性及び/又はマスキング特性に基づいて、聴覚的に聞こえない領域の量子化雑音を増加させるようにスペクトル形状を変化させることが可能なサンプリング周波数に比べて低い低サンプリング周波数によりサンプリングされた入力オーディオ信号における現サンプルと1つ前のサンプルとの差分値を算出する差分算出ステップと、前記差分値に対して量子化及び符号化を行う圧縮ステップと、前記圧縮ステップから得られた出力に対して復号化及び逆量子化を行う伸長ステップと、前記圧縮ステップの符号化結果に基づいて、次に算出される差分値の量子化の際の量子化幅を決定する量子化幅決定ステップと、前記伸長ステップから得られた出力と前記差分値を算出する際の前記1つ前のサンプルの値とを加え、次の差分算出ステップにおいて差分値を算出する際の1つ前のサンプルの値を算出する累積ステップとをコンピュータに実行させるための高能率符号化プログラムであって、前記入力オーディオ信号を所定のサンプル数ごとに分けて処理フレームを生成するフレーム化ステップと、生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線を求め、求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数を算出し、算出された前記係数をフィルタ係数とするフィルタ特性決定ステップと、前記圧縮ステップへの入力の値と前記伸長ステップから得られた出力の値とに基づいて量子化雑音を算出し、算出された前記量子化雑音に対して、前記処理フレームごとに算出された前記フィルタ係数から構成されるフィルタの対応する前記フィルタ係数をかけて量子化雑音スペクトルを整形するノイズシェイピングステップとを更にコンピュータに実行させる高能率符号化プログラムであり、前記フィルタ特性決定ステップは、前記処理フレームの前記逆特性のスペクトル包絡線の最大レベルと最小レベルとの差により定まる振幅変動幅を所定の制限幅内に収めるよう処理を行うスペクトル包絡制限ステップを有する高能率符号化プログラムが提供される。この構成により、低サンプリング周波数を用いる符号化において、既存のフォーマットに何ら変更を加えることなく、周波数的に一様に拡がった量子化雑音のスペクトル包絡線をオーディオ信号のスペクトル包絡線に近づけることができ、オーディオ信号の高品質化を図ることができる。また、特定の周波数帯域だけ信号対量子化雑音比(SNR)が高いといった偏りを改善することができる。なお、量子化雑音は、量子化ひずみ又は量子化誤差とも言う。以下においても同様である。また、低サンプリング周波数とは、上述したように、量子化雑音を等ラウドネス特性やマスキング特性に基づいて聴覚的に聞こえない領域(例えば、16kHz以上)の量子化雑音を増加させるようにスペクトル形状を変化させることができないようなサンプリング周波数であって、例えば32kHz以下の周波数を言い、後述する8kHzに限られるものではない。   In order to achieve the above object, according to the present invention, it is possible to change the spectral shape so as to increase the quantization noise in a region that cannot be audibly heard based on the equal loudness characteristic and / or the masking characteristic. A difference calculating step for calculating a difference value between the current sample and the previous sample in the input audio signal sampled at a low sampling frequency lower than the sampling frequency, and performing quantization and encoding on the difference value A compression step, a decompression step that performs decoding and inverse quantization on the output obtained from the compression step, and a quantization of a difference value that is calculated next based on the encoding result of the compression step A quantization width determination step for determining a quantization width of the output, and the output obtained from the expansion step and the difference value when calculating the difference value A high-efficiency encoding program for causing a computer to execute a cumulative step of calculating a previous sample value when a difference value is calculated in a next difference calculation step by adding a previous sample value. A framing step for generating a processing frame by dividing the input audio signal into a predetermined number of samples, a spectrum envelope having a reverse characteristic of a spectrum envelope with respect to the generated processing frame is obtained, and the obtained inverse Calculating a coefficient indicating a characteristic of the spectral envelope that cancels the characteristic of the spectral envelope of the characteristic, a filter characteristic determination step using the calculated coefficient as a filter coefficient, a value input to the compression step, and the expansion step Quantization noise is calculated based on the obtained output value, and the processing is performed on the calculated quantization noise. A high-efficiency encoding program for causing a computer to further execute a noise shaping step of shaping a quantized noise spectrum by applying the corresponding filter coefficient of a filter composed of the filter coefficients calculated for each frame; The characteristic determining step includes a spectral envelope limiting step for performing processing so that an amplitude fluctuation range determined by a difference between a maximum level and a minimum level of the spectrum envelope of the inverse characteristic of the processing frame is within a predetermined limit range. An encoding program is provided. With this configuration, in encoding using a low sampling frequency, the spectral envelope of quantization noise spread uniformly in frequency can be brought close to the spectral envelope of the audio signal without any change to the existing format. Therefore, the quality of the audio signal can be improved. In addition, it is possible to improve the bias that the signal-to-quantization noise ratio (SNR) is high only in a specific frequency band. The quantization noise is also referred to as quantization distortion or quantization error. The same applies to the following. Also, as described above, the low sampling frequency means that the spectral shape is increased so that the quantization noise is increased in a region (for example, 16 kHz or more) inaudible based on equal loudness characteristics and masking characteristics. It is a sampling frequency that cannot be changed, for example, a frequency of 32 kHz or less, and is not limited to 8 kHz described later.

また、本発明によれば、等ラウドネス特性及び/又はマスキング特性に基づいて、聴覚的に聞こえない領域の量子化雑音を増加させるようにスペクトル形状を変化させることが可能なサンプリング周波数に比べて低い低サンプリング周波数によりサンプリングされた入力オーディオ信号における現サンプルと1つ前のサンプルとの差分値を算出する差分算出ステップと、前記差分値に対して量子化及び符号化を行う圧縮ステップと、前記圧縮ステップから得られた出力に対して復号化及び逆量子化を行う伸長ステップと、前記圧縮ステップの符号化結果に基づいて、次に算出される差分値の量子化の際の量子化幅を決定する量子化幅決定ステップと、前記伸長ステップから得られた出力と前記差分値を算出する際の前記1つ前のサンプルの値とを加え、次の差分算出ステップにおいて差分値を算出する際の1つ前のサンプルの値を算出する累積ステップとをコンピュータに実行させるための高能率符号化プログラムであって、前記入力オーディオ信号を所定のサンプル数ごとに分けて処理フレームを生成するフレーム化ステップと、生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線を求め、求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数を算出し、算出された前記係数をフィルタ係数とするフィルタ特性決定ステップと、前記圧縮ステップへの入力の値と前記伸長ステップから得られた出力の値とに基づいて量子化雑音を算出し、算出された前記量子化雑音に対して、前記処理フレームごとに算出された前記フィルタ係数から構成されるフィルタの対応する前記フィルタ係数をかけて量子化雑音スペクトルを整形するノイズシェイピングステップとを更にコンピュータに実行させる高能率符号化プログラムであり、前記フィルタ特性決定ステップは、前記処理フレームにおいてサンプルの値に変化がなくその値が続く場合、前記値が続くサンプルの数をカウントするDC値探索ステップと、カウントされた前記サンプルの数に基づいて、前記量子化雑音にかけるフィルタ係数を算出された前記フィルタ係数にするか、あらかじめ所定の記憶領域に格納された保存フィルタ係数にするかを選択する最終フィルタ選択ステップとを有する高能率符号化プログラムが提供される。この構成により、低サンプリング周波数を用いる符号化において、既存のフォーマットに何ら変更を加えることなく、周波数的に一様に拡がった量子化雑音のスペクトル包絡線をオーディオ信号のスペクトル包絡線に近づけることができ、オーディオ信号の高品質化を図ることができる。また、処理フレーム境界で発生する品質ギャップを防ぐことができる。   Further, according to the present invention, it is lower than the sampling frequency that can change the spectral shape so as to increase the quantization noise in the region that cannot be heard audibly based on the equal loudness characteristic and / or the masking characteristic. A difference calculating step of calculating a difference value between a current sample and a previous sample in an input audio signal sampled at a low sampling frequency, a compression step of performing quantization and encoding on the difference value, and the compression A decompression step that performs decoding and inverse quantization on the output obtained from the step, and a quantization width at the time of quantization of the difference value calculated next is determined based on the encoding result of the compression step A quantization width determination step, an output obtained from the expansion step, and a value of the previous sample when calculating the difference value A high-efficiency encoding program for causing a computer to execute a cumulative step of calculating a value of a previous sample when calculating a difference value in a next difference calculation step, wherein the input audio signal is A framing step for generating a processing frame separately for each predetermined number of samples, a spectrum envelope of a reverse characteristic of the spectral envelope with respect to the generated processing frame is obtained, and a characteristic of the obtained spectral envelope of the reverse characteristic is obtained. A coefficient indicating the characteristic of the spectral envelope that cancels the filter, a filter characteristic determination step using the calculated coefficient as a filter coefficient, an input value to the compression step, and an output value obtained from the expansion step Quantization noise is calculated based on the above, and the calculated quantization noise is calculated for each processing frame. And a noise shaping step of shaping a quantized noise spectrum by applying the corresponding filter coefficient of the filter composed of the filter coefficients, and causing the computer to execute the filter characteristic determining step. If the sample value does not change in the processing frame and the value continues, a DC value search step for counting the number of samples followed by the value, and the quantization noise based on the counted number of samples. There is provided a high-efficiency encoding program having a final filter selection step for selecting whether to apply the filter coefficient to be calculated to the calculated filter coefficient or to store the filter coefficient stored in a predetermined storage area in advance. With this configuration, in encoding using a low sampling frequency, the spectral envelope of quantization noise spread uniformly in frequency can be brought close to the spectral envelope of the audio signal without any change to the existing format. Therefore, the quality of the audio signal can be improved. In addition, it is possible to prevent a quality gap that occurs at the processing frame boundary.

また、本発明によれば、等ラウドネス特性及び/又はマスキング特性に基づいて、聴覚的に聞こえない領域の量子化雑音を増加させるようにスペクトル形状を変化させることが可能なサンプリング周波数に比べて低い低サンプリング周波数によりサンプリングされた入力オーディオ信号における現サンプルと1つ前のサンプルとの差分値を算出する差分算出ステップと、前記差分値に対して量子化及び符号化を行う圧縮ステップと、前記圧縮ステップから得られた出力に対して復号化及び逆量子化を行う伸長ステップと、前記圧縮ステップの符号化結果に基づいて、次に算出される差分値の量子化の際の量子化幅を決定する量子化幅決定ステップと、前記伸長ステップから得られた出力と前記差分値を算出する際の前記1つ前のサンプルの値とを加え、次の差分算出ステップにおいて差分値を算出する際の1つ前のサンプルの値を算出する累積ステップとをコンピュータに実行させるための高能率符号化プログラムであって、前記入力オーディオ信号を所定のサンプル数ごとに分けて処理フレームを生成するフレーム化ステップと、生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線を求め、求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数を算出し、算出された前記係数をフィルタ係数とするフィルタ特性決定ステップと、前記圧縮ステップへの入力の値と前記伸長ステップから得られた出力の値とに基づいて量子化雑音を算出し、算出された前記量子化雑音に対して、前記処理フレームごとに算出された前記フィルタ係数から構成されるフィルタの対応する前記フィルタ係数をかけて量子化雑音スペクトルを整形するノイズシェイピングステップとを更にコンピュータに実行させる高能率符号化プログラムであり、前記フィルタ特性決定ステップは、前記処理フレームの前記逆特性のスペクトル包絡線の最大レベルと最小レベルとの差により定まる振幅変動幅を所定の制限幅内に収めるよう処理を行うスペクトル包絡制限ステップと、前記処理フレームにおいてサンプルの値に変化がなくその値が続く場合、前記値が続くサンプルの数をカウントするDC値探索ステップと、カウントされた前記サンプルの数に基づいて、前記量子化雑音にかけるフィルタ係数を算出された前記フィルタ係数にするか、あらかじめ所定の記憶領域に格納された保存フィルタ係数にするかを選択する最終フィルタ選択ステップとを有する高能率符号化プログラムが提供される。この構成により、低サンプリング周波数を用いる符号化において、既存のフォーマットに何ら変更を加えることなく、周波数的に一様に拡がった量子化雑音のスペクトル包絡線をオーディオ信号のスペクトル包絡線に近づけることができ、オーディオ信号の高品質化を図ることができる。また、特定の周波数帯域だけ信号対量子化雑音比(SNR)が高いといった偏りを改善することができる。また、処理フレーム境界で発生する品質ギャップを防ぐことができる。   Further, according to the present invention, it is lower than the sampling frequency that can change the spectral shape so as to increase the quantization noise in the region that cannot be heard audibly based on the equal loudness characteristic and / or the masking characteristic. A difference calculating step of calculating a difference value between a current sample and a previous sample in an input audio signal sampled at a low sampling frequency, a compression step of performing quantization and encoding on the difference value, and the compression A decompression step that performs decoding and inverse quantization on the output obtained from the step, and a quantization width at the time of quantization of the difference value calculated next is determined based on the encoding result of the compression step A quantization width determination step, an output obtained from the expansion step, and a value of the previous sample when calculating the difference value A high-efficiency encoding program for causing a computer to execute a cumulative step of calculating a value of a previous sample when calculating a difference value in a next difference calculation step, wherein the input audio signal is A framing step for generating a processing frame separately for each predetermined number of samples, a spectrum envelope of a reverse characteristic of the spectral envelope with respect to the generated processing frame is obtained, and a characteristic of the obtained spectral envelope of the reverse characteristic is obtained. A coefficient indicating the characteristic of the spectral envelope that cancels the filter, a filter characteristic determination step using the calculated coefficient as a filter coefficient, an input value to the compression step, and an output value obtained from the expansion step Quantization noise is calculated based on the above, and the calculated quantization noise is calculated for each processing frame. And a noise shaping step of shaping a quantized noise spectrum by applying the corresponding filter coefficient of the filter composed of the filter coefficients, and causing the computer to execute the filter characteristic determining step. A spectrum envelope limiting step for performing processing so that an amplitude fluctuation range determined by a difference between a maximum level and a minimum level of the spectrum envelope of the inverse characteristic of the processing frame falls within a predetermined limit width; and a sample of the sample in the processing frame When there is no change in the value and the value continues, a DC value search step for counting the number of samples followed by the value, and a filter coefficient to be applied to the quantization noise is calculated based on the counted number of samples. The filter coefficient is set or stored in a predetermined storage area in advance. And a final filter selection step for selecting whether to use the stored filter coefficient. With this configuration, in encoding using a low sampling frequency, the spectral envelope of quantization noise spread uniformly in frequency can be brought close to the spectral envelope of the audio signal without any change to the existing format. Therefore, the quality of the audio signal can be improved. In addition, it is possible to improve the bias that the signal-to-quantization noise ratio (SNR) is high only in a specific frequency band. In addition, it is possible to prevent a quality gap that occurs at the processing frame boundary.

また、本発明の高能率符号化プログラムにおいて、前記フィルタ特性決定ステップにおける生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線の算出ステップが、線形予測分析により線形予測係数を求める第1の線形予測分析ステップと、前記線形予測係数に対してフーリエ変換によりスペクトル包絡線を求めるスペクトル包絡算出ステップとからなり、求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数の算出ステップが、前記フーリエ変換により求められたスペクトル包絡線に対して、逆フーリエ変換をして得られた係数を用いて線形予測分析を行い線形予測係数を求める第2の線形予測分析ステップからなることは、本発明の好ましい態様である。この構成により、周波数的に一様に拡がった量子化雑音のスペクトル包絡線をオーディオ信号のスペクトル包絡線に近づけることができる。   In the high-efficiency encoding program according to the present invention, the step of calculating a spectral envelope of the inverse characteristic of the spectral envelope with respect to the generated processing frame in the filter characteristic determining step obtains a linear prediction coefficient by linear prediction analysis. A characteristic of spectral envelope that cancels the characteristic of the obtained spectral envelope of the inverse characteristic, and comprises a spectral envelope calculating step of obtaining a spectral envelope by Fourier transform with respect to the linear prediction coefficient. A second linear prediction for calculating a linear prediction coefficient by performing a linear prediction analysis using a coefficient obtained by performing an inverse Fourier transform on the spectrum envelope obtained by the Fourier transform. Comprising the analysis step is a preferred embodiment of the present invention. With this configuration, the spectral envelope of quantization noise spread uniformly in frequency can be brought close to the spectral envelope of the audio signal.

また、本発明の高能率符号化プログラムにおいて、前記フレーム化ステップにおいて構成される前記処理フレームが直前の処理フレームを結合させた処理フレームであることは、本発明の好ましい態様である。この構成により、処理フレーム境界で発生する品質ギャップを防ぐことができる。   In the high-efficiency encoding program of the present invention, it is a preferable aspect of the present invention that the processing frame configured in the framing step is a processing frame obtained by combining the immediately preceding processing frame. With this configuration, it is possible to prevent a quality gap that occurs at the processing frame boundary.

また、本発明によれば、等ラウドネス特性及び/又はマスキング特性に基づいて、聴覚的に聞こえない領域の量子化雑音を増加させるようにスペクトル形状を変化させることが可能なサンプリング周波数に比べて低い低サンプリング周波数によりサンプリングされた入力オーディオ信号における現サンプルと1つ前のサンプルとの差分値を算出する差分算出手段と、前記差分値に対して量子化及び符号化を行う圧縮手段と、前記圧縮手段からの出力に対して復号化及び逆量子化を行う伸長手段と、前記圧縮手段の符号化結果に基づいて、次に算出される差分値の量子化の際の量子化幅を決定する量子化幅決定手段と、前記伸長手段からの出力と前記差分値を算出する際の前記1つ前のサンプルの値とを加え、次に差分算出手段において差分値を算出する際の1つ前のサンプルの値を算出する累積手段とから構成される高能率符号化装置であって、前記入力オーディオ信号を所定のサンプル数ごとに分けて処理フレームを生成するフレーム化手段と、生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線を求め、求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数を算出し、算出された前記係数をフィルタ係数とするフィルタ特性決定手段と、前記圧縮手段への入力の値と前記伸長手段からの出力の値とに基づいて量子化雑音を算出し、算出された前記量子化雑音に対して、前記処理フレームごとに算出された前記フィルタ係数から構成されるフィルタの対応する前記フィルタ係数をかけて量子化雑音スペクトルを整形するノイズシェイピング手段とを更に有し、前記フィルタ特性決定手段は、前記処理フレームの前記逆特性のスペクトル包絡線の最大レベルと最小レベルとの差により定まる振幅変動幅を所定の制限幅内に収めるよう処理を行うスペクトル包絡制限手段を有する高能率符号化装置が提供される。この構成により、低サンプリング周波数を用いる符号化において、既存のフォーマットに何ら変更を加えることなく、周波数的に一様に拡がった量子化雑音のスペクトル包絡線をオーディオ信号のスペクトル包絡線に近づけることができ、オーディオ信号の高品質化を図ることができる。また、特定の周波数帯域だけ信号対量子化雑音比(SNR)が高いといった偏りを改善することができる。   Further, according to the present invention, it is lower than the sampling frequency that can change the spectral shape so as to increase the quantization noise in the region that cannot be heard audibly based on the equal loudness characteristic and / or the masking characteristic. Difference calculating means for calculating a difference value between the current sample and the previous sample in the input audio signal sampled at a low sampling frequency, compression means for performing quantization and encoding on the difference value, and the compression A decompression unit that performs decoding and inverse quantization on the output from the unit, and a quantum that determines a quantization width in the quantization of the difference value calculated next based on the encoding result of the compression unit And adding the output from the decompression means and the value of the previous sample when calculating the difference value, and then the difference calculation means A high-efficiency encoding device comprising accumulation means for calculating a value of a previous sample at the time of calculation, wherein the input audio signal is divided into predetermined samples to generate a processing frame And calculating a coefficient indicating the characteristic of the spectrum envelope for canceling the characteristic of the spectrum envelope of the reverse characteristic obtained, and calculating a spectrum envelope of the reverse characteristic of the spectrum envelope for the generated processing frame A quantization characteristic is calculated on the basis of a filter characteristic determination unit using the calculated coefficient as a filter coefficient, a value input to the compression unit, and a value output from the decompression unit, and the calculated quantization noise The quantization noise spectrum is multiplied by the filter coefficient corresponding to the filter composed of the filter coefficients calculated for each processing frame. Noise shaping means for shaping the noise, and the filter characteristic determination means has a predetermined limit width for an amplitude fluctuation range determined by a difference between a maximum level and a minimum level of the spectrum envelope of the inverse characteristic of the processing frame. There is provided a high-efficiency encoding device having spectrum envelope limiting means for performing processing so as to be contained within. With this configuration, in encoding using a low sampling frequency, the spectral envelope of quantization noise spread uniformly in frequency can be brought close to the spectral envelope of the audio signal without any change to the existing format. Therefore, the quality of the audio signal can be improved. In addition, it is possible to improve the bias that the signal-to-quantization noise ratio (SNR) is high only in a specific frequency band.

また、本発明によれば、等ラウドネス特性及び/又はマスキング特性に基づいて、聴覚的に聞こえない領域の量子化雑音を増加させるようにスペクトル形状を変化させることが可能なサンプリング周波数に比べて低い低サンプリング周波数によりサンプリングされた入力オーディオ信号における現サンプルと1つ前のサンプルとの差分値を算出する差分算出手段と、前記差分値に対して量子化及び符号化を行う圧縮手段と、前記圧縮手段からの出力に対して復号化及び逆量子化を行う伸長手段と、前記圧縮手段の符号化結果に基づいて、次に算出される差分値の量子化の際の量子化幅を決定する量子化幅決定手段と、前記伸長手段からの出力と前記差分値を算出する際の前記1つ前のサンプルの値とを加え、次に差分算出手段において差分値を算出する際の1つ前のサンプルの値を算出する累積手段とから構成される高能率符号化装置であって、前記入力オーディオ信号を所定のサンプル数ごとに分けて処理フレームを生成するフレーム化手段と、生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線を求め、求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数を算出し、算出された前記係数をフィルタ係数とするフィルタ特性決定手段と、前記圧縮手段への入力の値と前記伸長手段からの出力の値とに基づいて量子化雑音を算出し、算出された前記量子化雑音に対して、前記処理フレームごとに算出された前記フィルタ係数から構成されるフィルタの対応する前記フィルタ係数をかけて量子化雑音スペクトルを整形するノイズシェイピング手段とを更に有し、前記フィルタ特性決定手段は、前記処理フレームにおいてサンプルの値に変化がなくその値が続く場合、前記値が続くサンプルの数をカウントするDC値探索手段と、カウントされた前記サンプルの数に基づいて、前記量子化雑音にかけるフィルタ係数を算出された前記フィルタ係数にするか、あらかじめ所定の記憶領域に格納された保存フィルタ係数にするかを選択する最終フィルタ選択手段とを有する高能率符号化装置が提供される。この構成により、低サンプリング周波数を用いる符号化において、既存のフォーマットに何ら変更を加えることなく、周波数的に一様に拡がった量子化雑音のスペクトル包絡線をオーディオ信号のスペクトル包絡線に近づけることができ、オーディオ信号の高品質化を図ることができる。また、処理フレーム境界で発生する品質ギャップを防ぐことができる。   Further, according to the present invention, it is lower than the sampling frequency that can change the spectral shape so as to increase the quantization noise in the region that cannot be heard audibly based on the equal loudness characteristic and / or the masking characteristic. Difference calculating means for calculating a difference value between the current sample and the previous sample in the input audio signal sampled at a low sampling frequency, compression means for performing quantization and encoding on the difference value, and the compression A decompression unit that performs decoding and inverse quantization on the output from the unit, and a quantum that determines a quantization width in the quantization of the difference value calculated next based on the encoding result of the compression unit And adding the output from the decompression means and the value of the previous sample when calculating the difference value, and then the difference calculation means A high-efficiency encoding device comprising accumulation means for calculating a value of a previous sample at the time of calculation, wherein the input audio signal is divided into predetermined samples to generate a processing frame And calculating a coefficient indicating the characteristic of the spectrum envelope for canceling the characteristic of the spectrum envelope of the reverse characteristic obtained, and calculating a spectrum envelope of the reverse characteristic of the spectrum envelope for the generated processing frame A quantization characteristic is calculated on the basis of a filter characteristic determination unit using the calculated coefficient as a filter coefficient, a value input to the compression unit, and a value output from the decompression unit, and the calculated quantization noise The quantization noise spectrum is multiplied by the filter coefficient corresponding to the filter composed of the filter coefficients calculated for each processing frame. A noise shaping means for shaping a filter, wherein the filter characteristic determination means counts the number of samples followed by the value when the sample value remains unchanged in the processing frame. And a filter coefficient to be applied to the quantization noise is selected as the calculated filter coefficient or a stored filter coefficient stored in a predetermined storage area based on the number of samples counted. There is provided a high-efficiency encoding device having final filter selection means. With this configuration, in encoding using a low sampling frequency, the spectral envelope of quantization noise spread uniformly in frequency can be brought close to the spectral envelope of the audio signal without any change to the existing format. Therefore, the quality of the audio signal can be improved. In addition, it is possible to prevent a quality gap that occurs at the processing frame boundary.

また、本発明によれば、等ラウドネス特性及び/又はマスキング特性に基づいて、聴覚的に聞こえない領域の量子化雑音を増加させるようにスペクトル形状を変化させることが可能なサンプリング周波数に比べて低い低サンプリング周波数によりサンプリングされた入力オーディオ信号における現サンプルと1つ前のサンプルとの差分値を算出する差分算出手段と、前記差分値に対して量子化及び符号化を行う圧縮手段と、前記圧縮手段からの出力に対して復号化及び逆量子化を行う伸長手段と、前記圧縮手段の符号化結果に基づいて、次に算出される差分値の量子化の際の量子化幅を決定する量子化幅決定手段と、前記伸長手段からの出力と前記差分値を算出する際の前記1つ前のサンプルの値とを加え、次に差分算出手段において差分値を算出する際の1つ前のサンプルの値を算出する累積手段とから構成される高能率符号化装置であって、前記入力オーディオ信号を所定のサンプル数ごとに分けて処理フレームを生成するフレーム化手段と、生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線を求め、求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数を算出し、算出された前記係数をフィルタ係数とするフィルタ特性決定手段と、前記圧縮手段への入力の値と前記伸長手段からの出力の値とに基づいて量子化雑音を算出し、算出された前記量子化雑音に対して、前記処理フレームごとに算出された前記フィルタ係数から構成されるフィルタの対応する前記フィルタ係数をかけて量子化雑音スペクトルを整形するノイズシェイピング手段とを更に有し、前記フィルタ特性決定手段は、前記処理フレームの前記逆特性のスペクトル包絡線の最大レベルと最小レベルとの差により定まる振幅変動幅を所定の制限幅内に収めるよう処理を行うスペクトル包絡制限手段と、前記処理フレームにおいてサンプルの値に変化がなくその値が続く場合、前記値が続くサンプルの数をカウントするDC値探索手段と、カウントされた前記サンプルの数に基づいて、前記量子化雑音にかけるフィルタ係数を算出された前記フィルタ係数にするか、あらかじめ所定の記憶領域に格納された保存フィルタ係数にするかを選択する最終フィルタ選択手段とを有する高能率符号化装置が提供される。この構成により、低サンプリング周波数を用いる符号化において、既存のフォーマットに何ら変更を加えることなく、周波数的に一様に拡がった量子化雑音のスペクトル包絡線をオーディオ信号のスペクトル包絡線に近づけることができ、オーディオ信号の高品質化を図ることができる。また、特定の周波数帯域だけ信号対量子化雑音比(SNR)が高いといった偏りを改善することができる。また、処理フレーム境界で発生する品質ギャップを防ぐことができる。   Further, according to the present invention, it is lower than the sampling frequency that can change the spectral shape so as to increase the quantization noise in the region that cannot be heard audibly based on the equal loudness characteristic and / or the masking characteristic. Difference calculating means for calculating a difference value between the current sample and the previous sample in the input audio signal sampled at a low sampling frequency, compression means for performing quantization and encoding on the difference value, and the compression A decompression unit that performs decoding and inverse quantization on the output from the unit, and a quantum that determines a quantization width in the quantization of the difference value calculated next based on the encoding result of the compression unit And adding the output from the decompression means and the value of the previous sample when calculating the difference value, and then the difference calculation means A high-efficiency encoding device comprising accumulation means for calculating a value of a previous sample at the time of calculation, wherein the input audio signal is divided into predetermined samples to generate a processing frame And calculating a coefficient indicating the characteristic of the spectrum envelope for canceling the characteristic of the spectrum envelope of the reverse characteristic obtained, and calculating a spectrum envelope of the reverse characteristic of the spectrum envelope for the generated processing frame A quantization characteristic is calculated on the basis of a filter characteristic determination unit using the calculated coefficient as a filter coefficient, a value input to the compression unit, and a value output from the decompression unit, and the calculated quantization noise The quantization noise spectrum is multiplied by the filter coefficient corresponding to the filter composed of the filter coefficients calculated for each processing frame. Noise shaping means for shaping the noise, and the filter characteristic determination means has a predetermined limit width for an amplitude fluctuation range determined by a difference between a maximum level and a minimum level of the spectrum envelope of the inverse characteristic of the processing frame. Spectrum envelope limiting means for performing processing so as to fall within, DC value search means for counting the number of samples followed by the value when there is no change in the value of the sample in the processing frame, and the counted Final filter selection means for selecting whether the filter coefficient to be applied to the quantization noise is the calculated filter coefficient or the stored filter coefficient stored in a predetermined storage area based on the number of samples. A high-efficiency encoding device is provided. With this configuration, in encoding using a low sampling frequency, the spectral envelope of quantization noise spread uniformly in frequency can be brought close to the spectral envelope of the audio signal without any change to the existing format. Therefore, the quality of the audio signal can be improved. In addition, it is possible to improve the bias that the signal-to-quantization noise ratio (SNR) is high only in a specific frequency band. In addition, it is possible to prevent a quality gap that occurs at the processing frame boundary.

本発明の高能率符号化プログラム及び高能率符号化装置は、上記構成を有し、低サンプリング周波数を用いる符号化において、既存のフォーマットに何ら変更を加えることなく、周波数的に一様に拡がった量子化雑音のスペクトル包絡線をオーディオ信号のスペクトル包絡線に近づけることができ、オーディオ信号の高品質化を図ることができる。また、特定の周波数帯域だけ信号対量子化雑音比(SNR)が高いといった偏りを改善することができる。また、処理フレーム境界で発生する品質ギャップを防ぐことができる。   The high-efficiency encoding program and the high-efficiency encoding apparatus of the present invention have the above-described configuration, and in encoding using a low sampling frequency, the frequency is uniformly spread without changing any existing format. The spectrum envelope of the quantization noise can be brought close to the spectrum envelope of the audio signal, and the quality of the audio signal can be improved. In addition, it is possible to improve the bias that the signal-to-quantization noise ratio (SNR) is high only in a specific frequency band. In addition, it is possible to prevent a quality gap that occurs at the processing frame boundary.

以下、本発明の実施の形態に係る高能率符号化装置及び高能率符号化プログラムについて図1から図11を用いて説明する。図1は本発明の実施の形態に係る高能率符号化装置の構成を示す構成図である。図2は本発明の実施の形態に係る高能率符号化装置におけるフレーム化ステップ部の処理の一例を説明するための図である。図3は本発明の実施の形態に係る高能率符号化装置におけるフィルタ特性決定ステップ部の処理の一例を説明するためのフローチャートである。図4は本発明の実施の形態に係る高能率符号化装置における処理フレームのデータの逆特性を持つスペクトル包絡線(以下、単にスペクトル包絡とも言う)を示す図である。図5は本発明の実施の形態に係る高能率符号化装置におけるスペクトル包絡制限ステップ部の処理の一例について説明するための図である。   Hereinafter, a high-efficiency encoding apparatus and a high-efficiency encoding program according to embodiments of the present invention will be described with reference to FIGS. FIG. 1 is a configuration diagram showing a configuration of a high-efficiency encoding apparatus according to an embodiment of the present invention. FIG. 2 is a diagram for explaining an example of processing of the framing step unit in the high efficiency coding apparatus according to the embodiment of the present invention. FIG. 3 is a flowchart for explaining an example of processing of the filter characteristic determination step unit in the high-efficiency encoding device according to the embodiment of the present invention. FIG. 4 is a diagram showing a spectrum envelope (hereinafter also simply referred to as a spectrum envelope) having the inverse characteristics of the data of the processing frame in the high efficiency coding apparatus according to the embodiment of the present invention. FIG. 5 is a diagram for explaining an example of processing of the spectrum envelope limiting step unit in the high-efficiency encoding device according to the embodiment of the present invention.

図6は本発明の実施の形態に係る高能率符号化装置における開始フレームにおいてDCデータが存在することによる問題点を説明するための図である。図7は本発明の実施の形態に係る高能率符号化装置における終了フレームにおいてDCデータが存在することによる問題点を説明するための図である。図8は本発明の実施の形態に係る高能率符号化装置におけるDC値探索ステップ部の処理の一例を示すフローチャートである。図9は本発明の実施の形態に係る高能率符号化装置におけるDC値探索ステップ部の処理の一例の一部(開始フレーム探索ステップ)の処理を示すフローチャートである。図10は本発明の実施の形態に係る高能率符号化装置におけるDC値探索ステップ部の処理の一例の一部(終了フレーム探索ステップ)の処理を示すフローチャートである。図11は本発明の実施の形態に係る高能率符号化装置におけるノイズシェイピングステップ部による作用を示した概念図である。   FIG. 6 is a diagram for explaining a problem caused by the presence of DC data in the start frame in the high efficiency coding apparatus according to the embodiment of the present invention. FIG. 7 is a diagram for explaining a problem caused by the presence of DC data in the end frame in the high efficiency coding apparatus according to the embodiment of the present invention. FIG. 8 is a flowchart showing an example of processing of the DC value search step unit in the high efficiency encoding device according to the embodiment of the present invention. FIG. 9 is a flowchart showing a part of processing (start frame searching step) as an example of processing of the DC value searching step unit in the high-efficiency encoding device according to the embodiment of the present invention. FIG. 10 is a flowchart showing a part of processing (end frame searching step) as an example of processing of the DC value searching step unit in the high efficiency encoding device according to the embodiment of the present invention. FIG. 11 is a conceptual diagram showing the operation of the noise shaping step unit in the high efficiency coding apparatus according to the embodiment of the present invention.

まず、本発明の実施の形態に係る高能率符号化装置について説明する。図1に示すように、本発明の実施の形態に係る高能率符号化装置は、従来の高能率符号化装置に対して、フレーム化ステップ部16、フィルタ特性決定ステップ部17、ノイズシェイピングステップ部18が追加された形になっている。入力されるオーディオ信号X(n)はサンプリング周波数8kHz、12bit精度のリニアPCMである。差分算出ステップ部11では、現サンプルであるX(n)と圧縮伸長された1つ前のサンプルX´(n−1)との差分が取られて差分値d(n)が生成される。そして、ステップサイズ(量子化幅)決定ステップ部13では、1つ前の差分値の符号化結果に基づきステップサイズss(n)が決定され、決定されたステップサイズss(n)が圧縮ステップ部12に供給され、圧縮ステップ部12では差分値d(n)が4ビットのADPCMコードL(n)に変換される。伸長ステップ部14では、圧縮ステップ部12で変換されたADPCMコードL(n)が逆変換されて量子化雑音を含んだ差分値d´(n)が得られる。そして、累積ステップ部15において差分算出ステップ部11の逆処理が行われて1つ前のサンプルX´(n−1)が再構築される。   First, a high-efficiency encoding device according to an embodiment of the present invention will be described. As shown in FIG. 1, the high-efficiency encoding apparatus according to the embodiment of the present invention is different from the conventional high-efficiency encoding apparatus in that a framing step unit 16, a filter characteristic determination step unit 17, and a noise shaping step unit. 18 is added. The input audio signal X (n) is a linear PCM with a sampling frequency of 8 kHz and 12-bit accuracy. In the difference calculation step unit 11, the difference between the current sample X (n) and the previous sample X ′ (n−1) that has been compressed and expanded is taken to generate a difference value d (n). The step size (quantization width) determination step unit 13 determines the step size ss (n) based on the encoding result of the previous difference value, and the determined step size ss (n) is the compression step unit. 12 and the compression step unit 12 converts the difference value d (n) into a 4-bit ADPCM code L (n). In the decompression step unit 14, the ADPCM code L (n) transformed by the compression step unit 12 is inversely transformed to obtain a difference value d ′ (n) including quantization noise. Then, the accumulation step unit 15 performs the reverse process of the difference calculation step unit 11 to reconstruct the previous sample X ′ (n−1).

入力されるオーディオ信号X(n)は、フレーム化ステップ部16において1024のサンプル単位でフレーム化が行われる。そして、蓄積されている前フレームの1024サンプルと現フレームの1024サンプルを時系列的に結合して2048サンプルの処理フレームを構成する(オーバーラッピング処理とも言う)。   The input audio signal X (n) is framed in units of 1024 samples in the framing step unit 16. Then, the accumulated 1024 samples of the previous frame and the 1024 samples of the current frame are combined in time series to form a processing frame of 2048 samples (also referred to as overlapping processing).

フィルタ特性決定ステップ部17では、上述したようにオーバーラッピング処理された処理フレームに対して線形予測(LPC(Linear Predictive Coding))分析を用いてスペクトル包絡の特性を持った線形予測係数と次数の算出を行う。ノイズシェイピングステップ部18では、圧縮ステップ部12に入力される直前の差分値d(n)と伸長ステップ部14の後の差分値d´(n)から得られた量子化誤差e(n)(e(n)=d(n)−d´(n))に対して、線形予測係数を用いて構成したFIR(Finite Impulse Response)フィルタを適用する。フィルタ処理を受けた量子化誤差ns(n−1)は、差分算出ステップ部11にフィードバックされることにより量子化誤差スペクトルの概形がフィルタ特性に合わせて整形される。   The filter characteristic determination step unit 17 calculates linear prediction coefficients and orders having spectral envelope characteristics using linear prediction (LPC (Linear Predictive Coding)) analysis on the processing frames that have been subjected to the overlapping process as described above. I do. In the noise shaping step unit 18, the quantization error e (n) (obtained from the difference value d (n) immediately before being input to the compression step unit 12 and the difference value d ′ (n) after the expansion step unit 14. For e (n) = d (n) −d ′ (n)), a FIR (Finite Impulse Response) filter configured using linear prediction coefficients is applied. The quantization error ns (n−1) that has been subjected to the filter processing is fed back to the difference calculation step unit 11 so that the approximate shape of the quantization error spectrum is shaped according to the filter characteristics.

次に、上述したフレーム化ステップ部16の処理の一例を図2を用いて説明する。入力されるオーディオ信号X(n)は、1024サンプル単位(フレームとも言う)で切り分けられる。処理フレームは不図示の記憶領域に保存してある過去のフレームデータと時系列的に結合され構成される。先頭の処理フレーム0は、通常ゼロデータの1024サンプルを過去のフレームデータとして用いて構成されるが、オーディオ信号X(n)の先頭サンプルがゼロデータでない場合には先頭サンプルと同じ値で過去のフレームデータを埋めてもよい。   Next, an example of the process of the framing step unit 16 described above will be described with reference to FIG. The input audio signal X (n) is divided in units of 1024 samples (also referred to as frames). The processing frame is configured in a time series manner with past frame data stored in a storage area (not shown). The first processing frame 0 is normally configured using 1024 samples of zero data as past frame data. However, if the first sample of the audio signal X (n) is not zero data, the past processing frame 0 has the same value as that of the first sample. Frame data may be embedded.

そして、フィルタ特性決定ステップ部17はこの処理フレームを用いて線形予測係数を算出する。このようにオーバーラップさせたデータを用いる理由は、線形予測係数を滑らかに変化させてフレームのつなぎ目においてフィルタ処理によるデータギャップが起こらないようにするためである。処理フレーム0で求めたフィルタ係数はフレーム0の量子化誤差データの1024サンプルに対して適用される。同様に、処理フレーム1で求めたフィルタ係数はフレーム1の量子化誤差データの1024サンプルに対して適用される。そのため、フレーム0とフレーム1のつなぎ目が滑らかにつながる必要がある。また、ここではフレーム構造を採っているが、差分算出ステップ部11への入力は1サンプルごとであるため、フレームの先頭から1サンプル単位で差分算出ステップ部11に入力される。   Then, the filter characteristic determination step unit 17 calculates a linear prediction coefficient using this processing frame. The reason for using such overlapped data is to smoothly change the linear prediction coefficient so that a data gap due to filtering does not occur at the joint of frames. The filter coefficient obtained in the processing frame 0 is applied to 1024 samples of the quantization error data in the frame 0. Similarly, the filter coefficient obtained in the processing frame 1 is applied to 1024 samples of the quantization error data in the frame 1. Therefore, it is necessary to smoothly connect the joints of frame 0 and frame 1. Although the frame structure is adopted here, since the input to the difference calculation step unit 11 is every sample, it is input to the difference calculation step unit 11 in units of one sample from the head of the frame.

次に、上述したフィルタ特性決定ステップ部17の処理の一例について図3を用いて説明する。図3に示すように、第1の線形予測分析ステップ部における処理ステップS31では、入力された処理フレームのデータに対して線形予測を行い線形予測係数を得る。スペクトル包絡算出ステップ部における処理ステップS32では、得られた線形予測係数に対して順方向のFFT(Fast Fourier Transform)を掛けてパワースペクトルを計算し、デシベル表示することにより図4に示すような処理フレームのデータの逆特性を持つスペクトル包絡が得られる。スペクトル包絡制限ステップ部における処理ステップS33では、スペクトル包絡特性の振幅変動幅を所定の制限幅内に収めるために振幅変動幅に対する制限幅の比率を算出し、パワースペクトルに乗ずる処理を行う。   Next, an example of the processing of the filter characteristic determination step unit 17 described above will be described with reference to FIG. As shown in FIG. 3, in the processing step S31 in the first linear prediction analysis step unit, linear prediction is performed on the data of the input processing frame to obtain a linear prediction coefficient. In the processing step S32 in the spectrum envelope calculation step unit, a power spectrum is calculated by multiplying the obtained linear prediction coefficient by a forward FFT (Fast Fourier Transform), and the process shown in FIG. A spectral envelope with the inverse characteristics of the frame data is obtained. In processing step S33 in the spectrum envelope limiting step unit, a ratio of the limiting width to the amplitude fluctuation width is calculated in order to keep the amplitude fluctuation width of the spectrum envelope characteristic within a predetermined limiting width, and processing for multiplying the power spectrum is performed.

ノイズシェイピングという手法は、量子化誤差量を減らすことではなく、量子化誤差スペクトルの形状を変形させるための作用であるから、極端に偏ったスペクトル包絡では一部が良くなっても他の部分がかなり悪くなることになる。しかし、スペクトル包絡制限ステップS33でスペクトル包絡を修正することで一様の品質に収めることができる。このようにして得られた修正パワースペクトルに対して、第2の線形予測分析ステップ部における処理ステップS34では、逆方向のFFTにより算出した自己相関関数を用いて線形予測を行うことにより順特性のスペクトル包絡を持つ線形予測係数が算出される。   The noise shaping technique is not to reduce the amount of quantization error, but to modify the shape of the quantization error spectrum. It will be quite bad. However, uniform quality can be achieved by correcting the spectral envelope in the spectral envelope limiting step S33. In the processing step S34 in the second linear prediction analysis step unit for the corrected power spectrum obtained in this way, the linear prediction is performed by using the autocorrelation function calculated by the reverse FFT, so that the forward characteristic is obtained. A linear prediction coefficient having a spectral envelope is calculated.

DC(Direct Current)探索ステップ部における処理ステップS35では、入力された処理フレームのデータと第2の線形予測分析ステップ部における処理ステップS34で算出された線形予測係数(現フィルタ係数)を用いて、処理フレームのデータ中に、ある変化が無く一定値(ゼロ又はノンゼロ値)が続くサンプルの数をカウントする。そして、現フィルタ係数を用いるか、不図示の記憶領域に保存してあるフィルタ係数を用いるかを判断し、その結果を現フィルタ使用フラグとして出力する。最終フィルタ選択ステップ部における処理ステップS36では、現フィルタ使用フラグに応じて現フィルタ係数と保存してあるフィルタ係数との切り替えを行い、最終フィルタ係数が決定される。保存してあるフィルタ係数としては、あらかじめ用意した固定フィルタ係数や、過去のフレームで算出された現フィルタ係数などである。   In processing step S35 in the DC (Direct Current) search step unit, using the input processing frame data and the linear prediction coefficient (current filter coefficient) calculated in processing step S34 in the second linear prediction analysis step unit, The number of samples in which the data of the processing frame continues with a certain value (zero or non-zero value) without any change is counted. Then, it is determined whether the current filter coefficient is used or the filter coefficient stored in a storage area (not shown) is used, and the result is output as a current filter use flag. In processing step S36 in the final filter selection step unit, the current filter coefficient and the saved filter coefficient are switched according to the current filter use flag, and the final filter coefficient is determined. The stored filter coefficients include fixed filter coefficients prepared in advance, current filter coefficients calculated in past frames, and the like.

ここで、上述したスペクトル包絡制限ステップ部における処理ステップS33の詳細について図4及び図5を用いて説明する。第1の線形予測分析ステップ部における処理ステップS31により、原音のスペクトル包絡の概形を平均レベルを中心として打ち消すような線形予測係数が算出される。その概形が図4中に示した点線のスペクトル包絡である。そして、第2の線形予測分析ステップ部における処理ステップS34において、得られたスペクトル包絡の特性を再度打ち消すような線形予測係数を求めるため、最終的に得られるスペクトル包絡の特性は図4中に実線で示す原音のスペクトル包絡に一致する。例えば、第1の線形予測分析ステップ部における処理ステップS31の結果として得られたスペクトル包絡が図5中に示す制限前のスペクトル包絡である場合、低域における特性がかなり極端に落ち込んでいることから、このまま第2の線形予測分析ステップ部における処理ステップS34を適用してしまうと、低域の量子化誤差をかなり増加させる線形予測係数が算出されてしまう。   Here, the details of the processing step S33 in the above-described spectrum envelope limiting step unit will be described with reference to FIGS. By the processing step S31 in the first linear prediction analysis step unit, a linear prediction coefficient that cancels the outline of the spectrum envelope of the original sound around the average level is calculated. The outline is the dotted-line spectral envelope shown in FIG. Then, in the processing step S34 in the second linear prediction analysis step unit, a linear prediction coefficient that cancels the obtained spectral envelope characteristic again is obtained. Therefore, the finally obtained spectral envelope characteristic is shown by a solid line in FIG. This corresponds to the spectrum envelope of the original sound indicated by. For example, when the spectrum envelope obtained as a result of the processing step S31 in the first linear prediction analysis step unit is the spectrum envelope before the restriction shown in FIG. 5, the characteristics in the low band are considerably reduced. If the processing step S34 in the second linear prediction analysis step unit is applied as it is, a linear prediction coefficient that considerably increases the low-range quantization error is calculated.

それを防ぐために、スペクトル包絡制限ステップ部における処理ステップS33において、スペクトル包絡の振幅変動幅を所定の制限幅に収める処理を行う。例えば、平均レベルが0dBである場合には、振幅変動幅(diff_max)は下記の式(1)のように、スペクトル包絡の最小レベル(min_val)と最大レベル(max_val)の絶対距離で求められる。そして、所定の制限幅(diff)と比較して下記の式(2)及び(3)から比率(ratio)を算出する。さらに、パワースペクトルに適用させるために下記の式(4)のようにデシベルからパワーに変換する。   In order to prevent this, in the processing step S33 in the spectrum envelope restriction step unit, a process for keeping the amplitude fluctuation width of the spectrum envelope within a predetermined restriction width is performed. For example, when the average level is 0 dB, the amplitude fluctuation range (diff_max) is obtained by the absolute distance between the minimum level (min_val) and the maximum level (max_val) of the spectrum envelope as in the following equation (1). Then, the ratio is calculated from the following formulas (2) and (3) in comparison with a predetermined limit width (diff). Furthermore, in order to apply it to the power spectrum, it is converted from decibel to power as shown in the following equation (4).

Figure 0004556866
Figure 0004556866

Figure 0004556866
Figure 0004556866

Figure 0004556866
Figure 0004556866

Figure 0004556866
Figure 0004556866

次に、処理フレームを処理する際に生じる問題点について図6及び図7を用いて説明する。図6は開始フレームにおいてDCデータが存在することによる問題点を表した例であり、DCデータはゼロデータとしている。従来例では、ゼロデータを入力した場合でも一定の量子化誤差が発生することから圧縮伸長された1つ前のサンプルX´(n−1)との差分値も一定の増減を繰り返すことになり、図6に示すような一定波形の繰り返しが起こる(規格上発生する量子化誤差レベル)。処理フレーム0はすべてゼロであるデータに対するフィルタ係数の値(フィルタ係数0)であるが、処理フレーム1ではゼロ以外のデータを含んだフィルタに対するフィルタ係数の値(フィルタ係数1)が計算される。その結果、一定の量子化誤差に対して異なったフィルタ係数が適用されることになるため、クリック音が発生する原因となる。図7は終了フレームにおいても同様のクリック音が発生することを示した図である。この図7では、ゼロデータ部分に対応する一定の量子化誤差にかかるフィルタ係数(フィルタ係数0、1、2)が3種類とも異なることから2箇所のクリック音が発生することを示している。   Next, problems that occur when processing a processing frame will be described with reference to FIGS. FIG. 6 shows an example of a problem due to the presence of DC data in the start frame. The DC data is zero data. In the conventional example, even when zero data is input, a constant quantization error occurs. Therefore, the difference value from the previous sample X ′ (n−1) that has been compressed and expanded also repeats constant increase and decrease. 6 repeats a constant waveform as shown in FIG. 6 (quantization error level generated according to the standard). The processing frame 0 is the value of the filter coefficient (filter coefficient 0) for data that is all zero, but the processing frame 1 calculates the value of the filter coefficient (filter coefficient 1) for a filter that contains data other than zero. As a result, different filter coefficients are applied to a certain quantization error, which causes a click sound. FIG. 7 is a diagram showing that a similar click sound is generated in the end frame. FIG. 7 shows that two click sounds are generated because the filter coefficients (filter coefficients 0, 1 and 2) relating to a fixed quantization error corresponding to the zero data portion are different from each other.

このような問題を解消するために以下の図8から図10に示す処理が行われる。図8はDC値探索ステップ部における図3中の処理ステップS35のフローチャートを詳しく示す図である。まず、オーディオ信号の最初のフレームであるかを判断し(ステップS81)、最初のフレームであれば最初のサンプル値をDC値として不図示の記憶領域に保存する(ステップS82)。そして、開始フレーム探索が完了したか(開始フレーム探索完了フラグ)をチェックし(ステップS83)、開始フレーム探索が完了しているならば図10で後述する終了フレーム探索ステップを行う(ステップS85)。開始フレーム探索が完了していない場合には図9で後述する開始フレーム探索ステップを行う(ステップS84)。また、ステップS81において、最初のフレームでない場合はステップS83に進む。   In order to solve such a problem, the following processes shown in FIGS. 8 to 10 are performed. FIG. 8 is a diagram showing in detail the flowchart of the processing step S35 in FIG. 3 in the DC value search step unit. First, it is determined whether it is the first frame of the audio signal (step S81). If it is the first frame, the first sample value is stored as a DC value in a storage area (not shown) (step S82). Then, it is checked whether the start frame search has been completed (start frame search completion flag) (step S83). If the start frame search has been completed, an end frame search step, which will be described later with reference to FIG. 10, is performed (step S85). If the start frame search is not completed, a start frame search step described later with reference to FIG. 9 is performed (step S84). If it is not the first frame in step S81, the process proceeds to step S83.

以下では開始フレーム探索ステップ(ステップS84)の詳細について図9を用いて説明する。まず、不図示の記憶領域に保存したDC値がゼロデータであるか否かを判断し(ステップS91)、ゼロデータである場合、線形予測係数(現フィルタ係数)の値がすべてゼロであるか否かをチェックする(ステップS92)。すべてがゼロである場合、不図示の記憶領域に保存してあるフィルタ係数を選択するように現フィルタ使用フラグをオフ(OFF)にする(ステップS94)。この場合、まだゼロデータが続いている可能性があるので開始フレーム探索完了フラグはセットしない。一方、ステップS92において現フィルタ係数がすべてゼロでない場合、ゼロデータの継続が途切れたと判断し、開始フレーム探索完了フラグをセットする(ステップS93)。そして、現フィルタ使用フラグをオフ(OFF)にする(ステップS94)。   Details of the start frame search step (step S84) will be described below with reference to FIG. First, it is determined whether or not the DC value stored in a storage area (not shown) is zero data (step S91). If the DC value is zero data, are all the values of the linear prediction coefficients (current filter coefficients) zero? It is checked whether or not (step S92). If all are zero, the current filter use flag is turned off (OFF) so as to select a filter coefficient stored in a storage area (not shown) (step S94). In this case, since there is a possibility that zero data still continues, the start frame search completion flag is not set. On the other hand, if all the current filter coefficients are not zero in step S92, it is determined that the continuation of zero data is interrupted, and a start frame search completion flag is set (step S93). Then, the current filter use flag is turned off (step S94).

そして、ステップS91において、保存したDC値がゼロでない(ノンゼロ値である)場合には、処理フレームの先頭サンプル(時間的に一番早いサンプル)からノンゼロ値が継続するサンプルの数をカウントする(ステップS95)。次に、カウント値がフレーム長(処理フレームの半分)より少ないか否かを判断し(ステップS96)、少ないならば開始フレーム探索完了フラグをセットする(ステップS97)。一方、カウント値がフレーム長以上である場合には、ゼロデータのときと同様に次のフレームまで継続している可能性があるので開始フレーム探索完了フラグはセットしない。そして、DC値信頼性判定(ステップS98)では、不図示の記憶領域に保存してあるDC値が本当に正しいかを判定し、例えば継続するカウント数やサンプルの平均値などによりDC値の更正を行う。そして、現フィルタ使用フラグをオフ(OFF)にする(ステップS99)。   In step S91, if the stored DC value is not zero (non-zero value), the number of samples in which the non-zero value continues from the first sample of the processing frame (the earliest sample in time) is counted ( Step S95). Next, it is determined whether or not the count value is less than the frame length (half of the processing frame) (step S96). If it is less, a start frame search completion flag is set (step S97). On the other hand, when the count value is equal to or longer than the frame length, the start frame search completion flag is not set because there is a possibility that the next frame is continued as in the case of zero data. In the DC value reliability determination (step S98), it is determined whether the DC value stored in the storage area (not shown) is really correct. For example, the DC value is corrected based on the number of continuous counts or the average value of the samples. Do. Then, the current filter use flag is turned off (step S99).

以下では図8で上述した終了フレーム探索ステップ(ステップS85)の詳細について図10を用いて説明する。まず、線形予測係数(現フィルタ係数)の係数がすべてゼロであるか否かをチェックし(ステップS101)、ゼロであるならばDC値のカウント数をフレーム長にセットする(ステップS103)。一方、線形予測係数(現フィルタ係数)の係数がゼロでなければ処理フレームの終わりのサンプル(時間的に一番遅いサンプル)から不図示の記憶領域に保存してあるDC値が継続するサンプルの数をカウントする(ステップS102)。そして、カウント数が所定値以上か否かを判断し(ステップS104)、所定値以上であるならば現フィルタ使用フラグをオフ(OFF)にする(ステップS106)。所定値より少ない場合には現フィルタ使用フラグをオン(ON)にする(ステップS105)。   Details of the end frame search step (step S85) described above with reference to FIG. 8 will be described below with reference to FIG. First, it is checked whether or not the coefficients of the linear prediction coefficient (current filter coefficient) are all zero (step S101). If it is zero, the DC value count is set to the frame length (step S103). On the other hand, if the coefficient of the linear prediction coefficient (current filter coefficient) is not zero, the sample of the DC value stored in the storage area (not shown) from the sample at the end of the processing frame (the latest sample in time) continues. The number is counted (step S102). Then, it is determined whether or not the count number is equal to or greater than a predetermined value (step S104). If it is equal to or greater than the predetermined value, the current filter use flag is turned off (OFF) (step S106). If it is less than the predetermined value, the current filter use flag is turned on (step S105).

以上のように、図1に示すフレーム化ステップ部16及びフィルタ特性決定ステップ部17で処理された結果に対してノイズシェイピングステップ部18では、圧縮ステップ部12に入力される直前の差分値d(n)と伸長ステップ部14の後の差分値d´(n)から得られた量子化誤差e(n)(e(n)=d(n)−d´(n))に対して、上述した線形予測係数を用いて構成したFIRフィルタを適用する。フィルタ処理を受けた量子化誤差ns(n−1)は、差分算出ステップ部11にフィードバックされることにより量子化誤差スペクトルの概形がフィルタ特性に合わせて整形される。   As described above, in the noise shaping step unit 18 with respect to the result processed by the framing step unit 16 and the filter characteristic determination step unit 17 shown in FIG. n) and the quantization error e (n) (e (n) = d (n) −d ′ (n)) obtained from the difference value d ′ (n) after the expansion step unit 14 described above. The FIR filter configured using the linear prediction coefficient is applied. The quantization error ns (n−1) that has been subjected to the filter processing is fed back to the difference calculation step unit 11 so that the approximate shape of the quantization error spectrum is shaped according to the filter characteristics.

図11はノイズシェイピングステップ部18による作用を示した概念図である。図11に示すように、従来技術により圧縮伸長を行った際の量子化誤差(従来の量子化誤差)は、周波数的に一様に拡がった平坦なスペクトルを有する。通常のオーディオ信号は、図11に示すようになだらかなスロープを描いているため、オーディオ信号対量子化誤差比(SNR)は低中域が高く、高域に向かうにつれて悪くなる。しかし、本発明のノイズシェイピングステップ部18を適用することにより、量子化誤差の平坦なスペクトルはオーディオ信号のスペクトル包絡に似た形に整形される。この結果、SNRが全帯域で一様となる方向に向かうため量子化誤差を聴覚的に減少させることができる。   FIG. 11 is a conceptual diagram showing the operation of the noise shaping step unit 18. As shown in FIG. 11, the quantization error (conventional quantization error) when compression / expansion is performed by the conventional technique has a flat spectrum that is spread uniformly in frequency. Since a normal audio signal has a gentle slope as shown in FIG. 11, the audio signal-to-quantization error ratio (SNR) is high in the low-mid range and worsens toward the high range. However, by applying the noise shaping step unit 18 of the present invention, the flat spectrum of the quantization error is shaped to resemble the spectrum envelope of the audio signal. As a result, the SNR tends to be uniform in the entire band, so that the quantization error can be reduced audibly.

以上説明したように本発明によれば、周波数的に一様に拡がった量子化誤差のスペクトル包絡線をオーディオ信号のスペクトル包絡線に近づけることができ、量子化誤差を聴覚的に減少させることができる。また、本発明において、スペクトル包絡特性の変動幅を所定の範囲内に収めるようにスペクトル包絡線を制限するようにした処理では、量子化誤差のスペクトル包絡線の変動幅を制限し、特定の周波数帯域だけ信号対量子化誤差比(SNR)が高いといった偏りを改善することができる。さらに、入力されたオーディオ信号に変化がなく一定値が続く場合に、そのサンプル数をカウントし、所定値以上であればスペクトル包絡特性から算出したフィルタ係数ではなく、保存してあるフィルタ係数を用いるようにした場合では、フレーム境界で発生する品質ギャップを防ぐことができる。また、本発明は既存のフォーマットに何ら変更を加えることがないため、従来からの再生プレーヤ、再生装置を使用することができる。   As described above, according to the present invention, the spectral envelope of the quantization error spread uniformly in frequency can be brought close to the spectral envelope of the audio signal, and the quantization error can be reduced aurally. it can. Further, in the present invention, in the process of limiting the spectral envelope so that the fluctuation range of the spectral envelope characteristic falls within a predetermined range, the fluctuation range of the spectral envelope of the quantization error is limited to a specific frequency. The bias that the signal-to-quantization error ratio (SNR) is high only in the band can be improved. Further, when the input audio signal does not change and a constant value continues, the number of samples is counted. If the input audio signal is equal to or larger than a predetermined value, the stored filter coefficient is used instead of the filter coefficient calculated from the spectrum envelope characteristic. In such a case, the quality gap that occurs at the frame boundary can be prevented. In addition, since the present invention does not change any existing format, a conventional playback player and playback device can be used.

なお、本発明は上述した高能率符号化装置の機能をコンピュータに実現させるためのプログラムを含むものである。このプログラムは記録媒体から読み取られてコンピュータに取り込まれてもよいし、通信ネットワークを介して伝送されてコンピュータに取り込まれてもよい。   The present invention includes a program for causing a computer to realize the functions of the above-described high-efficiency encoding apparatus. This program may be read from a recording medium and loaded into a computer, or may be transmitted via a communication network and loaded into a computer.

本発明に係る高能率符号化プログラム及び高能率符号化装置は、低サンプリング周波数を用いる符号化において、既存のフォーマットに何ら変更を加えることなく、周波数的に一様に拡がった量子化雑音のスペクトル包絡線をオーディオ信号のスペクトル包絡線に近づけることができ、オーディオ信号の高品質化を図ることができる。また、特定の周波数帯域だけ信号対量子化雑音比(SNR)が高いといった偏りを改善することができる。また、処理フレーム境界で発生する品質ギャップを防ぐことができる。そのため、音声又はオーディオ信号の符号化のための高能率符号化プログラム及び高能率符号化装置に関し、特に量子化雑音スペクトルを聴感的に望ましいものとすることによって聴くに耐え得る品質を提供する高能率符号化プログラム及び高能率符号化装置などに有用である。   The high-efficiency encoding program and the high-efficiency encoding apparatus according to the present invention are a quantization noise spectrum that spreads uniformly in frequency without any change to an existing format in encoding using a low sampling frequency. The envelope can be brought close to the spectrum envelope of the audio signal, and the quality of the audio signal can be improved. In addition, it is possible to improve the bias that the signal-to-quantization noise ratio (SNR) is high only in a specific frequency band. In addition, it is possible to prevent a quality gap that occurs at the processing frame boundary. Therefore, the present invention relates to a high-efficiency encoding program and a high-efficiency encoding apparatus for encoding speech or audio signals, and in particular, high-efficiency that provides a quality that can withstand listening by making the quantization noise spectrum audibly desirable. This is useful for an encoding program and a high-efficiency encoding device.

本発明の実施の形態に係る高能率符号化装置の構成を示す構成図である。It is a block diagram which shows the structure of the highly efficient encoding apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る高能率符号化装置におけるフレーム化ステップ部の処理の一例を説明するための図である。It is a figure for demonstrating an example of the process of the framing step part in the highly efficient encoding apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る高能率符号化装置におけるフィルタ特性決定ステップ部の処理の一例を説明するためのフローチャートである。It is a flowchart for demonstrating an example of the process of the filter characteristic determination step part in the highly efficient encoding apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る高能率符号化装置における処理フレームのデータの逆特性を持つスペクトル包絡を示す図である。It is a figure which shows the spectrum envelope which has the reverse characteristic of the data of the process frame in the highly efficient encoding apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る高能率符号化装置におけるスペクトル包絡制限ステップ部の処理の一例について説明するための図である。It is a figure for demonstrating an example of the process of the spectrum envelope restriction | limiting step part in the highly efficient encoding apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る高能率符号化装置における開始フレームにおいてDCデータが存在することによる問題点を説明するための図である。It is a figure for demonstrating the problem by having DC data in the start frame in the highly efficient encoding apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る高能率符号化装置における終了フレームにおいてDCデータが存在することによる問題点を説明するための図である。It is a figure for demonstrating the problem by DC data existing in the end frame in the high-efficiency encoding apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る高能率符号化装置におけるDC値探索ステップ部の処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process of the DC value search step part in the highly efficient encoding apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る高能率符号化装置におけるDC値探索ステップ部の処理の一例の一部(開始フレーム探索ステップ)の処理を示すフローチャートである。It is a flowchart which shows a part of process (start frame search step) of an example of a process of the DC value search step part in the high efficiency encoding device which concerns on embodiment of this invention. 本発明の実施の形態に係る高能率符号化装置におけるDC値探索ステップ部の処理の一例の一部(終了フレーム探索ステップ)の処理を示すフローチャートである。It is a flowchart which shows a part of process (end frame search step) of an example of a process of the DC value search step part in the high efficiency encoding device which concerns on embodiment of this invention. 本発明の実施の形態に係る高能率符号化装置におけるノイズシェイピングステップ部による作用を示した概念図である。It is the conceptual diagram which showed the effect | action by the noise shaping step part in the highly efficient encoding apparatus which concerns on embodiment of this invention. 従来の高能率符号化装置の構成を示す構成図である。It is a block diagram which shows the structure of the conventional high-efficiency encoding apparatus.

符号の説明Explanation of symbols

0、1、2 処理フレーム
11、121 差分算出ステップ部(差分算出手段)
12、122 圧縮ステップ部(圧縮手段)
13、123 ステップサイズ(量子化幅)決定ステップ部(量子化幅決定手段)
14、124 伸長ステップ部(伸長手段)
15、125 累積ステップ部(累積手段)
16 フレーム化ステップ部(フレーム化手段)
17 フィルタ特性決定ステップ部(フィルタ特性決定手段)
18 ノイズシェイピングステップ部(ノイズシェイピング手段)
0, 1, 2 Processing frame 11, 121 Difference calculation step unit (difference calculating means)
12, 122 Compression step unit (compression means)
13, 123 Step size (quantization width) determination step unit (quantization width determination means)
14, 124 Extension step part (extension means)
15, 125 Accumulation step part (accumulation means)
16 Framing step section (framing means)
17 Filter characteristic determining step unit (filter characteristic determining means)
18 Noise shaping step (noise shaping means)

Claims (8)

等ラウドネス特性及び/又はマスキング特性に基づいて、聴覚的に聞こえない領域の量子化雑音を増加させるようにスペクトル形状を変化させることが可能なサンプリング周波数に比べて低い低サンプリング周波数によりサンプリングされた入力オーディオ信号における現サンプルと1つ前のサンプルとの差分値を算出する差分算出ステップと、
前記差分値に対して量子化及び符号化を行う圧縮ステップと、
前記圧縮ステップから得られた出力に対して復号化及び逆量子化を行う伸長ステップと、
前記圧縮ステップの符号化結果に基づいて、次に算出される差分値の量子化の際の量子化幅を決定する量子化幅決定ステップと、
前記伸長ステップから得られた出力と前記差分値を算出する際の前記1つ前のサンプルの値とを加え、次の差分算出ステップにおいて差分値を算出する際の1つ前のサンプルの値を算出する累積ステップとをコンピュータに実行させるための高能率符号化プログラムであって、
前記入力オーディオ信号を所定のサンプル数ごとに分けて処理フレームを生成するフレーム化ステップと、
生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線を求め、求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数を算出し、算出された前記係数をフィルタ係数とするフィルタ特性決定ステップと、
前記圧縮ステップへの入力の値と前記伸長ステップから得られた出力の値とに基づいて量子化雑音を算出し、算出された前記量子化雑音に対して、前記処理フレームごとに算出された前記フィルタ係数から構成されるフィルタの対応する前記フィルタ係数をかけて量子化雑音スペクトルを整形するノイズシェイピングステップとを更にコンピュータに実行させる高能率符号化プログラムであり、
前記フィルタ特性決定ステップは、前記処理フレームの前記逆特性のスペクトル包絡線の最大レベルと最小レベルとの差により定まる振幅変動幅を所定の制限幅内に収めるよう処理を行うスペクトル包絡制限ステップを有する高能率符号化プログラム。
Input sampled at a lower sampling frequency compared to a sampling frequency that can change the spectral shape to increase quantization noise in areas that are not audibly audible based on equal loudness and / or masking characteristics A difference calculating step for calculating a difference value between the current sample and the previous sample in the audio signal;
A compression step of quantizing and encoding the difference value;
A decompression step that performs decoding and inverse quantization on the output obtained from the compression step;
Based on the encoding result of the compression step, a quantization width determination step for determining a quantization width at the time of quantization of the difference value calculated next;
Add the output obtained from the decompression step and the value of the previous sample when calculating the difference value, and the value of the previous sample when calculating the difference value in the next difference calculation step A highly efficient encoding program for causing a computer to execute a cumulative step to be calculated,
A framing step of generating a processing frame by dividing the input audio signal into a predetermined number of samples;
Obtain a spectrum envelope of the reverse characteristic of the spectral envelope for the generated processing frame, calculate a coefficient indicating the characteristic of the spectral envelope that cancels the characteristic of the obtained spectral envelope of the reverse characteristic, the calculated A filter characteristic determination step using a coefficient as a filter coefficient;
Quantization noise is calculated based on the input value to the compression step and the output value obtained from the decompression step, and the calculated quantization noise is calculated for each processing frame. A high-efficiency encoding program that causes a computer to further execute a noise shaping step of shaping a quantized noise spectrum by applying the corresponding filter coefficient of a filter composed of filter coefficients,
The filter characteristic determining step includes a spectral envelope limiting step for performing processing so that an amplitude fluctuation range determined by a difference between a maximum level and a minimum level of the spectrum envelope of the inverse characteristic of the processing frame falls within a predetermined limiting range. High-efficiency encoding program.
等ラウドネス特性及び/又はマスキング特性に基づいて、聴覚的に聞こえない領域の量子化雑音を増加させるようにスペクトル形状を変化させることが可能なサンプリング周波数に比べて低い低サンプリング周波数によりサンプリングされた入力オーディオ信号における現サンプルと1つ前のサンプルとの差分値を算出する差分算出ステップと、
前記差分値に対して量子化及び符号化を行う圧縮ステップと、
前記圧縮ステップから得られた出力に対して復号化及び逆量子化を行う伸長ステップと、
前記圧縮ステップの符号化結果に基づいて、次に算出される差分値の量子化の際の量子化幅を決定する量子化幅決定ステップと、
前記伸長ステップから得られた出力と前記差分値を算出する際の前記1つ前のサンプルの値とを加え、次の差分算出ステップにおいて差分値を算出する際の1つ前のサンプルの値を算出する累積ステップとをコンピュータに実行させるための高能率符号化プログラムであって、
前記入力オーディオ信号を所定のサンプル数ごとに分けて処理フレームを生成するフレーム化ステップと、
生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線を求め、求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数を算出し、算出された前記係数をフィルタ係数とするフィルタ特性決定ステップと、
前記圧縮ステップへの入力の値と前記伸長ステップから得られた出力の値とに基づいて量子化雑音を算出し、算出された前記量子化雑音に対して、前記処理フレームごとに算出された前記フィルタ係数から構成されるフィルタの対応する前記フィルタ係数をかけて量子化雑音スペクトルを整形するノイズシェイピングステップとを更にコンピュータに実行させる高能率符号化プログラムであり、
前記フィルタ特性決定ステップは、前記処理フレームにおいてサンプルの値に変化がなくその値が続く場合、前記値が続くサンプルの数をカウントするDC値探索ステップと、
カウントされた前記サンプルの数に基づいて、前記量子化雑音にかけるフィルタ係数を算出された前記フィルタ係数にするか、あらかじめ所定の記憶領域に格納された保存フィルタ係数にするかを選択する最終フィルタ選択ステップとを有する高能率符号化プログラム。
Input sampled at a lower sampling frequency compared to a sampling frequency that can change the spectral shape to increase quantization noise in areas that are not audibly audible based on equal loudness and / or masking characteristics A difference calculating step for calculating a difference value between the current sample and the previous sample in the audio signal;
A compression step of quantizing and encoding the difference value;
A decompression step that performs decoding and inverse quantization on the output obtained from the compression step;
Based on the encoding result of the compression step, a quantization width determination step for determining a quantization width at the time of quantization of the difference value calculated next;
Add the output obtained from the decompression step and the value of the previous sample when calculating the difference value, and the value of the previous sample when calculating the difference value in the next difference calculation step A highly efficient encoding program for causing a computer to execute a cumulative step to be calculated,
A framing step of generating a processing frame by dividing the input audio signal into a predetermined number of samples;
Obtain a spectrum envelope of the reverse characteristic of the spectral envelope for the generated processing frame, calculate a coefficient indicating the characteristic of the spectral envelope that cancels the characteristic of the obtained spectral envelope of the reverse characteristic, the calculated A filter characteristic determination step using a coefficient as a filter coefficient;
Quantization noise is calculated based on the input value to the compression step and the output value obtained from the decompression step, and the calculated quantization noise is calculated for each processing frame. A high-efficiency encoding program that causes a computer to further execute a noise shaping step of shaping a quantized noise spectrum by applying the corresponding filter coefficient of a filter composed of filter coefficients,
The filter characteristic determining step includes a DC value search step for counting the number of samples followed by the value when there is no change in the value of the sample in the processing frame and the value continues.
A final filter that selects whether the filter coefficient to be applied to the quantization noise is the calculated filter coefficient or the saved filter coefficient stored in a predetermined storage area based on the number of the counted samples A high-efficiency encoding program comprising a selection step.
等ラウドネス特性及び/又はマスキング特性に基づいて、聴覚的に聞こえない領域の量子化雑音を増加させるようにスペクトル形状を変化させることが可能なサンプリング周波数に比べて低い低サンプリング周波数によりサンプリングされた入力オーディオ信号における現サンプルと1つ前のサンプルとの差分値を算出する差分算出ステップと、
前記差分値に対して量子化及び符号化を行う圧縮ステップと、
前記圧縮ステップから得られた出力に対して復号化及び逆量子化を行う伸長ステップと、
前記圧縮ステップの符号化結果に基づいて、次に算出される差分値の量子化の際の量子化幅を決定する量子化幅決定ステップと、
前記伸長ステップから得られた出力と前記差分値を算出する際の前記1つ前のサンプルの値とを加え、次の差分算出ステップにおいて差分値を算出する際の1つ前のサンプルの値を算出する累積ステップとをコンピュータに実行させるための高能率符号化プログラムであって、
前記入力オーディオ信号を所定のサンプル数ごとに分けて処理フレームを生成するフレーム化ステップと、
生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線を求め、求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数を算出し、算出された前記係数をフィルタ係数とするフィルタ特性決定ステップと、
前記圧縮ステップへの入力の値と前記伸長ステップから得られた出力の値とに基づいて量子化雑音を算出し、算出された前記量子化雑音に対して、前記処理フレームごとに算出された前記フィルタ係数から構成されるフィルタの対応する前記フィルタ係数をかけて量子化雑音スペクトルを整形するノイズシェイピングステップとを更にコンピュータに実行させる高能率符号化プログラムであり、
前記フィルタ特性決定ステップは、前記処理フレームの前記逆特性のスペクトル包絡線の最大レベルと最小レベルとの差により定まる振幅変動幅を所定の制限幅内に収めるよう処理を行うスペクトル包絡制限ステップと、
前記処理フレームにおいてサンプルの値に変化がなくその値が続く場合、前記値が続くサンプルの数をカウントするDC値探索ステップと、
カウントされた前記サンプルの数に基づいて、前記量子化雑音にかけるフィルタ係数を算出された前記フィルタ係数にするか、あらかじめ所定の記憶領域に格納された保存フィルタ係数にするかを選択する最終フィルタ選択ステップとを有する高能率符号化プログラム。
Input sampled at a lower sampling frequency compared to a sampling frequency that can change the spectral shape to increase quantization noise in areas that are not audibly audible based on equal loudness and / or masking characteristics A difference calculating step for calculating a difference value between the current sample and the previous sample in the audio signal;
A compression step of quantizing and encoding the difference value;
A decompression step that performs decoding and inverse quantization on the output obtained from the compression step;
Based on the encoding result of the compression step, a quantization width determination step for determining a quantization width at the time of quantization of the difference value calculated next;
Add the output obtained from the decompression step and the value of the previous sample when calculating the difference value, and the value of the previous sample when calculating the difference value in the next difference calculation step A highly efficient encoding program for causing a computer to execute a cumulative step to be calculated,
A framing step of generating a processing frame by dividing the input audio signal into a predetermined number of samples;
Obtain a spectrum envelope of the reverse characteristic of the spectral envelope for the generated processing frame, calculate a coefficient indicating the characteristic of the spectral envelope that cancels the characteristic of the obtained spectral envelope of the reverse characteristic, the calculated A filter characteristic determination step using a coefficient as a filter coefficient;
Quantization noise is calculated based on the input value to the compression step and the output value obtained from the decompression step, and the calculated quantization noise is calculated for each processing frame. A high-efficiency encoding program that causes a computer to further execute a noise shaping step of shaping a quantized noise spectrum by applying the corresponding filter coefficient of a filter composed of filter coefficients,
The filter characteristic determining step includes a spectrum envelope limiting step for performing processing so that an amplitude fluctuation range determined by a difference between a maximum level and a minimum level of the spectrum envelope of the inverse characteristic of the processing frame falls within a predetermined limit range;
A DC value search step for counting the number of samples followed by the value if the value of the sample does not change in the processing frame and the value continues;
A final filter that selects whether the filter coefficient to be applied to the quantization noise is the calculated filter coefficient or the saved filter coefficient stored in a predetermined storage area based on the number of the counted samples A high-efficiency encoding program comprising a selection step.
前記フィルタ特性決定ステップにおける生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線の算出ステップは、線形予測分析により線形予測係数を求める第1の線形予測分析ステップと、前記線形予測係数に対してフーリエ変換によりスペクトル包絡線を求めるスペクトル包絡算出ステップとからなり、
求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数の算出ステップは、前記フーリエ変換により求められたスペクトル包絡線に対して、逆フーリエ変換をして得られた係数を用いて線形予測分析を行い線形予測係数を求める第2の線形予測分析ステップからなる請求項1から3のいずれか1つに記載の高能率符号化プログラム。
The step of calculating the spectral envelope of the inverse characteristic of the spectral envelope for the generated processing frame in the filter characteristic determination step includes a first linear prediction analysis step for obtaining a linear prediction coefficient by linear prediction analysis, and the linear prediction coefficient A spectral envelope calculation step for obtaining a spectral envelope by Fourier transform,
The step of calculating a coefficient indicating the characteristic of the spectral envelope that cancels the characteristic of the spectral envelope of the reverse characteristic obtained is obtained by performing an inverse Fourier transform on the spectral envelope obtained by the Fourier transform. The high-efficiency encoding program according to any one of claims 1 to 3, comprising a second linear prediction analysis step in which linear prediction analysis is performed using a coefficient to obtain a linear prediction coefficient.
前記フレーム化ステップにおいて構成される前記処理フレームは、直前の処理フレームを結合させた処理フレームである請求項1から4のいずれか1つに記載の高能率符号化プログラム。   The high-efficiency encoding program according to any one of claims 1 to 4, wherein the processing frame configured in the framing step is a processing frame obtained by combining the immediately preceding processing frames. 等ラウドネス特性及び/又はマスキング特性に基づいて、聴覚的に聞こえない領域の量子化雑音を増加させるようにスペクトル形状を変化させることが可能なサンプリング周波数に比べて低い低サンプリング周波数によりサンプリングされた入力オーディオ信号における現サンプルと1つ前のサンプルとの差分値を算出する差分算出手段と、
前記差分値に対して量子化及び符号化を行う圧縮手段と、
前記圧縮手段からの出力に対して復号化及び逆量子化を行う伸長手段と、
前記圧縮手段の符号化結果に基づいて、次に算出される差分値の量子化の際の量子化幅を決定する量子化幅決定手段と、
前記伸長手段からの出力と前記差分値を算出する際の前記1つ前のサンプルの値とを加え、次に差分算出手段において差分値を算出する際の1つ前のサンプルの値を算出する累積手段とから構成される高能率符号化装置であって、
前記入力オーディオ信号を所定のサンプル数ごとに分けて処理フレームを生成するフレーム化手段と、
生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線を求め、求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数を算出し、算出された前記係数をフィルタ係数とするフィルタ特性決定手段と、
前記圧縮手段への入力の値と前記伸長手段からの出力の値とに基づいて量子化雑音を算出し、算出された前記量子化雑音に対して、前記処理フレームごとに算出された前記フィルタ係数から構成されるフィルタの対応する前記フィルタ係数をかけて量子化雑音スペクトルを整形するノイズシェイピング手段とを更に有し、
前記フィルタ特性決定手段は、前記処理フレームの前記逆特性のスペクトル包絡線の最大レベルと最小レベルとの差により定まる振幅変動幅を所定の制限幅内に収めるよう処理を行うスペクトル包絡制限手段を有する高能率符号化装置。
Input sampled at a lower sampling frequency compared to a sampling frequency that can change the spectral shape to increase quantization noise in areas that are not audibly audible based on equal loudness and / or masking characteristics A difference calculating means for calculating a difference value between the current sample and the previous sample in the audio signal;
Compression means for performing quantization and encoding on the difference value;
Decompression means for performing decoding and inverse quantization on the output from the compression means;
Based on the encoding result of the compression means, quantization width determination means for determining a quantization width at the time of quantization of the difference value calculated next;
The output from the decompression means and the value of the previous sample when the difference value is calculated are added, and then the value of the previous sample when the difference value is calculated by the difference calculation means is calculated. A high-efficiency encoding device comprising accumulating means,
Framing means for generating a processing frame by dividing the input audio signal into a predetermined number of samples;
Obtain a spectrum envelope of the reverse characteristic of the spectral envelope for the generated processing frame, calculate a coefficient indicating the characteristic of the spectral envelope that cancels the characteristic of the obtained spectral envelope of the reverse characteristic, the calculated Filter characteristic determining means using the coefficients as filter coefficients;
Quantization noise is calculated based on an input value to the compression means and an output value from the decompression means, and the filter coefficient calculated for each processing frame with respect to the calculated quantization noise Noise shaping means for shaping the quantized noise spectrum by applying the corresponding filter coefficient of the filter comprising:
The filter characteristic determining unit includes a spectral envelope limiting unit that performs processing so that an amplitude fluctuation range determined by a difference between a maximum level and a minimum level of a spectrum envelope of the inverse characteristic of the processing frame falls within a predetermined limit range. High-efficiency encoding device.
等ラウドネス特性及び/又はマスキング特性に基づいて、聴覚的に聞こえない領域の量子化雑音を増加させるようにスペクトル形状を変化させることが可能なサンプリング周波数に比べて低い低サンプリング周波数によりサンプリングされた入力オーディオ信号における現サンプルと1つ前のサンプルとの差分値を算出する差分算出手段と、
前記差分値に対して量子化及び符号化を行う圧縮手段と、
前記圧縮手段からの出力に対して復号化及び逆量子化を行う伸長手段と、
前記圧縮手段の符号化結果に基づいて、次に算出される差分値の量子化の際の量子化幅を決定する量子化幅決定手段と、
前記伸長手段からの出力と前記差分値を算出する際の前記1つ前のサンプルの値とを加え、次に差分算出手段において差分値を算出する際の1つ前のサンプルの値を算出する累積手段とから構成される高能率符号化装置であって、
前記入力オーディオ信号を所定のサンプル数ごとに分けて処理フレームを生成するフレーム化手段と、
生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線を求め、求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数を算出し、算出された前記係数をフィルタ係数とするフィルタ特性決定手段と、
前記圧縮手段への入力の値と前記伸長手段からの出力の値とに基づいて量子化雑音を算出し、算出された前記量子化雑音に対して、前記処理フレームごとに算出された前記フィルタ係数から構成されるフィルタの対応する前記フィルタ係数をかけて量子化雑音スペクトルを整形するノイズシェイピング手段とを更に有し、
前記フィルタ特性決定手段は、前記処理フレームにおいてサンプルの値に変化がなくその値が続く場合、前記値が続くサンプルの数をカウントするDC値探索手段と、
カウントされた前記サンプルの数に基づいて、前記量子化雑音にかけるフィルタ係数を算出された前記フィルタ係数にするか、あらかじめ所定の記憶領域に格納された保存フィルタ係数にするかを選択する最終フィルタ選択手段とを有する高能率符号化装置。
Input sampled at a lower sampling frequency compared to a sampling frequency that can change the spectral shape to increase quantization noise in areas that are not audibly audible based on equal loudness and / or masking characteristics A difference calculating means for calculating a difference value between the current sample and the previous sample in the audio signal;
Compression means for performing quantization and encoding on the difference value;
Decompression means for performing decoding and inverse quantization on the output from the compression means;
Based on the encoding result of the compression means, quantization width determination means for determining a quantization width at the time of quantization of the difference value calculated next;
The output from the decompression means and the value of the previous sample when the difference value is calculated are added, and then the value of the previous sample when the difference value is calculated by the difference calculation means is calculated. A high-efficiency encoding device comprising accumulating means,
Framing means for generating a processing frame by dividing the input audio signal into a predetermined number of samples;
Obtain a spectrum envelope of the reverse characteristic of the spectral envelope for the generated processing frame, calculate a coefficient indicating the characteristic of the spectral envelope that cancels the characteristic of the obtained spectral envelope of the reverse characteristic, the calculated Filter characteristic determining means using the coefficients as filter coefficients;
Quantization noise is calculated based on an input value to the compression means and an output value from the decompression means, and the filter coefficient calculated for each processing frame with respect to the calculated quantization noise Noise shaping means for shaping the quantized noise spectrum by applying the corresponding filter coefficient of the filter comprising:
The filter characteristic determining means, when there is no change in the sample value in the processing frame and the value continues, DC value search means for counting the number of samples followed by the value;
A final filter that selects whether the filter coefficient to be applied to the quantization noise is the calculated filter coefficient or the saved filter coefficient stored in a predetermined storage area based on the number of the counted samples A high-efficiency encoding device having a selection unit.
等ラウドネス特性及び/又はマスキング特性に基づいて、聴覚的に聞こえない領域の量子化雑音を増加させるようにスペクトル形状を変化させることが可能なサンプリング周波数に比べて低い低サンプリング周波数によりサンプリングされた入力オーディオ信号における現サンプルと1つ前のサンプルとの差分値を算出する差分算出手段と、
前記差分値に対して量子化及び符号化を行う圧縮手段と、
前記圧縮手段からの出力に対して復号化及び逆量子化を行う伸長手段と、
前記圧縮手段の符号化結果に基づいて、次に算出される差分値の量子化の際の量子化幅を決定する量子化幅決定手段と、
前記伸長手段からの出力と前記差分値を算出する際の前記1つ前のサンプルの値とを加え、次に差分算出手段において差分値を算出する際の1つ前のサンプルの値を算出する累積手段とから構成される高能率符号化装置であって、
前記入力オーディオ信号を所定のサンプル数ごとに分けて処理フレームを生成するフレーム化手段と、
生成された前記処理フレームに対するスペクトル包絡線の逆特性のスペクトル包絡線を求め、求められた前記逆特性のスペクトル包絡線の特性を打ち消すスペクトル包絡線の特性を示す係数を算出し、算出された前記係数をフィルタ係数とするフィルタ特性決定手段と、
前記圧縮手段への入力の値と前記伸長手段からの出力の値とに基づいて量子化雑音を算出し、算出された前記量子化雑音に対して、前記処理フレームごとに算出された前記フィルタ係数から構成されるフィルタの対応する前記フィルタ係数をかけて量子化雑音スペクトルを整形するノイズシェイピング手段とを更に有し、
前記フィルタ特性決定手段は、前記処理フレームの前記逆特性のスペクトル包絡線の最大レベルと最小レベルとの差により定まる振幅変動幅を所定の制限幅内に収めるよう処理を行うスペクトル包絡制限手段と、
前記処理フレームにおいてサンプルの値に変化がなくその値が続く場合、前記値が続くサンプルの数をカウントするDC値探索手段と、
カウントされた前記サンプルの数に基づいて、前記量子化雑音にかけるフィルタ係数を算出された前記フィルタ係数にするか、あらかじめ所定の記憶領域に格納された保存フィルタ係数にするかを選択する最終フィルタ選択手段とを有する高能率符号化装置。
Input sampled at a lower sampling frequency compared to a sampling frequency that can change the spectral shape to increase quantization noise in areas that are not audibly audible based on equal loudness and / or masking characteristics A difference calculating means for calculating a difference value between the current sample and the previous sample in the audio signal;
Compression means for performing quantization and encoding on the difference value;
Decompression means for performing decoding and inverse quantization on the output from the compression means;
Based on the encoding result of the compression means, quantization width determination means for determining a quantization width at the time of quantization of the difference value calculated next;
The output from the decompression means and the value of the previous sample at the time of calculating the difference value are added, and then the value of the previous sample at the time of calculating the difference value by the difference calculation means is calculated. A high-efficiency encoding device comprising accumulating means,
Framing means for generating a processing frame by dividing the input audio signal into a predetermined number of samples;
Obtain a spectrum envelope of the reverse characteristic of the spectral envelope for the generated processing frame, calculate a coefficient indicating the characteristic of the spectral envelope that cancels the characteristic of the obtained spectral envelope of the reverse characteristic, the calculated Filter characteristic determining means using the coefficients as filter coefficients;
Quantization noise is calculated based on an input value to the compression unit and an output value from the decompression unit, and the filter coefficient calculated for each processing frame with respect to the calculated quantization noise Noise shaping means for shaping a quantized noise spectrum by applying the corresponding filter coefficient of a filter comprising:
The filter characteristic determining means is a spectrum envelope limiting means for performing processing so that an amplitude fluctuation range determined by a difference between a maximum level and a minimum level of the spectrum envelope of the inverse characteristic of the processing frame falls within a predetermined limit width;
DC value search means for counting the number of samples followed by the value when the value of the sample does not change in the processing frame and the value continues,
A final filter that selects whether the filter coefficient to be applied to the quantization noise is the calculated filter coefficient or the stored filter coefficient stored in a predetermined storage area based on the number of the counted samples A high-efficiency encoding device having a selection unit.
JP2005376442A 2005-12-27 2005-12-27 High efficiency encoding program and high efficiency encoding apparatus Expired - Fee Related JP4556866B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005376442A JP4556866B2 (en) 2005-12-27 2005-12-27 High efficiency encoding program and high efficiency encoding apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005376442A JP4556866B2 (en) 2005-12-27 2005-12-27 High efficiency encoding program and high efficiency encoding apparatus

Publications (2)

Publication Number Publication Date
JP2007178677A JP2007178677A (en) 2007-07-12
JP4556866B2 true JP4556866B2 (en) 2010-10-06

Family

ID=38303931

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005376442A Expired - Fee Related JP4556866B2 (en) 2005-12-27 2005-12-27 High efficiency encoding program and high efficiency encoding apparatus

Country Status (1)

Country Link
JP (1) JP4556866B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120095729A1 (en) * 2010-10-14 2012-04-19 Electronics And Telecommunications Research Institute Known information compression apparatus and method for separating sound source

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0642631B2 (en) * 1984-12-29 1994-06-01 ソニー株式会社 Signal transmission device
JPS62234435A (en) * 1986-04-04 1987-10-14 Kokusai Denshin Denwa Co Ltd <Kdd> Voice coding system
JP3446216B2 (en) * 1992-03-06 2003-09-16 ソニー株式会社 Audio signal processing method
JP3191457B2 (en) * 1992-10-31 2001-07-23 ソニー株式会社 High efficiency coding apparatus, noise spectrum changing apparatus and method
JP2000081899A (en) * 1998-09-03 2000-03-21 Olympus Optical Co Ltd Speech recognizing device and speech recording and reproducing device
JP3590342B2 (en) * 2000-10-18 2004-11-17 日本電信電話株式会社 Signal encoding method and apparatus, and recording medium recording signal encoding program

Also Published As

Publication number Publication date
JP2007178677A (en) 2007-07-12

Similar Documents

Publication Publication Date Title
JP4478183B2 (en) Apparatus and method for stably classifying audio signals, method for constructing and operating an audio signal database, and computer program
JP3307138B2 (en) Signal encoding method and apparatus, and signal decoding method and apparatus
KR100348368B1 (en) A digital acoustic signal coding apparatus, a method of coding a digital acoustic signal, and a recording medium for recording a program of coding the digital acoustic signal
JP3765622B2 (en) Audio encoding / decoding system
JP4021124B2 (en) Digital acoustic signal encoding apparatus, method and recording medium
JP5390690B2 (en) Voice codec quality improving apparatus and method
JP2004198485A (en) Device and program for decoding sound encoded signal
JP4022504B2 (en) Audio decoding method and apparatus for restoring high frequency components with a small amount of calculation
KR100636144B1 (en) Apparatus and method for encoding/decoding audio signal
US20070118362A1 (en) Audio compression/decompression device
JP4556866B2 (en) High efficiency encoding program and high efficiency encoding apparatus
JP4508599B2 (en) Data compression method
US6038369A (en) Signal recording method and apparatus, recording medium and signal processing method
JP4593364B2 (en) Audio data interpolation method and interpolation apparatus
JP2003280691A (en) Voice processing method and voice processor
JP4649351B2 (en) Digital data decoding device
JPH05204395A (en) Audio gain controller and audio recording and reproducing device
JP4627737B2 (en) Digital data decoding device
JP4641272B2 (en) Digital data decoding device
JP4815986B2 (en) Interpolation device, audio playback device, interpolation method, and interpolation program
JP4530567B2 (en) Digital audio decoding device
JP3389849B2 (en) Quantizer
JP2006078882A (en) Voice recording and reproducing device
KR100776432B1 (en) Audio recording and reproducing apparatus and audio coding method for improvement of compression ratio executable in the apparatus
JP2002111498A (en) Digital attenuatig circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071228

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100531

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

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

R151 Written notification of patent or utility model registration

Ref document number: 4556866

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20130730

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130730

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20130730

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees