JP2008289085A - Decoding method, decoder, decoding apparatus, encoding method, encoder, program and recording medium - Google Patents

Decoding method, decoder, decoding apparatus, encoding method, encoder, program and recording medium Download PDF

Info

Publication number
JP2008289085A
JP2008289085A JP2007134457A JP2007134457A JP2008289085A JP 2008289085 A JP2008289085 A JP 2008289085A JP 2007134457 A JP2007134457 A JP 2007134457A JP 2007134457 A JP2007134457 A JP 2007134457A JP 2008289085 A JP2008289085 A JP 2008289085A
Authority
JP
Japan
Prior art keywords
gain
shape
code
weighted
codebook
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.)
Granted
Application number
JP2007134457A
Other languages
Japanese (ja)
Other versions
JP4638895B2 (en
Inventor
Yuusuke Hiwazaki
祐介 日和▲崎▼
Naka Omuro
仲 大室
Takeshi Mori
岳至 森
Akitoshi Kataoka
章俊 片岡
Shigeaki Sasaki
茂明 佐々木
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2007134457A priority Critical patent/JP4638895B2/en
Publication of JP2008289085A publication Critical patent/JP2008289085A/en
Application granted granted Critical
Publication of JP4638895B2 publication Critical patent/JP4638895B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a decoding technology and an encoding technology for satisfying the maintenance of encoding quality and reduction in computational complexity in encoding while reducing a memory capacity to be used. <P>SOLUTION: This decoding method includes an spreading code decomposing step, a weighted form decoding step, a weighting removal calculating step, a gain decoding step and a multiplication step. In the spreading code decomposing step, an input code is decomposed into a form code and a gain code. In the weighted form decoding step, a weighted form code book is used to convert the form code into a weighted form vector. In the weighting removal calculating step, a weight of the weighted form vector is removed and a form vector is outputted. In the gain decoding step, a gain code book is used to convert the gain code into a gain. In the multiplication step, the form vector and the gain are multiplied to output a decoded signal. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、符号を復号する復号方法、当該符号を符号化する符号化方法、これらの方法を利用した復号器、復号装置、符号化装置、プログラムおよび記録媒体に関する。   The present invention relates to a decoding method for decoding a code, an encoding method for encoding the code, a decoder, a decoding device, an encoding device, a program, and a recording medium using these methods.

従来から用いられている電話帯域の音声信号を符号化する音声符号化方法として、G.711(非特許文献1)に用いられる非線型波形圧縮符号化(μ則・A則PCM)や、G. 726(非特許文献2)などに用いられる差分予測波形圧縮符号化(ADPCM)などの波形符号化方式がある。公衆電話網及びインターネットを用いた音声通信(VoIP)では、ほぼこの符号化方式が用いられている。   Non-linear waveform compression coding (μ-law / A-law PCM) used in G.711 (Non-Patent Document 1), G-711 (Non-Patent Document 1), G-711 There is a waveform coding method such as differential prediction waveform compression coding (ADPCM) used in 726 (Non-Patent Document 2) and the like. In voice communication (VoIP) using a public telephone network and the Internet, this encoding method is almost used.

一方、携帯電話などの回線の伝送帯域に制限がある場合には、線形予測分析に基づく符号化方式が主流であり、この線形予測分析によって得られる包絡情報を元に雑音を変形して符号化する手法が用いられている。しかし、線形予測分析方式では、符号化処理時間単位毎に演算量の多い自己相関関数を求める必要がある。また、符号選択時には、この包絡情報を符号化処理時間単位毎に反映して符号を選択する必要があり、符号化に要する演算量は上述した波形符号化方式の数十倍となる。また、波形符号化や線形予測分析に基づく符号化方式以外にも高音質で圧縮効率の良い符号化方式は多数存在する。   On the other hand, when the transmission band of a line such as a cellular phone is limited, the coding method based on linear prediction analysis is the mainstream, and noise is transformed and encoded based on the envelope information obtained by this linear prediction analysis. Is used. However, in the linear prediction analysis method, it is necessary to obtain an autocorrelation function having a large amount of calculation for each encoding processing time unit. Further, when selecting a code, it is necessary to select a code by reflecting this envelope information for each encoding processing time unit, and the amount of calculation required for encoding is several tens of times that of the above-described waveform encoding method. In addition to the coding methods based on waveform coding and linear prediction analysis, there are many coding methods with high sound quality and good compression efficiency.

こうして符号化方式が多数存在する場合、方式の違いによって相互接続性が保証されていない。よって異なる符号化方式を搭載した複数の端末装置と通信を行う場合、自らの通信端末上で対応する複数の符号化器および復号器を動作させ、通信相手の端末装置に実装されている符号化方式に応じて符号化方式を使い分ける必要がある。しかし、使用できる演算量が制限される端末装置では、演算量の大きい符号化器を複数同時に動作させることは不可能である。これに対し、波形符号化方式はどのようなVoIP会議端末にも一般的に実装されている。以上より、結局はG.711やG.726のような波形符号化方式を用いざるを得ない。   Thus, when there are a large number of encoding methods, the interoperability is not guaranteed due to the difference in the methods. Therefore, when communicating with a plurality of terminal devices equipped with different encoding methods, the corresponding encoders and decoders are operated on their own communication terminals, and the encoding implemented in the terminal device of the communication partner It is necessary to use different encoding methods depending on the method. However, in a terminal device in which the amount of computation that can be used is limited, it is impossible to simultaneously operate a plurality of encoders having a large amount of computation. On the other hand, the waveform coding method is generally implemented in any VoIP conference terminal. From the above, eventually, a waveform encoding method such as G.711 or G.726 must be used.

μ則・A則PCMやADPCMによる符号化方式は振幅の非線形圧縮を用いるため、再生音声に重畳する符号化雑音は音声全体のパワと相関が強く、入力音声レベルに依存せずに復号音声のSN比を一定にできるという利点がある。しかし、この符号化雑音は白色雑音となる。従来G.711やG.726への入力音声は、IRS特性等に代表される高域成分が強調された従来の電話機から出力される信号の周波数特性に変更されることが想定されているため、このように高域成分が強調されている信号によれば白色雑音が顕著に知覚されることはない。ここでのIRS特性(非特許文献3)とは図1に示すような緩やかな高域通過フィルタ型の周波数特性を指す。   Since the coding method based on μ-law / A-law PCM and ADPCM uses nonlinear compression of amplitude, the coding noise superimposed on the reproduced speech has a strong correlation with the power of the entire speech and does not depend on the input speech level. There is an advantage that the S / N ratio can be made constant. However, this coding noise becomes white noise. Conventional G.G. 711 and G.G. Since the input voice to 726 is assumed to be changed to the frequency characteristics of a signal output from a conventional telephone in which high frequency components typified by IRS characteristics are emphasized, the high frequency components are According to a signal in which is emphasized, white noise is not perceived remarkably. Here, the IRS characteristic (Non-patent Document 3) indicates a gentle high-pass filter type frequency characteristic as shown in FIG.

しかし、VoIPなどの通信において高域成分が強調された周波数特性を持つマイクが使用されることは稀である。そのため、音声信号が持つ低域へのパワの集中が是正されることなく符号化され(エンコーダミスマッチ)、低域側のパワ増加の影響で高域側のSN比が悪化し、復号側で雑音が顕著に知覚されてしまうという問題が生じる。例えば平坦な周波数特性を持つマイクを使用して音声を収音すると、符号化対象の信号も低域(〜1kHz程度)にパワの集中したものとなり、高域において入力音声レベルに対する符号化雑音レベルが相対的に大きくなり、復号側で雑音が知覚されやすくなる。   However, it is rare that a microphone having a frequency characteristic in which a high frequency component is emphasized is used in communication such as VoIP. For this reason, the power signal is encoded without correcting the power concentration in the low frequency range (encoder mismatch), the SN ratio on the high frequency side deteriorates due to the increase in power on the low frequency side, and noise occurs on the decoding side. This causes a problem that the image is perceived prominently. For example, if a microphone with flat frequency characteristics is used to pick up speech, the signal to be encoded is also concentrated in the low frequency range (about 1 kHz), and the encoding noise level relative to the input speech level in the high frequency range. Becomes relatively large, and noise is easily perceived on the decoding side.

上記の問題を解決するため、出願人は、波形符号化のエンコーダミスマッチによって生じた量子化雑音を低演算量かつ高能率に低減する符号化方法および復号方法を実現している。また、これを実現するにあたり、ビットストリームをスケーラブル構成にすることで基本符号では従来端末とのビットストリームの互換性を保ち、相互接続性を高める手段を提供している(特許文献1)。具体的には、エンコーダミスマッチによる品質劣化を避けるためには、G.711あるいはG.726を基本段として用いる多段構成の符号化器を用いており、基本段の雑音を低減する2段目には、線形予測分析に基づく符号化方式よりも大幅に低演算量で動作する符号化方式を用いていた。   In order to solve the above problem, the applicant has realized an encoding method and a decoding method that reduce quantization noise caused by encoder mismatch in waveform encoding to a low computational complexity and high efficiency. In order to realize this, the basic code provides means for maintaining the bit stream compatibility with the conventional terminal and enhancing the interconnectivity by making the bit stream scalable (Patent Document 1). Specifically, in order to avoid quality degradation due to encoder mismatch, G. 711 or G.I. A multi-stage encoder using 726 as the basic stage is used, and the second stage for reducing the noise of the basic stage is an encoding that operates with a much lower amount of computation than the encoding method based on linear prediction analysis. The method was used.

特許文献1の符号化器では、あらかじめ重みを付与した高域重み付き形状符号帳と高域重み付きパワ逆数表などの複数の符号帳を用いて高品質に再生でき、かつ低演算量に符号化する機能を実現した。
ITU-T (Telecommunication Standardization Sector, International Telecommunication Union), Geneva, Switzerland. ITU-T G.711-Pulse code modulation (PCM) of voice frequencies, Nov.1988. ITU-T (Telecommunication Standardization Sector, International Telecommunication Union), Geneva, Switzerland. ITU-T G.726-40,32,24,16 kbit/s adaptive differential pulse code modulation (ADPCM), Dec. 1990. ITU-T (Telecommunication Standardization Sector, International Telecommunication Union), Geneva, Switzerland. ITU-T P.830 Annex D-modified IRS send and receive characteristics, Feb. 1996. 特開2006−119301号公報
In the encoder of Patent Document 1, it is possible to reproduce with high quality using a plurality of codebooks such as a high-frequency weighted shape codebook pre-weighted and a high-frequency weighted power reciprocal table, and code with low computational complexity. The function to be realized.
ITU-T (Telecommunication Standardization Sector, International Telecommunication Union), Geneva, Switzerland.ITU-T G.711-Pulse code modulation (PCM) of voice frequencies, Nov.1988. ITU-T (Telecommunication Standardization Sector, International Telecommunication Union), Geneva, Switzerland.ITU-T G.726-40,32,24,16 kbit / s adaptive differential pulse code modulation (ADPCM), Dec. 1990. ITU-T (Telecommunication Standardization Sector, International Telecommunication Union), Geneva, Switzerland.ITU-T P.830 Annex D-modified IRS send and receive characteristics, Feb. 1996. JP 2006-119301 A

上述のように、従来は、符号化処理でも復号処理でも、線形予測分析結果などに基づいて重みを変更するために、重みの付いていない同じ符号帳を用いていた。特許文献1では、符号化処理用に、あらかじめ重みを付けた符号帳を用意することで、符号化の品質を保ちながら演算量を低減した。しかし、特許文献1の方法では、復号処理には重みの付いていない符号帳が必要なので、重みを付けた符号帳を記録するためのメモリを確保しなければならなかった。   As described above, conventionally, in order to change the weight based on the linear prediction analysis result or the like in both the encoding process and the decoding process, the same codebook without the weight is used. In Patent Document 1, the amount of calculation is reduced while maintaining the quality of encoding by preparing a codebook that is pre-weighted for encoding processing. However, in the method of Patent Document 1, since a codebook with no weight is required for the decoding process, it is necessary to secure a memory for recording the weighted codebook.

本発明は、メモリの使用量を特許文献1よりも低減しながら、符号化の品質を従来と同等に保つこと、符号化の演算量は特許文献1と同等とすることを満足する復号技術、符号化技術を提供することを目的とする。   The present invention provides a decoding technique that satisfies the requirement that the encoding quality is kept equal to the conventional one while the amount of memory used is lower than that of Patent Literature 1, and that the amount of computation of the encoding is equivalent to that of Patent Literature 1. An object is to provide an encoding technique.

本発明の復号方法は、拡張符号分解ステップ、重み付き形状復号ステップ、重み付け除去演算ステップ、利得復号ステップ、乗算ステップを有する。拡張符号分解ステップは、入力された符号を、形状符号と利得符号に分解する。重み付き形状復号ステップは、重み付き形状符号帳を用いて、形状符号を重み付き形状ベクトルに変換する。重み付け除去演算ステップは、重み付き形状ベクトルの重みを除去し、形状ベクトルを出力する。利得復号ステップは、利得符号帳を用いて、利得符号を利得に変換する。乗算ステップは、形状ベクトルと利得とを乗算して復号信号を出力する。なお、重み付け除去演算ステップでは、符号化するときに用いる重み行列Wの逆行列Uを用いて重みつき形状ベクトルの重みを除去すればよい。   The decoding method of the present invention includes an extended code decomposition step, a weighted shape decoding step, a weighting removal calculation step, a gain decoding step, and a multiplication step. In the extended code decomposition step, the input code is decomposed into a shape code and a gain code. The weighted shape decoding step converts the shape code into a weighted shape vector using a weighted shape codebook. The weighting removal calculating step removes the weight of the weighted shape vector and outputs the shape vector. The gain decoding step converts the gain code into a gain using a gain codebook. The multiplication step multiplies the shape vector and the gain to output a decoded signal. In the weight removal operation step, the weight of the weighted shape vector may be removed using the inverse matrix U of the weight matrix W used for encoding.

また、本発明の符号化方法は、重み付けステップ、形状計算ステップ、利得計算ステップ、多重ステップを有する。形状計算ステップは、初期化サブステップ、内積サブステップ、理想利得計算サブステップ、距離計算サブステップ、確認サブステップを有する。そして、内積サブステップ、理想利得計算サブステップ、距離計算サブステップ、確認サブステップを、nが前記重み付き形状符号帳内の重み付き形状ベクトルの数Nまで繰り返し、繰り返し終了時のioptを形状符号Iとし、形状符号Iと繰り返し終了時の最適な理想利得g optを出力とする。利得計算ステップは、gを前記利得符号帳内のx番目に値が小さい利得とするときに、利得符号帳内の値の小さい利得から順番に、g opt<(g+gx+1)/2を満たす最初のxを探索し、xを利得符号Iとして出力する。 The encoding method of the present invention includes a weighting step, a shape calculating step, a gain calculating step, and a multiplexing step. The shape calculation step includes an initialization substep, an inner product substep, an ideal gain calculation substep, a distance calculation substep, and a confirmation substep. Then, the inner product sub-step, ideal gain calculation sub-step, distance calculation sub-step, and confirmation sub-step are repeated until n is the number N of weighted shape vectors in the weighted shape codebook, and i opt at the end of the iteration is shaped It is assumed that the code is Is , and the shape code Is and the optimum ideal gain g to opt at the end of the repetition are output. In the gain calculation step, when g x is the gain having the x-th smallest value in the gain codebook, the order of g to opt <(g x + g x + 1 ) / The first x satisfying 2 is searched, and x is output as the gain code Ig .

本発明の復号方法によれば、復号に重み付き形状符号帳を用いることができるので、符号化のときに用いた重み付き形状符号帳を復号のときにも利用できる。よって、重み付きの形状符号帳をメモリに記録する際には、重み付きでない形状符号帳を記録する必要がない。双方向通信時には符号化器と復号器の両方を同時に備える必要があるため、特許文献1の符号化方式と組み合わせれば、符号化器と復号器の符号帳が共通となるため、現実に必要とされるメモリ使用量を大幅に低減しながら、符号化の品質を保つこと、符号化の演算量を低減することを満足する復号技術、符号化技術を提供できる。   According to the decoding method of the present invention, since a weighted shape codebook can be used for decoding, the weighted shape codebook used for encoding can also be used for decoding. Therefore, when recording a weighted shape codebook in the memory, there is no need to record a non-weighted shape codebook. Since it is necessary to provide both an encoder and a decoder at the same time in bidirectional communication, the codebook of the encoder and the decoder becomes common when combined with the encoding method of Patent Document 1, so it is actually necessary. It is possible to provide a decoding technique and an encoding technique that satisfy the requirements of maintaining the quality of encoding and reducing the amount of calculation of encoding while greatly reducing the amount of memory used.

[第1実施形態]
[符号化装置]
図2に第1実施形態の符号化装置の機能構成例を示す。第1実施形態の符号化装置は、基本符号化器910、基本復号器920、加算部930、拡張符号化器100から構成される。基本符号化器910は、G.711やG. 726などの従来の波形符号化方式の符号化器を用いればよい。基本復号器920は、基本符号化器910に対応する復号器である。基本符号化器910は、入力信号sを符号化し、基本符号Iを出力する。基本復号器920は、基本符号Iを復号する。加算部930は、復号された信号と入力信号との差(基本符号化の量子化雑音)を求める。拡張符号化器100は、基本符号化の量子化雑音(基本雑音信号e)を符号化する。拡張符号化器は、実時間処理を行う場合であれば、8サンプル(1ms)〜160サンプル(20ms)の短時間の処理フレームごとに処理を行う。このときの処理フレームのサンプル数をKとした場合、基本雑音信号eは、K次元のベクトルで表現できる。符号化装置への入力信号は、例えば8kHzでサンプリングされた3.4kHz帯域(電話帯域)の音声デジタル信号である。実時間処理を行わないのであれば、メモリの許す範囲内で一括処理してもよい。
[First Embodiment]
[Encoding device]
FIG. 2 shows a functional configuration example of the encoding apparatus according to the first embodiment. The encoding apparatus according to the first embodiment includes a basic encoder 910, a basic decoder 920, an adder 930, and an extended encoder 100. The basic encoder 910 may be a conventional waveform encoding encoder such as G.711 or G.726. The basic decoder 920 is a decoder corresponding to the basic encoder 910. Basic encoder 910 encodes the input signal s, and outputs the base code I b. Elementary decoders 920 decodes the base code I b. The adding unit 930 obtains a difference (basic coding quantization noise) between the decoded signal and the input signal. The extension encoder 100 encodes quantization noise (basic noise signal e) of basic encoding. If real-time processing is performed, the extension encoder performs processing for each short processing frame of 8 samples (1 ms) to 160 samples (20 ms). If the number of samples of the processing frame at this time is K, the basic noise signal e can be expressed by a K-dimensional vector. The input signal to the encoding device is an audio digital signal in the 3.4 kHz band (telephone band) sampled at 8 kHz, for example. If real-time processing is not performed, batch processing may be performed within the range allowed by the memory.

本発明は、図2の符号化装置の中の特に拡張符号化器100に関するので、以下では拡張符号化器100について説明する。図3は、拡張符号化器100の処理フローの例である。拡張符号化器100は、重み付け部110、形状計算部120、利得計算部130、多重化部140、重み付き形状符号帳150、重み付き形状パワ逆数帳160、利得符号帳170から構成される。重み付き形状符号帳150には、N個の重み付き形状ベクトルWc,…,Wcが記録されている。重み付き形状ベクトルは、それぞれK+rサンプルの重み付き形状信号からなるK+r次元のベクトルである。ここで、rは重み付けフィルタのタップ数であり、後述する式(2)の重み付けの場合は1である。重み付き形状パワ逆数帳160には、重み付き形状ベクトルのノルムの逆数(1/‖Wc),…,(1/‖Wc)が記録されている。利得符号帳170には、利得g,…,gが記録されている。重み付け部110は、基本雑音信号(拡張符号化器100に対する入力信号)eに重みを付与し、重み付き雑音信号Weを出力する(S110)。形状計算部120は、重み付き雑音信号Weとの距離が最小となるように、重み付き形状符号帳150内の重み付き形状ベクトルWc(nは1〜Nの整数、Nは重み付き形状符号帳に格納されている重み付き形状ベクトルの個数)を選定するとともに最適な理想利得g optを求め、当該重み付き形状ベクトルを示す形状符号Iと最適な理想利得g optとを出力する(S120)。利得計算部130は、最適な理想利得g optとの距離が最小となるように、利得符号帳170内の利得g(mは1〜Mの整数、Mは利得符号帳に格納されている利得の個数)を選定し、当該利得を示す利得符号Iを出力する(S130)。多重化部140は、形状符号Iと利得符号Iとを多重化して、符号Iを出力する(S140)。以下では、重み付け部110、形状計算部120、利得計算部130について詳細に説明する。 Since the present invention particularly relates to the extension encoder 100 in the encoding apparatus of FIG. 2, the extension encoder 100 will be described below. FIG. 3 is an example of a processing flow of the extension encoder 100. The extended encoder 100 includes a weighting unit 110, a shape calculation unit 120, a gain calculation unit 130, a multiplexing unit 140, a weighted shape codebook 150, a weighted shape power reciprocal book 160, and a gain codebook 170. In the weighted shape codebook 150, N weighted shape vectors Wc 1 ,..., Wc N are recorded. Each weighted shape vector is a K + r-dimensional vector composed of weighted shape signals of K + r samples. Here, r is the number of taps of the weighting filter, and is 1 in the case of weighting according to equation (2) described later. In the weighted shape power reciprocal book 160, reciprocals of norms of weighted shape vectors (1 / ‖Wc 12 ), ..., (1 / ‖Wc N2 ) are recorded. Gains g 1 ,..., G M are recorded in gain codebook 170. The weighting unit 110 assigns a weight to the basic noise signal (input signal to the extension encoder 100) e and outputs a weighted noise signal We (S110). Shape calculation unit 120, as a distance between the weighted noise signal We is minimized, weighted shape vector Wc n (n is an integer 1~N in weighted shape codebook 0.99, N is the weighted coded shape determine the optimum ideal gain g ~ opt with selecting the number) of the weighted shape vectors stored in the book, and outputs the coded shape I s and optimal ideal gain g ~ opt indicating the weighted shape vector (S120). The gain calculator 130 stores the gain g m in the gain codebook 170 (m is an integer from 1 to M, and M is stored in the gain codebook so that the distance from the optimal ideal gain g to opt is minimized. select a gain number of) that are, for outputting a gain code I g indicating the gain (S130). Multiplexer 140, and a coded shape I s and the gain code I g are multiplexed, and outputs the code I e (S140). Hereinafter, the weighting unit 110, the shape calculation unit 120, and the gain calculation unit 130 will be described in detail.

重み付け部110
重み付け部110は、基本雑音信号(拡張符号化器100に対する入力信号)eに重みを付与し、重み付き雑音信号Weを出力する(S110)。具体的には、例えば、

Figure 2008289085
と表現されるFIRフィルタを用いる方法がある。このフィルタは、数学的には(K+r)行K列の行列として次のように表現できる。
Figure 2008289085
式(1)の場合は1タップのフィルタであるため、r=1である。重みを付与する演算はこの行列Wを基本雑音信号eに乗じ、重み付き雑音信号Weを出力する演算である。すなわち畳み込み演算である。なお、例えば、bの値として0.550107181を用いた場合のフィルタの周波数特性を図4に示す。図4(A)は振幅の周波数特性、図4(B)は位相の周波数特性を示している。このようなフィルタ(重み付け)を用いることによって、基本雑音信号eの低域成分は大幅に減衰され、高域を重視するため、拡張符号化器100では高域の雑音を低減できる。なお、入力信号が音声でない場合には、入力信号の特性に合わせたフィルタを用意すればよい。また、このフィルタはrが1よりも大きい高次のフィルタとしてもよい。 Weighting unit 110
The weighting unit 110 assigns a weight to the basic noise signal (input signal to the extension encoder 100) e and outputs a weighted noise signal We (S110). Specifically, for example,
Figure 2008289085
There is a method using an FIR filter expressed as: This filter can be expressed mathematically as a matrix of (K + r) rows and K columns as follows.
Figure 2008289085
In the case of Expression (1), since it is a one-tap filter, r = 1. The operation for assigning a weight is an operation for multiplying the basic noise signal e by this matrix W and outputting a weighted noise signal We. That is, a convolution operation. For example, FIG. 4 shows the frequency characteristics of the filter when 0.550107181 is used as the value of b. 4A shows the frequency characteristics of the amplitude, and FIG. 4B shows the frequency characteristics of the phase. By using such a filter (weighting), the low frequency component of the basic noise signal e is greatly attenuated and the high frequency is emphasized. Therefore, the extended encoder 100 can reduce high frequency noise. If the input signal is not voice, a filter that matches the characteristics of the input signal may be prepared. Further, this filter may be a higher-order filter in which r is larger than 1.

形状計算部120
形状計算部120は、重み付き雑音信号Weと重み付き形状符号帳150内の重み付き形状ベクトルWc(nは1〜Nの整数)に最適な理想利得g optを乗じたベクトルとの距離Dが最小となるように、重み付き形状ベクトルWcと最適な理想利得g optを選定する(S120)。ただし、理想利得とは、量子化される前の利得(計算によって求めた利得)をさしている。また、最適な理想利得とは、各重み付き形状ベクトルWcと重み付き雑音信号Weとの距離Dを最小にできる理想利得である。
Shape calculator 120
Shape calculation unit 120, the distance between the vector (n is an integer of 1 to N) weighted shape vector Wc n weighted noise signal We and the weighted shape codebook 150 multiplied by the optimal ideal gain g ~ opt to as D ~ is minimized, selecting the weighted shape vector Wc n and optimal ideal gain g ~ opt (S120). However, the ideal gain refers to the gain before quantization (gain obtained by calculation). Further, the optimal ideal gain, is ideal gain can be minimized distance D ~ of the respective weighted shape vector Wc n and weighted noise signal We.

ここで、距離Dは、次のように表現できる。
=‖We−g optWc (3)
距離Dを最小にする理想利得g optは、距離Dを理想利得g optで偏微分した値を0にするので、

Figure 2008289085
が成り立つ。なお、式中のtは、行列ないしはベクトルの転置を表す。この式をg optについて解くと、
Figure 2008289085
となる。g optを式(3)に代入すると、次式となる。
Figure 2008289085
右辺の第1項‖We‖は、Wcに対して不変であるため、定数項である。したがって、右辺第2項を最大にすることが、距離Dを最小とすることになる。そこで、拡張符号化器100では、距離dを次式のように定義し、距離dが最大となる重み付き形状ベクトルWcと最適な理想利得g optを選定する。
Figure 2008289085
Here, the distance D ~ can be expressed as follows.
D ~ = ‖We-g ~ opt Wc n ‖ 2 (3)
Distance D ~ ideal gain g ~ to minimize opt, since the distance obtained by partially differentiating D ~ the ideal gain g ~ opt value of 0
Figure 2008289085
Holds. Note that t in the equation represents transposition of a matrix or a vector. Solving this equation for g ~ opt ,
Figure 2008289085
It becomes. When the g ~ opt into equation (3), the following equation.
Figure 2008289085
The first term ‖We‖ 2 on the right side are the invariant to Wc n, constant terms. Therefore, maximizing the second term on the right side becomes the distance D ~ to be minimized. Therefore, the extension encoder 100, the distance d s is defined as: the distance d s to select the most ideal gain g ~ opt and weighted shape vector Wc n which maximizes.
Figure 2008289085

次に具体的な形状計算部120の構成の例を示す。形状計算部120は、図2に示すように初期化手段121、内積手段122、理想利得計算手段123、距離計算手段124、確認手段125を備えている。各手段の処理は、図3のS120の内部に示されており、次のようになる。   Next, a specific example of the configuration of the shape calculation unit 120 is shown. As shown in FIG. 2, the shape calculation unit 120 includes an initialization unit 121, an inner product unit 122, an ideal gain calculation unit 123, a distance calculation unit 124, and a confirmation unit 125. The processing of each means is shown in S120 of FIG. 3 and is as follows.

初期化手段121は、n=1、dsmax=0とする(S121)。内積手段122は、重み付き形状符号帳150内のn番目の重み付き形状ベクトルWcと重み付き雑音信号Weとの内積結果(Wc(We)を、スカラ変数qとして記録する(S122)。理想利得計算手段は、重み付き形状パワ逆数帳160内のn番目の要素(1/‖Wc)と、変数qとの積を、理想利得g として記録する(S123)。距離計算手段124は、理想利得g と変数qの積を、距離dとして記録する(S124)。なお、q=(Wc(We)は重み付き形状ベクトルと重み付き雑音信号の内積であり、式(5)の分子と同じであるため、dは、理想利得g と変数qの積として求めることができる。確認手段125は、dsmax<dならば、dをdsmax、nを最適な符号iopt、g を最適な理想利得g optとする(S1251、S1252)。形状計算部120は、nがN(重み付き形状符号帳の要素の数)よりも小さければ、n=n+1としてステップS122に戻る(S1261、S1262)。n=Nならば、繰り返し終了時のioptを形状符号Iとし、形状符号Iと繰り返し終了時の最適な理想利得g optを出力とする(S1263)。 The initialization unit 121 sets n = 1 and d smax = 0 (S121). The inner product means 122 records the inner product result (Wc n ) t (We) of the nth weighted shape vector Wcn in the weighted shape codebook 150 and the weighted noise signal We as a scalar variable q n ( S122). Ideal gain calculating means, the n-th element of the weighted shape power reciprocal Book 160 (1 / ‖Wc n2), the product of the variables q n, is recorded as an ideal gain g ~ n (S123). The distance calculation unit 124 records the product of the ideal gains g to n and the variable q n as the distance d s (S124). Note that q n = (Wc n ) t (We) is the inner product of the weighted shape vector and the weighted noise signal, and is the same as the numerator of Expression (5), so d s is the ideal gain g to n it can be obtained as the product of the variable q n. If d smax <d s , the confirmation unit 125 sets d s to d smax , n to the optimal code i opt , and g to n to the optimal ideal gain g to opt (S 1251, S 1252). If n is smaller than N (the number of elements in the weighted shape codebook), the shape calculation unit 120 sets n = n + 1 and returns to step S122 (S1261, S1262). If n = N, the i opt at repeat end a shape code I s, and outputs the coded shape I s and optimal ideal gain g ~ opt for repeated at the end (S1263).

形状計算部120は、このように距離dが理想利得g と変数qの積として求めることができることを利用しているので、重み付き形状ベクトルWcと最適な理想利得g optを選定するための演算量を特許文献1よりも低減できる。 Shape calculation unit 120, the use of the fact that it is possible in this way the distance d s is determined as the product of the ideal gain g ~ n and variables q n, weighted shape vector Wc n and optimal ideal gain g ~ opt The amount of calculation for selecting can be reduced as compared with Patent Document 1.

利得計算部130
利得計算部130は、最適な理想利得g optとの距離Dが最小となるように、利得符号帳170内の利得g(mは1〜Mの整数)を選定し、当該利得を示す利得符号Iを出力する。(S130)。ここで、距離Dは、
D=‖We−gWc (8)
である。そして、距離d
=‖g opt−g (9)
とし、距離dが最小となる利得gを選定する。
Gain calculation unit 130
The gain calculation unit 130 selects the gain g m (m is an integer of 1 to M) in the gain codebook 170 so that the distance D from the optimum ideal gain g to opt is minimized, and indicates the gain. The gain code Ig is output. (S130). Here, the distance D is
D = ‖We-g m Wc n2 (8)
It is. Then, the distance d g is changed to d g = ‖ g to opt g m2 (9)
And a gain g m that minimizes the distance d g is selected.

利得計算部130は、探索手段135を備えている。探索手段135は、利得符号帳170内のx番目に値が小さい利得gと、x+1番目に値が小さい利得gx+1を用いて、利得g(mは1〜Mの整数)を選定する。例えば、利得符号帳内の値の小さい利得から順番に、
opt<(g+gx+1)/2 (10)
を満足するかを確認する。そして、最初に式(10)を満足するxを探索する。
The gain calculation unit 130 includes search means 135. Search means 135 selects gain g m (m is an integer from 1 to M) using gain g x having the smallest value in x in gain codebook 170 and gain g x + 1 having the smallest value in x + 1. . For example, in order from the smallest gain in the gain codebook,
g to opt <(g x + g x + 1 ) / 2 (10)
Check if you are satisfied. First, x that satisfies Expression (10) is searched.

具体的な探索処理の例は次のとおりである。探索手段135は、x=1とする(S131)。式(10)を満足するかを確認する(S132)。ステップS132がNoならば、x=x+1とする(S133)。xがM(Mは、利得符号帳170内の利得gの数)よりも小さいかを確認する(S134)。ステップS134がYesの場合はステップS132に戻る。ステップS132がYesの場合とステップS134がNoの場合は、xを利得符号Iとして出力する(S135)。
利得計算部130は、このように式(10)を利用して計算するので、演算量を特許文献1よりも低減できる。
A specific example of the search process is as follows. The search means 135 sets x = 1 (S131). It is confirmed whether the expression (10) is satisfied (S132). If step S132 is No, x = x + 1 is set (S133). x is M (M is the number of gain g m in the gain codebook 170) checks whether less than (S134). If step S134 is Yes, the process returns to step S132. Step S132 is the case with step S134: Yes If No, and outputs a x as a gain code I g (S135).
Since the gain calculation unit 130 calculates using the formula (10) in this way, the amount of calculation can be reduced as compared with Patent Document 1.

[復号装置]
図5に第1実施形態の復号装置の構成例を示す。復号装置は、基本復号器920と加算部940と拡張復号器200から構成される。基本復号器920は、基本符号化器910に対応する復号器である。基本復号器920は、基本符号Iを再生基本信号S^に復号する。拡張復号器200は、拡張符号Iを再生雑音信号e^に復号する。加算部940は、再生基本信号S^と再生雑音信号e^を加算し、再生信号s^を出力する。
[Decoding device]
FIG. 5 shows a configuration example of the decoding apparatus according to the first embodiment. The decoding apparatus includes a basic decoder 920, an adder 940, and an extended decoder 200. The basic decoder 920 is a decoder corresponding to the basic encoder 910. The basic decoder 920 decodes the basic code Ib into the reproduction basic signal S ^ b . The extended decoder 200 decodes the extended code I e into a reproduced noise signal e ^. The adder 940 adds the reproduction basic signal S ^ b and the reproduction noise signal e ^ and outputs a reproduction signal s ^.

本発明は、図5の復号装置の中の特に拡張復号器200に関するので、以下では拡張復号器200について説明する。図6は、拡張復号器200の処理フローの例である。拡張復号器200は、分解部210、重み付き形状復号部220、重み付け除去演算部230、利得復号部240、乗算部250、重み付き形状符号帳150、利得符号帳170で構成される。第1実施形態の拡張復号器200では、復号用の形状符号帳にも重み付きの符号帳を用いることができる点が特許文献1と大きく異なる点である。重み付きの符号帳を用いることができるので、符号化に用いた重み付き形状符号帳150を復号にも使用できる。   Since the present invention particularly relates to the extended decoder 200 in the decoding apparatus of FIG. 5, the extended decoder 200 will be described below. FIG. 6 is an example of a processing flow of the extended decoder 200. The extended decoder 200 includes a decomposition unit 210, a weighted shape decoding unit 220, a weighting removal calculation unit 230, a gain decoding unit 240, a multiplication unit 250, a weighted shape codebook 150, and a gain codebook 170. The extended decoder 200 according to the first embodiment is significantly different from Patent Document 1 in that a weighted codebook can be used for the shape codebook for decoding. Since a weighted codebook can be used, the weighted shape codebook 150 used for encoding can also be used for decoding.

分解部210は、入力された符号Iを、形状符号Iと利得符号Iに分解する(S210)。重み付き形状復号部220は、重み付き形状符号帳150を用いて、形状符号Iを重み付き形状ベクトルWc(nは1〜Nの整数、Nは重み付き形状符号帳に格納されている重み付き形状ベクトルの個数)に変換する。重み付け除去演算部230は、重み付き形状ベクトルWcの重みWを除去し、形状ベクトルcを出力する(S230)。利得復号部240は、利得符号帳170を用いて、利得符号Iを利得g(mは1〜Mの整数、Mは利得符号帳に格納されている利得の個数)に変換する。乗算部250は、形状ベクトルcと利得gとを乗算して、復号信号(再生雑音信号)e^を出力する(S250)。 Decomposition unit 210 decomposes the input code I e, the coded shape I s and the gain code I g (S210). Weighted shape decoding unit 220 uses the weighted shape codebook 150, integers coded shape I s weighted shape vector Wc n (n a is 1 to N, N is stored in the weighted shape codebook Number of weighted shape vectors). Weighting removal operation unit 230 removes the weight W of a weighted shape vector Wc n, and outputs the shape vector c n (S230). Gain decoding section 240, by using a gain codebook 170, and converts the gain code I g gain g m (m is an integer of 1 to M, M is the number of gain stored in the gain codebook) to. Multiplication section 250 multiplies the shape vector c n and the gain g m, the decoded signal (reproduced noise signal) e ^ (S250).

拡張復号器200が重み付きの符号帳を用いることができる理由は、重み付け除去演算部230にある。例えば、重み付け除去演算部230では、符号化のときに用いた重みを付与する行列(フィルタ)の逆行列(逆フィルタ)を用いればよい。例えば、式(2)の行列Wの逆行列Uは、

Figure 2008289085
と表現されるK行(K+r)列の行列である。式(11)の場合は、1タップのフィルタであるため、r=1である。重み付け除去は、重み付き形状ベクトルにこの逆行列Uを乗算し、形状ベクトルを出力することである。 The reason why the extended decoder 200 can use a weighted codebook resides in the weight removal operation unit 230. For example, the weight removal arithmetic unit 230 may use an inverse matrix (inverse filter) of a matrix (filter) to which weights used for encoding are applied. For example, the inverse matrix U of the matrix W in equation (2) is
Figure 2008289085
Is a matrix of K rows (K + r) columns. In the case of Expression (11), since it is a 1-tap filter, r = 1. The weight removal is to multiply the weighted shape vector by this inverse matrix U and output the shape vector.

式(11)の逆行列を用いて重み付き形状ベクトルWcの重みWを除去し、形状ベクトルcを出力するために、重み付け除去演算部230は、初期化手段231、加算手段232、除算手段233、更新手段234を備えている。初期化手段231は、k=1、f=0とする(S231)。加算手段は、重み付き形状ベクトルWcのk番目の要素fをfに加算し、新しいfとする(S232)。除算手段233は、形状ベクトルのn番目の要素pを、p=f/bとし、記録する(S233)。更新手段は、kがKよりも小さい場合には、kに1を加算し、新しいkとする(S2341、S2342)。kがK(Kは形状ベクトルのベクトル長)に等しい場合には、処理を終了する。このようにステップS232〜S2342を、p,…,p(ただし、Kは形状ベクトルのベクトル長)のすべてを求めるまで繰り返す。 Removing the weight W of a weighted shape vector Wc n by using the inverse matrix of Equation (11), in order to output the shape vector c n, the weighting removal operation unit 230, the initialization unit 231, addition unit 232, division Means 233 and update means 234 are provided. The initialization unit 231 sets k = 1 and f a = 0 (S231). Addition means, the k th element f k of the weighted shape vector Wc n is added to f a, the new f a (S232). The dividing unit 233 records the n-th element p k of the shape vector as p k = f a / b (S233). When k is smaller than K, the updating unit adds 1 to k to obtain a new k (S2341, S2342). If k is equal to K (K is the vector length of the shape vector), the process ends. In this way, steps S232 to S2342 are repeated until all of p 1 ,..., P K (where K is the vector length of the shape vector) is obtained.

第1実施形態の復号装置は、このように重み付け除去演算部230があるため、符号化器と同じ重み付き形状符号帳150を用いることができる。そして、符号化に用いる重み付き形状符号帳を復号にも用いれば、符号化装置と復号装置の両方を備える双方向通信器の符号帳のためのメモリの使用量を、大幅に低減(具体的には、ほぼ半減)できる。   Since the decoding apparatus according to the first embodiment includes the weight removal operation unit 230 as described above, the same weighted shape codebook 150 as that of the encoder can be used. If the weighted shape codebook used for encoding is also used for decoding, the amount of memory used for the codebook of the bidirectional communication device including both the encoding device and the decoding device is significantly reduced (specifically Can be almost halved).

また、一般的に復号に要する演算量は符号探索を行う符号化時に要する演算量より著しく小さい。第1実施形態の場合、符号化に要する演算量と復号に要する演算量は、ほぼN:1の関係にある。つまり、復号のための演算量が微妙に増えたとしても、符号化を含めた全体の演算量にはほとんど影響がない。上述のように第1実施形態の符号化装置は、品質を特許文献1と同等に保ちながら演算量を減らしている。したがって、全体的には、メモリの使用量を大幅に減らしながら、演算量も品質も同等を保つことができる。   In general, the amount of calculation required for decoding is significantly smaller than the amount of calculation required for encoding for code search. In the case of the first embodiment, the amount of calculation required for encoding and the amount of calculation required for decoding are substantially in a relationship of N: 1. That is, even if the calculation amount for decoding increases slightly, there is almost no influence on the total calculation amount including encoding. As described above, the encoding device of the first embodiment reduces the amount of calculation while maintaining the quality equivalent to that of Patent Document 1. Therefore, overall, the amount of calculation and the quality can be kept equal while greatly reducing the amount of memory used.

また、図7には、本発明の効果を示すために、基本符号部にG.711を用いて第1実施形態の符号化装置と復号装置を用いた場合の再生信号(復号信号)のスペクトル解析例を示す。図7(A)は原音声(破線)とその音声を、G.711を用いて符号化して復号した再生音(実線)、図7(B)は原音声(破線)とその音声を第1実施形態の符号化装置を用いて符号化して復号した再生音(破線)のスペクトル解析結果である。G.711単体を用いた場合では、現音に存在する高域の調波構造が量子化雑音に埋もれているが、第1実施形態を用いれば高域(2500KHz以上)の調波構造が再現されていることが分かる。この結果は、特許文献1と同等である。したがって、符号化と復号の品質を維持しながら演算量を少なくできる。   FIG. 7 shows G. in the basic code part in order to show the effect of the present invention. 7A shows an example of spectrum analysis of a reproduction signal (decoded signal) when the encoding apparatus and decoding apparatus of the first embodiment are used. FIG. 7A shows the original voice (dashed line) and its voice. Reproduced sound (solid line) encoded using 711 and decoded (solid line), FIG. 7B shows the original sound (broken line) and the reproduced sound obtained by encoding and decoding the sound using the encoding device of the first embodiment (broken line). ) Spectral analysis results. G. When the 711 unit is used, the high-frequency harmonic structure existing in the current sound is buried in the quantization noise. However, if the first embodiment is used, the high-frequency (2,500 KHz or higher) harmonic structure is reproduced. I understand that. This result is equivalent to Patent Document 1. Therefore, the amount of calculation can be reduced while maintaining the quality of encoding and decoding.

[第2実施形態]
[符号化装置]
図8に第2実施形態の符号化装置の機能構成例を示す。第1実施形態の利得計算部130は、利得符号帳170から利得符号Iを探索した。第2実施形態の利得計算部330は、計算により利得符号Iを求める。そこで、第2実施形態の拡張符号化器300は、利得計算部130と利得符号帳170の代わりに、利得計算部330を備えている。また、利得計算部330は、量子化手段335を有している。その他の構成は、図2と同じである。また、図9に第2実施形態の拡張符号化器300の処理フローの例を示す。図3に示した第1実施形態の拡張符号化器100の処理フローと、ステップS110、S120、S140は同じである。以下では、第1実施形態との違いである利得計算部330について説明する。
[Second Embodiment]
[Encoding device]
FIG. 8 shows a functional configuration example of the encoding apparatus according to the second embodiment. Gain calculating section 130 of the first embodiment, it explored the gain code I g from the gain codebook 170. Gain calculator 330 of the second embodiment determines the gain code I g by calculation. Therefore, the extension encoder 300 according to the second embodiment includes a gain calculation unit 330 instead of the gain calculation unit 130 and the gain codebook 170. The gain calculation unit 330 includes a quantization unit 335. Other configurations are the same as those in FIG. FIG. 9 shows an example of the processing flow of the extension encoder 300 of the second embodiment. The processing flow of the extension encoder 100 of the first embodiment shown in FIG. 3 is the same as steps S110, S120, and S140. Below, the gain calculation part 330 which is the difference with 1st Embodiment is demonstrated.

利得計算部330の量子化手段335は、射影関数f(x)を用いて最適な理想利得g optから、利得符号Iを求める。射影関数f(x)は、直線、曲線、あるいは直線と曲線を組み合わせた連続関数である。量子化手段335は、まず射影関数の演算f(g opt)を行う(S331)。次に、四捨五入演算を行い次のように利得符号Iを求める(S332)。
=round(f(g opt)) (12)
利得計算部330は、求めた利得符号Iを出力する(S333)。
Quantization means of the gain calculator 330 335, the optimum ideal gain g ~ opt using a projection function f (x), determining the gain code I g. The projection function f (x) is a straight line, a curve, or a continuous function that combines a straight line and a curve. The quantization means 335 first performs a projection function calculation f (g to opt ) (S331). Next, the rounding operation as follows seek gain code I g (S332).
I g = round (f (g ~ opt)) (12)
Gain calculating unit 330 outputs a gain code I g obtained (S333).

射影関数の具体例としては、次式のような双曲線がある。

Figure 2008289085
そして、例えば、利得符号の数Mが64の場合は、
a=1300
b=−1
c=1.07
d=19.27
とすればよい。なお、射影関数は、連続関数であればよく、xの値に応じて複数の関数を切り替えてもよい。
利得計算部330は、このように射影関数を利用して計算するので、演算量を特許文献1よりも低減できる。また、利得符号帳が必要ないので、メモリ使用量を低減できる。 As a specific example of the projection function, there is a hyperbola as follows.
Figure 2008289085
For example, when the number M of gain codes is 64,
a = 1300
b = -1
c = 1.07
d = 19.27
And it is sufficient. The projection function may be a continuous function, and a plurality of functions may be switched according to the value of x.
Since the gain calculation unit 330 calculates using the projection function in this way, the amount of calculation can be reduced as compared with Patent Document 1. Further, since no gain codebook is required, the amount of memory used can be reduced.

[復号装置]
図10に第2実施形態の復号装置の構成例を示す。第1実施形態の利得復号部240は、利得符号帳170を用いて利得gを求めた。第2実施形態の利得復号部440は、計算により利得gを求める。そこで、第2実施形態の拡張復号器400は、利得復号部240と利得符号帳170の代わりに、利得復号部440を備えている。その他の構成は、図5と同じである。また、図11に第2実施形態の拡張復号器400の処理フローの例を示す。図6に示した第1実施形態の拡張復号器200の処理フローと、ステップS210、S220、S230、S250は同じである。以下では、第1実施形態との違いである利得復号部440について説明する。
[Decoding device]
FIG. 10 shows a configuration example of the decoding apparatus according to the second embodiment. Gain decoding unit 240 of the first embodiment, to determine the gain g m using a gain codebook 170. The gain decoding unit 440 of the second embodiment obtains the gain g m by calculation. Therefore, the extended decoder 400 according to the second embodiment includes a gain decoding unit 440 instead of the gain decoding unit 240 and the gain codebook 170. Other configurations are the same as those in FIG. FIG. 11 shows an example of the processing flow of the extended decoder 400 of the second embodiment. The processing flow of the extended decoder 200 of the first embodiment shown in FIG. 6 is the same as steps S210, S220, S230, and S250. Below, the gain decoding part 440 which is a difference with 1st Embodiment is demonstrated.

利得復号部440は、符号化で用いた射影関数の逆関数f−1(y)を用いて、利得符号Iから利得gを求める。具体的には、利得復号部440は、
=f−1(I) (14)
の演算によって利得gを求める(S440)。
Gain decoding section 440, inverse projection functions used in coding f -1 with (y), determining the gain g m from the gain code I g. Specifically, the gain decoding unit 440
g m = f −1 (I g ) (14)
The gain g m is obtained by the calculation of (S440).

射影関数として式(13)の双曲線を用いた場合であれば、逆関数は、

Figure 2008289085
このときのa、b、c、dは、利得計算部330と同じ値を用いる。 If the hyperbola of equation (13) is used as the projection function, the inverse function is
Figure 2008289085
At this time, the same values as those of the gain calculation unit 330 are used for a, b, c, and d.

このような構成と処理方法であれば、第1実施形態と同程度の演算量で、メモリ使用量を低減できる。また、符号化と復号の品質にかかわる処理は第1実施形態と同じなので、図7に示したスペクトル解析結果と同じ結果が期待できる。したがって、したがって、符号化と復号の品質を維持しながら演算量を少なくできる。   With such a configuration and processing method, the memory usage can be reduced with the same amount of computation as in the first embodiment. Further, since the processing related to the quality of encoding and decoding is the same as that in the first embodiment, the same result as the spectrum analysis result shown in FIG. 7 can be expected. Therefore, the amount of computation can be reduced while maintaining the quality of encoding and decoding.

[変形例]
本発明の復号方法の大切なポイントの1つは、ステップS220、S230である。また、これらのステップを実行するために必要な構成部は、重み付き形状復号部220、重み付き形状符号帳150、重み付け除去演算部230である。その他の構成部は、第1実施形態の復号装置(図5)や第2実施形態の復号装置(図10)に限定する必要はない。図12に第2実施形態の変形例の復号装置の機能構成例を示す。この構成では、図10の乗算部250の代わりに除算部650があり、加算部940の代わりに加算部640がある。除算部650は、再生基本信号s^を利得gで除算する。加算部640は、除算部650の出力s^/gと形状ベクトルcを加算し、再生信号e^’を得る。
[Modification]
One important point of the decoding method of the present invention is steps S220 and S230. Further, components necessary for executing these steps are a weighted shape decoding unit 220, a weighted shape codebook 150, and a weighting removal calculating unit 230. The other components need not be limited to the decoding device of the first embodiment (FIG. 5) or the decoding device of the second embodiment (FIG. 10). FIG. 12 shows a functional configuration example of a decoding device according to a modification of the second embodiment. In this configuration, there is a division unit 650 instead of the multiplication unit 250 in FIG. 10, and an addition unit 640 instead of the addition unit 940. The division unit 650 divides the reproduction basic signal ^ b by the gain g m . Adding section 640 adds the outputs s ^ b / g m and shape vector c n of the divider 650 to obtain a reproduction signal e ^ '.

図10の復号装置の再生信号e^は、形状ベクトルcと利得gとの積と再生基本信号s^との和である。したがって、再生信号e^と再生信号e^’とは、
e^’=e^/g (16)
の関係となる。つまり、再生信号e^’は、ボリュームは異なるが波形は再生信号e^と同じ信号である。符号化や復号の処理では再生される信号のボリュームは他の処理で調整されるものであり、波形が再生されていれば品質上は問題ない。したがって、図12に示した構成でも第2実施形態の復号装置と同等の効果を得ることができる。
^ Reproduced signal e of the decoding device in FIG. 10 is the sum of the product of the shape vector c n and the gain g m and the reproduction fundamental signal s ^ b. Therefore, the reproduction signal e ^ and the reproduction signal e ^ '
e ^ '= e ^ / g m (16)
It becomes the relationship. That is, the reproduction signal e ^ 'is the same signal as the reproduction signal e ^ although the volume is different. In the encoding and decoding processes, the volume of the reproduced signal is adjusted by other processes, and there is no problem in quality if the waveform is reproduced. Therefore, even with the configuration shown in FIG. 12, the same effect as that of the decoding device of the second embodiment can be obtained.

このように、図6や図11に示したステップS220、S230有する復号方法、図5や図10に示した重み付き形状復号部220、重み付き形状符号帳150、重み付け除去演算部230を備える復号装置であれば、本発明の効果を得ることができる。   As described above, the decoding method including steps S220 and S230 illustrated in FIGS. 6 and 11, the decoding including the weighted shape decoding unit 220, the weighted shape codebook 150, and the weighting removal calculating unit 230 illustrated in FIGS. 5 and 10. If it is an apparatus, the effect of this invention can be acquired.

図13に、コンピュータの機能構成例を示す。なお、本発明の符号化方法や復号方法は、コンピュータの記録部2020に、上記方法の各ステップを実行させるプログラムを読み込ませ、制御部2010、入力部2030、出力部2040などに動作させることで実施できる。また、コンピュータに読み込ませる方法としては、プログラムをコンピュータ読み取り可能な記録媒体に記録しておき、記録媒体からコンピュータに読み込ませる方法、サーバ等に記録されたプログラムを、電気通信回線等を通じてコンピュータに読み込ませる方法などがある。   FIG. 13 shows a functional configuration example of a computer. In the encoding method and decoding method of the present invention, a program for causing the recording unit 2020 of the computer to execute each step of the above method is read and operated by the control unit 2010, the input unit 2030, the output unit 2040, and the like. Can be implemented. In addition, as a method of causing the computer to read, the program is recorded on a computer-readable recording medium, and the program recorded on the server or the like is read into the computer through a telecommunication line or the like. There is a method to make it.

電話網などに用いられているIRS周波数特性を説明するための特性曲線図。The characteristic curve figure for demonstrating the IRS frequency characteristic used for the telephone network. 第1実施形態の符号化装置の機能構成例を示す図。The figure which shows the function structural example of the encoding apparatus of 1st Embodiment. 第1実施形態の符号化装置の拡張符号化器の処理フローの例を示す図。The figure which shows the example of the processing flow of the extended encoder of the encoding apparatus of 1st Embodiment. 重み付け部の周波数特性を示す図。The figure which shows the frequency characteristic of a weighting part. 第1実施形態の復号装置の機能構成例を示す図。The figure which shows the function structural example of the decoding apparatus of 1st Embodiment. 第1実施形態の復号装置の拡張復号器の処理フローの例を示す図。The figure which shows the example of the processing flow of the extended decoder of the decoding apparatus of 1st Embodiment. 基本符号部にG.711を用い、第1実施形態の符号化装置、復号装置を用いた場合の復号結果のスペクトル解析例を示す図。G. 7 is a diagram illustrating a spectrum analysis example of a decoding result when the encoding device and the decoding device according to the first embodiment are used. 第2実施形態の符号化装置の機能構成例を示す図。The figure which shows the function structural example of the encoding apparatus of 2nd Embodiment. 第2実施形態の符号化装置の拡張符号化器の処理フローの例を示す図。The figure which shows the example of the processing flow of the extended encoder of the encoding apparatus of 2nd Embodiment. 第2実施形態の復号装置の構成例を示す図。The figure which shows the structural example of the decoding apparatus of 2nd Embodiment. 第2実施形態の復号装置の拡張復号器の処理フローの例を示す図。The figure which shows the example of the processing flow of the extended decoder of the decoding apparatus of 2nd Embodiment. 第2実施形態の変形例の復号装置の機能構成例を示す図。The figure which shows the function structural example of the decoding apparatus of the modification of 2nd Embodiment. コンピュータの機能構成例を示す図。The figure which shows the function structural example of a computer.

符号の説明Explanation of symbols

100 拡張符号化器 110 重み付け部
120 形状計算部 121 初期化手段
122 内積手段 123 理想利得計算手段
124 距離計算手段 125 確認手段
130 利得計算部 135 探索手段
140 多重化部 150 重み付き形状符号帳
160 形状パワ逆数帳 170 利得符号帳
200 拡張復号器 210 分解部
220 形状復号部 230 除去演算部
231 初期化手段 232 加算手段
233 除算手段 234 更新手段
240 利得復号部 250 乗算部
DESCRIPTION OF SYMBOLS 100 Extended encoder 110 Weighting part 120 Shape calculation part 121 Initialization means 122 Inner product means 123 Ideal gain calculation means 124 Distance calculation means 125 Confirmation means 130 Gain calculation part 135 Search means 140 Multiplexing part 150 Weighted shape codebook 160 Shape Power reciprocal book 170 Gain code book 200 Extended decoder 210 Decomposition unit 220 Shape decoding unit 230 Removal operation unit 231 Initialization unit 232 Addition unit 233 Division unit 234 Update unit 240 Gain decoding unit 250 Multiplication unit

Claims (20)

形状ベクトルを示す形状符号を復号する復号方法であって、
重み付き形状符号帳を用いて、前記形状符号を重み付き形状ベクトルに変換する重み付き形状復号ステップと、
前記重み付き形状ベクトルの重みを除去し、形状ベクトルを出力する重み付け除去演算ステップと、
を有する復号方法。
A decoding method for decoding a shape code indicating a shape vector,
A weighted shape decoding step of converting the shape code into a weighted shape vector using a weighted shape codebook;
A weighting removal calculating step of removing weights of the weighted shape vector and outputting the shape vector;
A decryption method.
形状ベクトルを示す形状符号と利得を示す利得符号から構成される符号を復号する復号方法であって、
入力された符号を、形状符号と利得符号に分解する分解ステップと、
重み付き形状符号帳を用いて、前記形状符号を重み付き形状ベクトルに変換する重み付き形状復号ステップと、
前記重み付き形状ベクトルの重みを除去し、形状ベクトルを出力する重み付け除去演算ステップと、
前記利得符号を利得に変換する利得復号ステップと、
前記形状ベクトルと前記利得とを乗算して、復号信号を出力する乗算ステップと、
を有する復号方法。
A decoding method for decoding a code composed of a shape code indicating a shape vector and a gain code indicating a gain,
A decomposing step of decomposing the input code into a shape code and a gain code;
A weighted shape decoding step of converting the shape code into a weighted shape vector using a weighted shape codebook;
A weighting removal calculating step of removing weights of the weighted shape vector and outputting the shape vector;
A gain decoding step of converting the gain code into a gain;
A multiplication step of multiplying the shape vector and the gain and outputting a decoded signal;
A decryption method.
請求項1または2記載の復号方法であって、
前記重み付き形状符号帳が、符号化するときに用いる重み付き形状符号帳と同一である
ことを特徴とする復号方法。
The decoding method according to claim 1 or 2, comprising:
The decoding method according to claim 1, wherein the weighted shape codebook is the same as the weighted shape codebook used for encoding.
請求項1から3のいずれかに記載の復号方法であって、
前記重み付け除去演算ステップは、符号化するときに用いる重み行列Wの逆行列Uを前記重み付き形状ベクトルの重みに乗算した結果を、前記形状ベクトルとして出力するステップである
ことを特徴とする復号方法。
A decoding method according to any one of claims 1 to 3,
The weighting removal calculating step is a step of outputting, as the shape vector, a result obtained by multiplying the weight of the weighted shape vector by the inverse matrix U of the weight matrix W used for encoding. .
請求項4記載の復号方法であって、
前記逆行列Uが、
Figure 2008289085
と表現できる
ことを特徴とする復号方法。
The decoding method according to claim 4, wherein
The inverse matrix U is
Figure 2008289085
A decoding method characterized by being expressed as:
請求項5記載の復号方法であって、
前記重み付け除去演算ステップは、
k=1、f=0とする初期化サブステップと、
前記重み付き形状ベクトルのk番目の要素fをfに加算し、新しいfとする加算サブステップと、
前記形状ベクトルのk番目の要素pを、p=f/bとする除算サブステップと、
kに1を加算し、新しいkとする更新ステップと、
を有し、
前記加算サブステップと前記除算サブステップと前記更新ステップを、p,…,p(ただし、Kは形状ベクトルのベクトル長)のすべてを求めるまで繰り返す
ことを特徴とする復号方法。
The decoding method according to claim 5, wherein
The weighting removal calculating step includes:
an initialization sub-step with k = 1 and f a = 0;
An adding substep of component k f k of the weighted shape vector is added to f a, the new f a,
A division sub-step in which the k-th element p k of the shape vector is set to p k = f a / b;
an update step of adding 1 to k to give a new k;
Have
The decoding method, wherein the addition sub-step, the division sub-step, and the update step are repeated until all of p 1 ,..., P K (where K is a vector length of a shape vector) is obtained.
第1の符号化方法で符号化した符号(以下、「基本符号」という。)と、第1の符号化方法での符号化で生じた誤差を第2の符号化方法で符号化した符号(以下、「品質拡張符号」という。)を復号する復号方法であって、
品質拡張符号を復号して再生品質拡張信号を出力する品質拡張復号ステップとして、請求項1から6のいずれかに記載の復号方法の各ステップを有し、さらに、
基本符号を復号して再生基本信号を出力する基本復号ステップと、
前記再生基本信号と前記再生品質拡張信号とを加算して、再生信号を出力する加算ステップと
を有する復号方法。
A code encoded by the first encoding method (hereinafter referred to as a “basic code”) and a code obtained by encoding an error generated by the encoding by the first encoding method by the second encoding method ( Hereinafter, a decoding method for decoding “quality extension code”),
The quality extension decoding step of decoding a quality extension code and outputting a reproduction quality extension signal includes the steps of the decoding method according to any one of claims 1 to 6,
A basic decoding step of decoding a basic code and outputting a reproduced basic signal;
A decoding method comprising: an addition step of adding the reproduction basic signal and the reproduction quality extension signal to output a reproduction signal.
形状ベクトルを示す形状符号を復号する復号器であって、
形状符号と重み付き形状ベクトルとを対応させる重み付き形状符号帳と、
前記形状符号を、前記重み付き形状符号帳を用いて重み付き形状ベクトルに変換する重み付き形状復号部と、
前記重み付き形状ベクトルの重みを除去し、形状ベクトルを出力する重み付け除去演算部と、
を有する復号器。
A decoder for decoding a shape code indicating a shape vector,
A weighted shape codebook that associates shape codes with weighted shape vectors;
A weighted shape decoding unit that converts the shape code into a weighted shape vector using the weighted shape codebook;
Removing a weight of the weighted shape vector and outputting a shape vector;
A decoder.
形状ベクトルを示す形状符号と利得を示す利得符号から構成される符号を復号する復号器であって、
入力された符号を、形状符号と利得符号に分解する分解部と、
形状符号と重み付き形状ベクトルとを対応させる重み付き形状符号帳と、
前記形状符号を、前記重み付き形状符号帳を用いて重み付き形状ベクトルに変換する重み付き形状復号部と、
前記重み付き形状ベクトルの重みを除去し、形状ベクトルを出力する重み付け除去演算部と、
利得符号と利得とを対応させる利得符号帳と、
前記利得符号を、前記利得符号帳を用いて利得に変換する利得復号部と、
前記形状ベクトルと前記利得とを乗算して再生品質拡張信号を出力する乗算部と、
を有する復号器。
A decoder for decoding a code composed of a shape code indicating a shape vector and a gain code indicating a gain,
A decomposition unit that decomposes the input code into a shape code and a gain code;
A weighted shape codebook that associates shape codes with weighted shape vectors;
A weighted shape decoding unit that converts the shape code into a weighted shape vector using the weighted shape codebook;
Removing a weight of the weighted shape vector and outputting a shape vector;
A gain codebook that associates the gain code with the gain;
A gain decoding unit that converts the gain code into a gain using the gain codebook;
A multiplier that multiplies the shape vector and the gain to output a reproduction quality extension signal;
A decoder.
請求項8または9記載の復号器であって、
前記重み付き形状符号帳が、符号化するときに用いる重み付き形状符号帳と同一である
ことを特徴とする復号器。
The decoder according to claim 8 or 9, comprising:
The decoder according to claim 1, wherein the weighted shape codebook is the same as the weighted shape codebook used for encoding.
請求項8から10のいずれかに記載の復号器であって、
前記重み付け除去演算部は、符号化するときに用いる重み行列Wの逆行列Uを前記重み付き形状ベクトルの重みに乗算した結果を、前記形状ベクトルとして出力するものである
ことを特徴とする復号器。
A decoder according to any one of claims 8 to 10,
The weight removal operation unit outputs a result obtained by multiplying the weight of the weighted shape vector by the inverse matrix U of the weight matrix W used for encoding, as the shape vector. .
請求項11記載の復号器であって、
前記逆行列Uが、
Figure 2008289085
と表現できる
ことを特徴とする復号器。
The decoder according to claim 11, comprising:
The inverse matrix U is
Figure 2008289085
Decoder that can be expressed as
請求項12記載の復号器であって、
前記重み付け除去演算部は、
k=1、f=0とする初期化手段と、
前記重み付き形状ベクトルのk番目の要素fをfに加算し、新しいfとする加算手段と、
前記形状ベクトルのk番目の要素pを、p=f/bとする除算手段と、
kに1を加算し、新しいkとする更新手段と、
を有し
前記加算手段と前記除算手段と前記更新手段に、p,…,p(ただし、Kは形状ベクトルのベクトル長)のすべてを求めるまで繰り返えし処理させる
ことを特徴とする復号器。
The decoder according to claim 12, comprising:
The weight removal operation unit
initialization means for k = 1 and f a = 0;
Adding means for the k-th element f k of the weighted shape vector is added to f a, the new f a,
A dividing means for setting the k-th element p k of the shape vector to p k = f a / b;
an updating means for adding 1 to k and setting it as a new k;
It said updating means and said adding means and said dividing means has a, p 1, ..., p K ( although, K is the shape vector length of the vector), characterized in that to Kaee treated repeatedly until finding all Decoder.
第1の符号化方法で符号化した符号(以下、「基本符号」という。)と、第1の符号化方法での符号化で生じた誤差を第2の符号化方法で符号化した符号(以下、「品質拡張符号」という。)を復号する復号装置であって、
品質拡張符号を復号して再生品質拡張信号を出力する品質拡張復号器として、請求項8から13のいずれかに記載の復号器を備え、さらに、
基本符号を復号して再生基本信号を出力する基本復号器と、
前記再生基本信号と前記再生品質拡張信号とを加算して、再生信号を出力する加算部と
を有する
復号装置。
A code encoded by the first encoding method (hereinafter referred to as a “basic code”) and a code obtained by encoding an error generated by the encoding by the first encoding method by the second encoding method ( Hereinafter, it is a decoding apparatus that decodes “quality extension code”),
A decoder according to any one of claims 8 to 13, comprising a decoder according to any one of claims 8 to 13, as a quality extension decoder that decodes a quality extension code and outputs a reproduction quality extension signal.
A basic decoder for decoding a basic code and outputting a reproduced basic signal;
A decoding apparatus comprising: an adder that adds the reproduction basic signal and the reproduction quality extension signal and outputs a reproduction signal.
入力信号を、形状ベクトルを示す形状符号と利得を示す利得符号から構成される符号に変換する符号化方法であって、
入力信号eに重みを付与し、重み付き雑音信号Weを出力する重み付けステップと、
重み付き雑音信号Weとの距離が最小となるように、重み付き形状符号帳内の重み付き形状ベクトルWcを選定するとともに最適な理想利得g optを求め、当該重み付き形状ベクトルを示す形状符号Iと最適な理想利得g optとを出力する形状計算ステップと、
最適な理想利得g optとの距離が最小となるように、利得符号帳内の利得gを選定し、当該利得を示す利得符号Iを出力する利得計算ステップと、
形状符号Iと利得符号Iとを多重化して、符号Iを出力する多重ステップと
を有し、
前記形状計算ステップは、
n=1、dsmax=0とする初期化サブステップと、
前記重み付き形状符号帳内のn番目の重み付き形状ベクトルWcと重み付き雑音信号Weとの内積結果(Wc(We)を、変数qとして記録する内積サブステップと、
重み付き形状パワ逆数帳内のn番目の要素(1/‖Wc)と、前記変数qとの積を、理想利得g として記録する理想利得計算サブステップと、
前記理想利得g と前記変数qの積を、距離dとして記録する距離計算サブステップと、
smax<dならば、dをdsmax、nを最適な符号iopt、g を最適な理想利得g optとする確認サブステップと、
を有し、
前記内積サブステップ、前記理想利得計算サブステップ、前記距離計算サブステップ、前記確認サブステップを、nが前記重み付き形状符号帳内の重み付き形状ベクトルの数Nとなるまで繰り返し、
繰り返し終了時のioptを形状符号Iとし、
形状符号Iと繰り返し終了時の最適な理想利得g optを出力とする
ことを特徴とする符号化方法。
An encoding method for converting an input signal into a code composed of a shape code indicating a shape vector and a gain code indicating a gain,
A weighting step of giving a weight to the input signal e and outputting a weighted noise signal We;
As the distance between the weighted noise signal We is minimized to obtain the optimal ideal gain g ~ opt with selecting the weighted shape vector Wc n weighted in shape codebook, the shape representing the weighted shape vector A shape calculation step for outputting a code Is and an optimum ideal gain g to opt ;
As the distance between the optimal ideal gain g ~ opt is minimized, and the gain calculation step of selecting a gain g m in the gain codebook, and outputs the gain code I g indicating the gain,
A multiplexing step of multiplexing the shape code I s and the gain code Ig and outputting the code I e ,
The shape calculation step includes:
an initialization sub-step with n = 1 and d smax = 0;
An inner product sub-step for recording an inner product result (Wc n ) t (We) of an nth weighted shape vector Wcn in the weighted shape codebook and a weighted noise signal We as a variable q n ;
An ideal gain calculation sub-step for recording the product of the nth element (1 / ‖Wc n2 ) in the weighted shape power reciprocal book and the variable q n as ideal gains g to n ;
A distance calculation substep for recording a product of the ideal gains g to n and the variable q n as a distance d s ;
If d smax <d s , a confirmation sub-step with d s as d smax , n as the optimal code i opt , and g through n as the optimal ideal gains g through opt ,
Have
Repeating the inner product substep, the ideal gain calculation substep, the distance calculation substep, and the confirmation substep until n is the number N of weighted shape vectors in the weighted shape codebook,
The repetition at the end of the i opt and shape sign I s,
A coding method characterized in that the shape code Is and the optimum ideal gain g to opt at the end of repetition are output.
入力信号を、形状ベクトルを示す形状符号と利得を示す利得符号から構成される符号に変換する符号化方法であって、
入力信号eに重みを付与し、重み付き雑音信号Weを出力する重み付けステップと、
重み付き雑音信号Weとの距離が最小となるように、重み付き形状符号帳内の重み付き形状ベクトルWcを選定するとともに適な理想利得g optを求め、当該重み付き形状ベクトルを示す形状符号Iと最適な理想利得g optとを出力する形状計算ステップと、
最適な理想利得g optとの距離が最小となるように、利得符号帳内の利得gを選定し、当該利得を示す利得符号Iを出力する利得計算ステップと、
形状符号Iと利得符号Iとを多重化して、符号Iを出力する多重ステップと
を有し、
前記利得計算ステップは、
を前記利得符号帳内のx番目に値が小さい利得とするときに、
利得符号帳内の値の小さい利得から順番に、g opt<(g+gx+1)/2を満たす最初のxを探索し、
xを利得符号Iとして出力する
ことを特徴とする符号化方法。
An encoding method for converting an input signal into a code composed of a shape code indicating a shape vector and a gain code indicating a gain,
A weighting step of giving a weight to the input signal e and outputting a weighted noise signal We;
As the distance between the weighted noise signal We is minimized, seeking the ideal gain g ~ opt for suitable with selecting the weighted shape vector Wc n weighted in shape codebook, the shape representing the weighted shape vector A shape calculation step for outputting a code Is and an optimum ideal gain g to opt ;
As the distance between the optimal ideal gain g ~ opt is minimized, and the gain calculation step of selecting a gain g m in the gain codebook, and outputs the gain code I g indicating the gain,
A multiplexing step of multiplexing the shape code I s and the gain code Ig and outputting the code I e ,
The gain calculating step includes:
Let g x be the gain of the xth smallest value in the gain codebook,
In order from a small gain of the value of the gain codebook searches for the first x satisfying g ~ opt <(g x + g x + 1) / 2,
An encoding method, wherein x is output as a gain code Ig .
入力信号を、形状ベクトルを示す形状符号と利得を示す利得符号から構成される符号に変換する符号化器であって、
形状符号と重み付き形状ベクトルとを対応させる重み付き形状符号帳と、
重み付き形状ベクトルのパワの逆数を記録した重み付き形状パワ逆数帳と、
利得符号と利得とを対応させる利得符号帳と、
入力信号eに重みを付与し、重み付き雑音信号Weを出力する重み付け部と、
重み付き雑音信号Weとの距離が最小となるように、重み付き形状符号帳内の重み付き形状ベクトルWcを選定するとともに最適な理想利得g optを求め、当該重み付き形状ベクトルを示す形状符号Iと最適な理想利得g optとを出力する形状計算部と、
最適な理想利得g optとの距離が最小となるように、利得符号帳内の利得gを選定し、当該利得を示す利得符号Iを出力する利得計算部と、
形状符号Iと利得符号Iとを多重化して、符号Iを出力する多重化部と
を備え、
前記形状計算部は、
n=1、dsmax=0とする初期化手段と、
前記重み付き形状符号帳内のn番目の重み付き形状ベクトルWcと重み付き雑音信号Weとの内積結果(Wc(We)を、変数qとして記録する内積手段と、
重み付き形状パワ逆数帳内のn番目の要素(1/‖Wc)と、前記変数qとの積を、理想利得g として記録する理想利得計算手段と、
前記理想利得g と前記変数qの積を、距離dとして記録する距離計算手段と、
smax<dならば、dをdsmax、nを最適な符号iopt、g を最適な理想利得g optとする確認手段と、
を有し、
前記内積手段、前記理想利得計算手段、前記距離計算手段、前記確認手段に、nが前記重み付き形状符号帳内の重み付き形状ベクトルの数Nとなるまで繰り返し処理をさせ、
繰り返し終了時のioptを形状符号Iとし、
形状符号Iと繰り返し終了時の最適な理想利得g optを出力とする
ことを特徴とする符号化器。
An encoder that converts an input signal into a code composed of a shape code indicating a shape vector and a gain code indicating a gain,
A weighted shape codebook that associates shape codes with weighted shape vectors;
A weighted shape power reciprocal book that records the reciprocal of the weighted shape vector power;
A gain codebook that associates the gain code with the gain;
A weighting unit that gives a weight to the input signal e and outputs a weighted noise signal We;
As the distance between the weighted noise signal We is minimized to obtain the optimal ideal gain g ~ opt with selecting the weighted shape vector Wc n weighted in shape codebook, the shape representing the weighted shape vector A shape calculation unit for outputting a code Is and an optimum ideal gain g to opt ;
As the distance between the optimal ideal gain g ~ opt is minimized, and the gain calculation unit that selects the gain g m in the gain codebook, and outputs the gain code I g indicating the gain,
A multiplexing unit that multiplexes the shape code Is and the gain code Ig and outputs the code Ie ;
The shape calculator is
initialization means for n = 1 and d smax = 0,
Inner product means for recording the inner product result (Wc n ) t (We) of the nth weighted shape vector Wcn in the weighted shape codebook and the weighted noise signal We as a variable q n ;
And n-th element of the weighted shapes power reciprocal within book (1 / ‖Wc n2), the product of the variables q n, and the ideal gain calculation means for recording as an ideal gain g ~ n,
A distance calculation means for recording a product of the ideal gains g to n and the variable q n as a distance d s ;
If d smax <d s , confirmation means for d s to be d smax , n to be an optimal code i opt , and g to n to be optimal ideal gains g to opt
Have
Causing the inner product means, the ideal gain calculation means, the distance calculation means, and the confirmation means to repeatedly perform processing until n becomes the number N of weighted shape vectors in the weighted shape codebook,
The repetition at the end of the i opt and shape sign I s,
An encoder characterized by having a shape code Is and an optimum ideal gain g to opt at the end of repetition as outputs.
入力信号を、形状ベクトルを示す形状符号と利得を示す利得符号から構成される符号に変換する符号化器であって、
形状符号と重み付き形状ベクトルとを対応させる重み付き形状符号帳と、
重み付き形状ベクトルのパワの逆数を記録した重み付き形状パワ逆数帳と、
利得符号と利得とを対応させる利得符号帳と、
入力信号eに重みを付与し、重み付き雑音信号Weを出力する重み付け部と、
重み付き雑音信号Weとの距離が最小となるように、重み付き形状符号帳内の重み付き形状ベクトルWcを選定するとともに最適な理想利得g optを求め、当該重み付き形状ベクトルを示す形状符号Iと最適な理想利得g optとを出力する形状計算部と、
最適な理想利得g optとの距離が最小となるように、利得符号帳内の利得gを選定し、当該利得を示す利得符号Iを出力する利得計算部と、
形状符号Iと利得符号Iとを多重化して、符号Iを出力する多重化部と
を備え、
前記利得計算部は、
を前記利得符号帳内のx番目に値が小さい利得とするときに、
利得符号帳内の値の小さい利得から順番に、g opt<(g+gx+1)/2を満たす最初のxを探索し、
xを利得符号Iとして出力する
ことを特徴とする符号化器。
An encoder that converts an input signal into a code composed of a shape code indicating a shape vector and a gain code indicating a gain,
A weighted shape codebook that associates shape codes with weighted shape vectors;
A weighted shape power reciprocal book that records the reciprocal of the weighted shape vector power;
A gain codebook that associates the gain code with the gain;
A weighting unit that gives a weight to the input signal e and outputs a weighted noise signal We;
As the distance between the weighted noise signal We is minimized to obtain the optimal ideal gain g ~ opt with selecting the weighted shape vector Wc n weighted in shape codebook, the shape representing the weighted shape vector A shape calculation unit for outputting a code Is and an optimum ideal gain g to opt ;
As the distance between the optimal ideal gain g ~ opt is minimized, and the gain calculation unit that selects the gain g m in the gain codebook, and outputs the gain code I g indicating the gain,
A multiplexing unit that multiplexes the shape code Is and the gain code Ig and outputs the code Ie ;
The gain calculator is
Let g x be the gain of the xth smallest value in the gain codebook,
In order from a small gain of the value of the gain codebook searches for the first x satisfying g ~ opt <(g x + g x + 1) / 2,
encoder and outputs a x as a gain code I g.
請求項1から7、15、16のいずれかに記載の方法の各ステップをコンピュータに動作させるプログラム。   The program which makes a computer operate | move each step of the method in any one of Claim 1 to 7, 15, 16. 請求項19記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。
A computer-readable recording medium on which the program according to claim 19 is recorded.
JP2007134457A 2007-05-21 2007-05-21 Decoding method, decoder, decoding device, program, and recording medium Active JP4638895B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007134457A JP4638895B2 (en) 2007-05-21 2007-05-21 Decoding method, decoder, decoding device, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007134457A JP4638895B2 (en) 2007-05-21 2007-05-21 Decoding method, decoder, decoding device, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2008289085A true JP2008289085A (en) 2008-11-27
JP4638895B2 JP4638895B2 (en) 2011-02-23

Family

ID=40148355

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007134457A Active JP4638895B2 (en) 2007-05-21 2007-05-21 Decoding method, decoder, decoding device, program, and recording medium

Country Status (1)

Country Link
JP (1) JP4638895B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100598835B1 (en) * 2000-03-28 2006-07-11 주식회사 만도 Shock absorber with extension part

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006049204A1 (en) * 2004-11-05 2006-05-11 Matsushita Electric Industrial Co., Ltd. Encoder, decoder, encoding method, and decoding method
JP2006119301A (en) * 2004-10-20 2006-05-11 Nippon Telegr & Teleph Corp <Ntt> Speech encoding method, wideband speech encoding method, speech encoding system, wideband speech encoding system, speech encoding program, wideband speech encoding program, and recording medium with these programs recorded thereon

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006119301A (en) * 2004-10-20 2006-05-11 Nippon Telegr & Teleph Corp <Ntt> Speech encoding method, wideband speech encoding method, speech encoding system, wideband speech encoding system, speech encoding program, wideband speech encoding program, and recording medium with these programs recorded thereon
WO2006049204A1 (en) * 2004-11-05 2006-05-11 Matsushita Electric Industrial Co., Ltd. Encoder, decoder, encoding method, and decoding method

Also Published As

Publication number Publication date
JP4638895B2 (en) 2011-02-23

Similar Documents

Publication Publication Date Title
US7983904B2 (en) Scalable decoding apparatus and scalable encoding apparatus
JP5143193B2 (en) Spectrum envelope information quantization apparatus, spectrum envelope information decoding apparatus, spectrum envelope information quantization method, and spectrum envelope information decoding method
JP4950040B2 (en) Method and apparatus for encoding and decoding multi-channel audio signals
US7848932B2 (en) Stereo encoding apparatus, stereo decoding apparatus, and their methods
JP4958780B2 (en) Encoding device, decoding device and methods thereof
JP5301471B2 (en) Speech coding system and method
WO2004097796A1 (en) Audio encoding device, audio decoding device, audio encoding method, and audio decoding method
JPH09127996A (en) Voice decoding method and device therefor
KR20070029754A (en) Audio encoding device, audio decoding device, and method thereof
JP3236592B2 (en) Speech coding method for use in a digital speech coder
EP0396121B1 (en) A system for coding wide-band audio signals
KR20070090217A (en) Scalable encoding apparatus and scalable encoding method
JPH10285048A (en) Digital data encoding/decoding method and its device
Schuller et al. Robust low-delay audio coding using multiple descriptions
JP5923517B2 (en) Improved coding of improved stages in hierarchical encoders.
JP3472279B2 (en) Speech coding parameter coding method and apparatus
JP4638895B2 (en) Decoding method, decoder, decoding device, program, and recording medium
JP2003332914A (en) Encoding method for digital signal, decoding method therefor, apparatus for the methods and program thereof
JP2006011170A (en) Signal-coding device and method, and signal-decoding device and method
JP3237178B2 (en) Encoding method and decoding method
JP4574320B2 (en) Speech coding method, wideband speech coding method, speech coding apparatus, wideband speech coding apparatus, speech coding program, wideband speech coding program, and recording medium on which these programs are recorded
JP2004302259A (en) Hierarchical encoding method and hierarchical decoding method for sound signal
JP4578145B2 (en) Speech coding apparatus, speech decoding apparatus, and methods thereof
JP4351684B2 (en) Digital signal decoding method, apparatus, program, and recording medium
KR100341398B1 (en) Codebook searching method for CELP type vocoder

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081107

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100715

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100727

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100922

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

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

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

Free format text: PAYMENT UNTIL: 20131203

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4638895

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350