Improved adaptive transform coding
Abstract
Determining formant information of a speech signal in a transform coder in order to reduce noise and distortion caused by quantization is disclosed. Dividing the signal into blocks using a window (52) is followed by dynamic scaling (54) used to conserve necessary processing for the discrete cosine transform (64) and the use of LPC coefficients (68) for pitch generation (82) and bit allocation (108). Consequently, the transformed information (64), pitch (106), and bit allocation (108) are utilized for accurate quantization (66) of the speech signal. Dynamic scaling (54), pitch (97), and quantization (66 and 80) information are then converted to a standard format (116) for transmission and subsequent decoding.

Term
No projected expiry on record.
- Priority and filed
- Published
- Today
15 claims: 9 independent, 6 dependent
- 1What is claimed is:1. Apparatus for determining formant information of a speech signal in a transform coder, which coder is capable of operation on a sampled time domain information signal composed of information samples which coder sequentially segregates groups of information samples into blocks and which coder transforms each block of samples from the time domain to a transform domain, wherein said block of samples is represented by a block of transform coefficients, comprising, extension means for generating an even extension for each of said blocks of time domain samples;function means for generating an auto¬ correlation function of said even extension;derivationmeans for deriving linearprediction coefficients from said auto-correlation function;second transformation means for performing a Fast Fourier Transform of said coefficients;and squaring means for mathematically squaring the gain of each coefficient resulting from said fast fourier transform, wherein said formant information for each of said blocks is equal to the collection of each squared gains of said fast fourier transform coefficients for said block.
- 4A method for determining formant information of a speech signal in a transform coder, which coder is capable of operation on a sampled time domain information signal composed of information samples which coder sequentially segregates groups of information samples into blocks and which coder transforms each block of samples from the time domain to a transform domain, wherein said block of samples is represented by a block of transform coefficients, comprising the steps of:generating an even extension for each of said blocks of time domain samples;generating an auto-correlation function of said even extension;deriving linear prediction coefficients from said auto-correlation function;performing a Fast Fourier Transform of said coefficients;and mathematically squaring the gain of each coefficient resulting from said fast fourier transform, wherein said formant information for each of said blocks is equal to the collection of each squared gains of said fast fourier transform coefficients for said block.
- 5Apparatus for generating a bit allocation signal, in a transform coder, which coder quantizes blocks of transformed samples of an information signal in response to a bit allocation signal, which transformed samples have an amplitude, comprising, logarithmic means for generating logarithmic values by determining the logarithm of a predetermined base of said transformed sample amplitudes;constant means for determining the minimum number of bits which will be assigned to each of said transformed sample amplitudes;and bit assignment means for determining the number of bits to be assigned to each of said transformed sample amplitudes by adding the minimum number of bits to said logarithmic values determined for each of said transformed sample amplitudes and for generating a bit allocation signal representative of number of bits assigned to each of said transformed sample amplitudes.
- 6A method for generating a bit allocation signal in a transform coder, which coder quantizes blocks of transformed samples of an information signal in response to a bit allocation signal, which transformed samples have an amplitude, comprising the steps of:generating logarithmic values by determining the logarithm of a predetermined base of said transformed sample amplitudes;determining the minimum number of bits which will be assigned to each of said transformed sample amplitudes;and determining the number of bits to be assigned to each of said transformed sample amplitudes by adding the minimum number of bits to said logarithmic values determined for each of said transformed sample amplitudes and for generating a bit allocation signal representative of number of bits assigned to each of said transformed sample amplitudes.
- 7Apparatus for assuring that bit assignments made in a transform coder are integer values wherein the number of bits available for assignment is known, comprising:rounding means for rounding each of said bit assignments to the next highest integer;totalingmeans for totaling the bit assignments after said rounding means has rounded said assignments;calculating means for determining the difference between said number " of bits available for assignment and the total number of bit assignments after rounding;histogram means for determining the amount of distortion which would be introduced to each bit assignment if one bit were to be removed and for ranking said bit assignments on the basis of said distortion determinations;selection means for selecting those bit assignments necessary to remove one bit so that said total number of bit assignments equals said number of available bits;and reducing means for reducing the selected bit assignments by one bit.
- 8A method for assuring that bit assignments made in a transform coder are integer values wherein the number of bits available for assignment is known, comprising the steps of:rounding each of said bit assignments to the next highest integer;totaling the bit assignments after said rounding means has rounded said assignments;determining the difference between said number of bits available for assignment and the total number of bit assignments after rounding;determining the amount of distortion which would be introduced to each bit assignment if one bit were to be removed and for ranking said bit assignments on the basis of said distortion determinations;selecting those bit assignments necessary to remove one bit so that said total number of bit assignments equals said number of available bits;and reducing the selected bit assignments by one bit.
- 9Apparatus for assuring that bit assignments made in a transform coder are integer values wherein the number of bits available for assignment is known, comprising:rounding means for rounding each of said bit assignments to the nearest integer;totaling means for totaling the bit assignments after said rounding means has rounded said assignments;determination means for determining when the bit assignment total equals said known number of available bits and for stopping said apparatus when such equal relationship is obtained;search means for determining which bit assignment will introduce the least amount of distortion if said bit assignment were modified by one bit;and modification means for modifying the selected bit assignment by one bit.
- 12A method for assuring that bit assignments made in a transform coder are integer values wherein the number of bits available for assignment is known, comprising the steps of:rounding each of said bit assignments to the nearest integer;totaling the bit assignments after said rounding means has rounded said assignments;determining when the bit assignment total equals said known number of available bits and for stopping said apparatus when such equal relationship is obtained;determiningwhichbitassignmentwill introduce the least amount of distortion if said bit assignment were modified by one bit;and modifying the selected bit assignment by one bit.
- 15An apparatus for adaptive transform coding which apparatus is capable of operation on a sampled time domain information signal composed of information samples, comprising:windowing means for sequentially segregating groups of information samples into blocks;first transformation means for transforming each block of samples from the time domain to a transform domain wherein said block of samples is represented by a block of transform coefficients;envelope means for determining the variance of"said transform coefficients and for generating an envelope signal reflective of said variance, wherein said envelope means comprises, extension means for generating an even extension for each of said blocks of time domain samples, function means for generating an auto-correlation function of said even extension, derivation means for deriving linear prediction coefficients from said auto-correlation function, signal block means for forming a signal block of said linear prediction coefficients, second transformation means for performing a Fast Fourier Transform of said signal block and squaring means for mathematically squaring the gain of each coefficient resulting from said fast fourier transform, wherein said variance of each transform coefficient is equal to the squared gain of its corresponding fast fourier transform coefficient;bit allocation means, for determining the number of bits to be assigned to said transform coefficients in relation to said variance reflected in said envelope signal and for generating a bit allocation signal reflective of the number of bits to be assigned to said transform coefficients;quantization means for quantizing said transform coefficients in response to said envelope signal and said bit allocation signal and for generating a quantization signal reflective of said quantized transform coefficients;and transmitting means for transmitting said quantization signal and said envelope signal. 16. Apparatus for decoding a coded speech signal wherein such coded speech signal includes sequential blocks of quantized transform coefficients and side information, which side information includes quantized linear prediction coefficients representative of the variance of said quantized transform coefficients, comprising: transformation means for performing a Fast Fourier Transform of said linear prediction coefficients;squaring means for mathematically squaring the gain of each coefficient resulting from said Fast Fourier Transform, wherein said variance of said quantized transform coefficients is equal to the collection of each squared gains of said fast fourier transform coefficients for said block;signal means for generating an information signal representative of said variance;logarithmic means for generating logarithmic values by determining the logarithm of a predetermined base of said transformed linear prediction coefficients;constant means for determining the minimum number of bits which will be assigned to each of said transformed linear prediction coefficients;bit assignment means for determiningthe number of bits assigned to each of said quantized transform coefficients by adding said minimum number of bits to said logarithmic values and for generating a bit allocation signal representative of number of bits assigned to each of said transformed sample amplitudes;de-quantization means for de-quantizing said transform coefficients in response to said information signal and said bit allocation signal and for generating a signal reflective of said de-quantized transform coefficients;and inverse transformation means for transforming said de-quantized transform coefficients from said transform domain into said time domain so that said speech signal is generally reproduced.
Independent claims9
112 paragraphs, as filed
0001IMPROVED ADAPTIVE TRANSFORM CODING Field of the Invention
0002The present invention relates to the field of speech coding, and more particularly, to improvements in the field of adaptive transform coding of speech signals wherein the coding bit rate is maintained at a minimum. Background of the Invention
0003Telecommunication networks are rapidly evolving towards fully digital transmission techniques for both voice and data. One of the first digital carriers was the 24-voice channel 1.544 Mb/s Tl system, introduced in the United States in approximately 1962. Due to advantages over more costly analog systems, the Tl system became widely deployed. An individual voice channel in the Tl system is generated by band limiting a voice signal in a frequency range from about
0004300 to 3400 Hz, sampling the limited signal at a rate of 8 kHz, and thereafter encoding the sampled signal with an 8 bit logarithmic quantizer. The resultant signal is a 64 Kb/s digital signal. The Tl system multiplexes the 24 individual digital signals into a single data stream.
0005A Tl system limits the number of voice channels in a single grouping to 24. In order to increase the number of channels and still maintain a transmission rate of approximately 1.544 Mb/s, the individual signal transmission rate must be reduced from a rate of 64 kb/s. One method used to reduce this rate is known as transform coding.
0006In transform coding of speech signals, the individual speech signal is divided into sequential blocks of speech samples. The samples in each block are thereafter arranged in a vector and transformed from the time domain to an alternate domain, such- as the frequency domain. Transforming the block of samples to the frequency domain creates a set of transform coefficients having varying degrees of amplitude. Each coefficient is independently quantized and transmitted. On the receiving end, the samples are de- quantized and transformed back into the time domain. The importance of the transformation is that the signal representation in the transform domain reduces the amount of redundant information, i.e. there is less correlation between samples. Consequently, fewer bits are needed to quantize a given sample block with respect to a given error measure (eg. mean square error distortion) than the number of bits which would be required to quantize the same block in the original time domain.
0007An example of such a prior transform coding system is shown in greater detail in Fig. 1. A speech signal is provided to a buffer 10, which arranges a predetermined number of successive samples into a vector x. Vector x is linearly transformed from the time domain to an alternate domain using a unitary matrix A by transform member 12, resulting in vector y. The elements of vector y are quantized by quantizer 14, yielding vector Y, which vector is transmitted. Vector Y is received and de-quantized by de-quantizer 16, and transformed back to the time domain by inverse transform member 18, using the inverse matrix A<sup>*1</sup>. The resulting block of time domain samples are placed back into successive sequence by buffer 20. The output of buffer 20 is ideally the reconstructed original signal. While the transform coding scheme in theory provided satisfaction of the need to reduce the bit rate of individual Tl channels, historically the quantization process produced unacceptable amounts of noise and distortion. To a large extent, the noise and distortion problems emanated from two areas: the inability of various transform matrices to efficiently transform the original signal; and from the distortion and noise created in the quantization process. In an attempt to optimize transform efficiency, various transform matrices have been evaluated. It is generally agreed that the optimal transform matrix is the Karhunen-Loeve Transform (KLT) . The problem with this transform, however, is that it lacks fast computation algorithm and the matrix is signal-dependent. Consequently, other transforms have been investigated, for example, the Walsh-Hada ard Transform (WHT) , the discrete slant transform (DST) , the discrete Fourier Transform (DFT) , the symmetric discrete Fourier Transform (SDFT) , and the discrete cosine transform (DCT) . The SDFT and DCT appear to be closest in efficiency to the KLT, are signal-independent and include fast algorithms.
0008In attempting to resolve the distortion and noise problems, previous investigations centered on the quantization process. Quantization is the procedure whereby an analog signal is converted to digital form. Max, Joel "Quantization for Minimum Distortion" IRE Transactions on Information Theory, Vol. IT-6 (March, 1960), pp. 7-12 (MAX) discusses this procedure. In quantization, the amplitude of a signal is represented by a finite number of output levels. Each level has a distinct digital representation. Since each level encompasses all amplitudes falling within that level, the resultant digital signal does not precisely reflect the original analog signal. The difference between the analog and digital signals is the quantization noise. Consider for example the uniform quantization of the signal x, where x is any real number between 0.00 and 10.00, and where five output levels are available, at 1.00, 3.00, 5.00, 7.00 and 9.00, respectively. The digital signal representative of the first level in this example can signify any real number between 0.00 and 2.00. For a given range of input signals, it can be seen that the quantization noise produced is inversely proportional to the number of output levels. In early quantization investigations for transform coding, it was found that not all transform coefficients were being quantized and transmitted at low bit rates. Initial quantization investigations involved quantizers having logarithmic characteristics and having bit assignment schemes which were used to determine the optimum number of bits to be assigned by the quantizer to a given sample block containing a number of transform coefficients. Such schemes utilized formulae which took into account an averaged mean-squared distortion of the transformed signal over long periods. Approaches of this type were deemed to be fixed bit allocation processes because bit assignment and step-size are fixed a priori and are based upon long term speech statistics. As indicated above, a major problem which occurred at lower bit rates was the lack of a sufficient number of bits to quantize all of the speech samples or coefficients in each block. Some speech samples were lost. Consequently, distortion noise utilizing these schemes remained unsatisfactory at lower bit rates.
0009Further attempts to improve the transform coding distortion noise problem at lower bit rates, involved investigating the quantization process using dynamic bit assignment and dynamic step-size determination processes. Bit assignment was adapted to short term statistics of the speech signal, namely statistics which occurred from block to block, and step-size was adapted to the transform's spectral information for each block. These techniques became known as adaptive transform coding methods.
0010In adaptive transform coding, optimum bit assignment and step-size are determined for each sample block usually by adaptive algorithms which require certain knowledge about the variance of the amplitude of the transform coefficients in each block. The spectral envelope is that envelope formed by the variances of the transform coefficients in each sample block. Knowing the spectral envelope in each block, thus allows a more optimal selection of step size and bit allocation, yielding a more precisely quantized signal having less distortion and noise.
0011Since variance or spectral envelope information is developed to assist in the quantization process, this same information will be necessary in the de-quantization process. Consequently, in addition to transmitting the quantized transform coefficients, adaptive transform coding also provides for the transmission of the variance or spectral envelope. This is referred to as side information. Since the overall objective in adaptive transform coding is to reduce bit rate, the actual variance information is not transmitted as side information, but rather, information from which the spectral envelope may be determined is transmitted. The spectral envelope represents in the transform domain the dynamic properties of speech, namely formants. Speech is produced by generating an excitation signal which is either periodic (voiced sounds) , aperiodic (unvoiced sounds) , or a mixture (eg. voiced fricatives) . The periodic component of the excitation signal is known as the pitch. During speech the excitation signal is filtered by a vocal tract filter, determined by the position of the mouth, jaw, lips, nasal cavity, etc. This filter has resonances or formants which determine the nature of the sound being heard. The vocal tract filter provides an envelope to the excitation signal. Since this envelope contains the filter formants, it is known as the for ant or spectral envelope.
0012Speech production can be modeled whereby speech characteristics are mathematically represented by convolving the excitation signal and vocal tract filter. In such a model, the vocal tract filter frequency response, i.e. the spectral envelope, is an estimate of the variance of the transform coefficients of the speech signal in the frequency domain. Hence, the more precise the determination of the spectral envelope, the more optimal the step-size and bit allocation determinations used to code transformed speech signals. Thus, adaptive transform coding techniques appear capable of efficiently coding and transmitting individual voice signals at lower bit rates. In view of the above, adaptive transform coding research has concentrated on various techniques for more precisely determining the spectral envelope. One early - β - technique disclosed in Zelinski, R. et al. "Adaptive Transform Coding of Speech Signals" IEEE Transactions on Acoustics, Speech, and Signal Processing, Vol. ASSP-25, No. 4 (August, 1977), pp. 299-309 and Zelinski, R. et al. "Approaches to Adaptive Transform Speech Coding at Low Bit Rates" IEEE Transactions on Acoustics, Speech, and Signal Processing, Vol. ASSP-27, No. 1 (February, 1979), pp. 89-95 involved estimation of the spectral envelope by squaring the transform coefficients, and averaging the coefficients over a preselected number of neighboring coefficients. The magnitude of the averaged coefficients were themselves quantized and transmitted with the coded signal as side information. To obtain the spectral estimates of all coefficients, the averaged coefficients were geometrically interpolated (i.e., linearly interpolated in the log domain). The result was a piecewise approximation of the spectral levels, i.e., variances, in the frequency domain. These values were then used by the bit assignment and step-size algorithms. While it demonstrated acceptable distortion and noise at bit rates lower than 64 kb/s, the problem with this early technique was that it had a limit approximately between 16 and 20 kb/s. Below this limit, some of the same problems exhibited by previous transform coding techniques were present, namely, the failure to quantize certain of the transform coefficients due to a lack of a sufficient number of bits per block. Consequently, certain essential speech elements were lost. One reason for losing the essential speech elements with this early technique was that it was nonspeech specific in the sense that it did not take into account the known properties of speech, such as the all-pole vocal-tract model and the pitch model in determining the variance information and bit allocation.
0013In an attempt to utilize adaptive transform coding at bit rates of 16 kb/s or lower, efforts were made to develop speech specific adaption algorithms. In speech specific techniques one should account for both pitch and formant information in a speech signal. Consequently, the transform scheme utilized in an adaptive transform coder should not only produce a spectral envelope but preferably includes a modulating term which can be utilized for reflecting pitch striations.
0014One speech specific technique disclosed in Tribolet, J. et al. "Frequency Domain Coding of Speech" IEEE Transactions on Acoustics, Speech, and Signal Processing, Vol. ASSP-27, No. (October, 1979), pp. 512-530, utilizing the DCT to obtain the transform coefficients, determined the DCT spectral envelope by first squaring the DCT coefficients and then inverse transforming the squared coefficients using an inverse DFT. The resultant time domain sample block yielded an autocorrelation-like function, which was termed the pseudo- ACF. The values of a number of initial block samples were then used to define a correlation matrix in an equation format. The solution of the equation resulted in a linear prediction model made up of linear prediction coefficients. The inverse spectrum of the linear prediction coefficients yielded a precise estimation of the DCT spectral envelope. In order to develop a pitch pattern, it was necessary to obtain a pitch period and a pitch gain. To determine these two factors, this technique searched the pseudo-ACF to determine a maximum value which became the pitch period. The pitch gain was thereafter defined as the ratio between the value of the pseudo-ACF function at the point where the maximum value was determined and the value of the pseudo-ACF at its origin. The estimated spectral envelope and the generated pitch pattern were thereafter used in conjunction with the step-size and bit assignment algorithms.
0015It was stated that the above speech specific technique worked better at lower bit rates, i.e.16 kb/s, than previous adaptive transform coding techniques, because it forced the assignment of bits to many pitch harmonics, i.e. essential speech elements, which previously would not have been transmitted and it helped to preserve pitch structure information. The problem with this technique however is that - a - due to its computational complexity, i.e. the technique required a 2N-point FFT operation, a magnitude operation, and a normalizing operation. As conclude in Crochiere, R. et al. "Real-Time Speech Coding" IEEE Transactions on Communications, Vol. COM-30, No. 4 (April, 1982), pp. 621-634 an array processor was needed for implementation. Consequently, it was not economical with regard to either processing time or cost. Accordingly, a need still exists for an adaptive transform coder which is capable of efficient operation at low bit rates, has low noise levels, and which is capable of reasonable cost and processing time implementation.
0016There is also a need to design a coder which is capable of optimal performance over a wide dynamic range of input signals while maintaining a high signal-to-noise ratio at all levels. This has been attempted previously by: careful control of input levels to correctly bias A/D conversion; analog AGC prior to A/D conversion; and digital AGC after A/D conversion. Careful control of the input levels is -seldom viable because most, if not all, signals come from external sources. AGC prior to A/D conversion is possible if control is maintained over the analog interface. However problems typically encountered with such procedures involve rise and fall times as well as background noise amplification. Also, inverse AGC at the receiver is not possible. Digital AGC follows the problems encountered in analog AGC and also introduces a degree of quantization noise which may not be removed.
0017There is still a further need for an adaptive transform coder which conducts a post bit allocation process to assure that each coefficient to be quantized is an integer. In performing bit assignment one or more calculations are used to determine the number of bits needed to quantize a particular piece of information, i.e. a transform coefficient. Such calculations do not usually yield integer numbers, but rather, result in real numbers which included an integer and a decimal fraction, e.g. 3.66, 5.72, or 2.44. If bits are only assigned to the integer portion of the calculated value and the details of the decimal fraction portions are ignored due to the limited number of available bits important information could be lost or distortion noise could be increased. Consequently, a need exists to account for the decimal fraction information and minimize the distortion noise. suτrtτn3rγ of the Invention
0018It is an object of the present invention to provide a method and apparatus which is capable of efficiently coding a voice signal at low bit rates with a minimum of noise and distortion.
0019It is another object of the invention to provide a method and apparatus for adaptive transform coding at low bit rates which is capable of implementation in a digital signal processor.
0020It is still another object of the invention to provide a method and apparatus for adaptive transform coding wherein step size and bit allocation are determined from block to block. These and other objects of the invention are achieved in a novel apparatus and method for determining formant information of a speech signal in a transform coder which operates on a sampled time domain information signal composed of information samples which coder sequentially segregates groups of information sample into blocks and which coder transforms each block of samples from the time domain to a transform domain wherein a block of samples is now represented by a block of transform coefficients, which apparatus and method includes generating an even extension of each block of time domain samples, generating an auto¬ correlation function from such extension, deriving linear prediction coefficients derived from the auto-correlation function and performing a Fast Fourier Transform on such linear prediction coefficients such that the variance or formant information of each transform coefficient is equal to the square of the gain of each FFT coefficient. In a further aspect of the invention, apparatus and method are provided for determining the number of bits to be assigned to each transform coefficient by determining the logarithm of a predetermined base of the formant information of the transform coefficients then determining the minimum number of bits which will be assigned to each transform coefficient and then determining the number of bits to be assigned to each of the transform coefficients by adding the minimum number of bits to the logarithmic number.
0021In still a further aspect of the invention, an apparatus and method are provided for assuring that the bit allocation or bit assignment made for each coefficient is an integer value. To this end the invention rounds each bit assignment to the next highest integer, totals the bit
0022<sup>"</sup>assignments, calculates the difference between the number of bits assigned and the number of bits available, develops a histogram of the bit assignments in order to rank the bit assignments on the basis of th amount of distortion which would be introduced if one bit were to be removed from such bit assignment, selecting the bit assignments necessary to equate the number of bits assigned with the number of available bits, and then reducing the selected bit assignments by one bit.
0023In still another aspect of the invention, assurance is given that the bit assignments are integer numbers by rounding each bit assignment to the nearest integer, totaling the number of bits assigned, determining when the number of bits assigned equals the number of bits available, determining which bit assignment will introduce the least amount of distortion if one bit were added or removed, depending on whether there are too many or too few bits assigned, and then reducing or increasing by one bit the selected bit assignment. These and other objects and advantages of the invention will become more apparent from the following description when taken in conjunction with the following drawings. Brief Description of the Drawings
0024Fig. 1 is a diagrammatic view of a prior transform coder;
0025Fig. 2 is a schematic view of an adaptive transform coder in accordance with the present invention;
0026Fig. 3 is a general flow chart of those operations performed in the adaptive transform coder shown in Fig. 2, prior to transmission;
0027Fig. 4 is a general flow chart of those operations performed in the adaptive transform coder shown in Fig. 2, subsequent to reception;
0028Fig. 5 is a more detailed flow chart of the dynamic scaling operation shown in Figs. 3 and 4;
0029Fig. 6 is a more detailed flow chart of the LPC coefficients operation shown in Figs, and 4;
0030Fig. 7 is a more detailed flow chart of the envelope generation operation shown in Figs. 3 and 4;
0031Fig. 8 is a more detailed flow chart of the integer bit allocation operation shown in Figs, and 4; Fig. 9 is a flow chart of a preferred post bit allocation process which can be used in conjunction with the adaptive transform coder operation shown in Figs. 3 and 4; and
0032Fig. 10 is a flow chart of an alternative post bit allocation process which can be used in conjunction with the adaptive transform coder operation shown in Figs. 3 and 4. Detailed Description of the Preferred Embodiment
0033As will be more completely described with regard to the figures, the present invention is embodied in a new and novel apparatus and method for adaptive transform coding. An adaptive transform coder in accordance with the present invention is depicted in Fig. 2 and is generally referred to as 10. The heart of coder 10 is a digital signal processor 12, which in the preferred embodiment is a TMS320C25 digital signal processor manufactured and sold by Texas Instruments, Inc. of Houston, Texas. While such a processor is capable of processing pulse code modulated signals having <sup>'</sup> word length of 16 bits, the word length of signals envisioned for coding by the present invention is somewhat less than 16 bits. Processor 12 is shown to be connected to three major bus networks, namely serial port bus 14, address bus 16, and data bus 18. Program memory 20 is provided for storing the programming to be utilized by processor 12 in order to perform adaptive transform coding in accordance with the present invention. Such programming is explained in greater detail in reference to Figs. 3 through 10. Program memory 20 can be of any conventional design, provided it has sufficient speed to meet the specification requirements of processor 12. It should be noted that the processor of the preferred embodiment (TMS320C25) is equipped with an internal memory. Although not yet incorporated, it is preferred to store the adaptive transform coding programming in this internal memory.
0034Data memory 22 is provided for the storing of data which may be needed during the operation of processor 12, for example, logarithmic tables the use of which will become more apparent hereinafter. A clock signal is provided by conventional clock signal generation circuitry, not shown, to clock input 24. In the preferred embodiment, the clock signal provided to input 24 is a 40 MHz clock signal. A reset input 26 is also provided for resetting processor 12 at appropriate times, such as when processor 12 is first activated. Any conventional circuitry may be utilized for providing a signal to input 26, as long as such signal meets the specifications called for by the chosen processor.
0035Processor 12 is connected to transmit and receive telecommunication signals in two ways. First, when communicating with adaptive transform coders similar to the invention, processor 12 is connected to receive and transmit signals via serial port bus 14. Channel interface 28 is provided in order to interface bus 14 with the compressed voice data stream. Interface 28 can be any known interface capable of transmitting and receiving data in conjunction with a data stream operating at 16 kb/s. Second, when communicating with existing 64 kb/s channels or with analog devices, processor 12 is connected to receive and transmit signals via data bus 18. Converter 30 is provided to convert individual 64 kb/s channels appearing at input 32 from a serial format to a parallel format for application to bus 18. As will be appreciated, such conversion is accomplished utilizing codecs and serial/parallel devices which are capable of use with the types of signals utilized by processor 12. In the preferred embodiment processor 12 receives and transmits parallel 16 bit signals on bus 18. In order to further synchronize data applied to bus 18, an interrupt signal is provided to processor 12 at input 34. When receiving analog signals, analog interface 36 serves to convert analog signals by sampling such signals at a predetermined rate for presentation to converter 30. When transmitting, interface 36 converts the sampled signal from converter 30 to a continuous signal.
0036With reference to Figs. 3-10, the programming will be explained which, when utilized in conjunction with those components shown in Fig. 2, provides a new and novel adaptive transform coder. Adaptive transform coding for transmission of telecommunications signals in accordance with the present invention is shown in Fig. 3. Telecommunication signals to be coded and transmitted appear on bus 18 and are presented to input buffer 50. It will be recalled that such telecommunication signals are sampled signals made up of 16 bit PCM representations of each sample. It will also be recalled that sampling occurs at a frequency of 8 kHz. For purposes of the present description, assume that a voice signal sampled at 8 kHz is to be coded for transmission. Buffer 50 accumulates a predetermined number of samples into a sample block. In the preferred embodiment, there are 128 samples in each block. Each block of samples is windowed at 52. In the preferred embodiment the windowing technique utilized is a trapezoidal window [h(sR-M) ] where each block of M speech samples are overlapped by R samples. Each block of M samples is dynamically scaled at 54. Dynamic scaling serves to both increase the signal-to-noise ratio on a block by block basis and to optimize processor parameters to use the full dynamic range of processor 12 on a short term basis. Thus a high signal-to-noise ratio is maintained.
0037With reference to Fig. 5, dynamic scaling is shown to be achieved by first determining the maximum value in the subject block. Once the maximum value is determined at 56, the position of the most significant bit (MSB) of such maximum value is located at 58. For example, assume that the maximum value of a subject block is a 16 bit binary representation of the number 6 (i.e. 0000 0000 0000 0110) . The word length of the processor is 16, while the word length of number 6 is only 3, the position of the most significant bit (i.e. position 3, if counting from 1 from right to left) . The value of each position in this example is equal to the position number, i.e. position 3 has a value of 3 and position 16 has a value of 16.
0038The binary representations are now shifted to the left at 60 according to the formula:
0039Left Shift of MSB = [15 - (MSB + 1) ] (1)
0040The number 15 is representative of the highest MSB position for a 16-bit word length. The binary representation of the number 6 would then be shifted eleven positions to the left (i.e. 0011 0000 0000 0000).
0041Reception of a dynamically scaled block of samples requires an opposite operation to be performed. Consequently, the amount of left shift needs to be transmitted as side information. In the preferred embodiment the position of the most significant bit is transmitted with each block as side information at 62. Since (1) assures that the left shift number will never exceed 15 for a 16 bit processor, no more than 4 bits are required to transmit this side information in a binary form. It will be noted that the amount of left shift is incremented by 1. This increment allows a margin for processing gains without overflow. Having dynamically scaled the subject sample block at 54 in Fig. 3, the subject block is transformed from the time domain to the frequency domain utilizing a discrete cosine transform at 64. Such transformation results in a block of transform coefficients which are quantized at 66. Quantization is performed on each transform coefficient by means of a quantizer optimized for a Gaussian signal, which quantizers are known (See Max) . The choice of gain (step- size) and the number of bits allocated per individual coefficient are fundamental to the adaptive transform coding function of the present invention. Without this information, quantization will not be adaptive.
0042In order to develop the gain and bit allocation per sample per block, consider first a known formula for bit allocation:
0043Rι - R.<sub>«</sub> + 0.5 * log<sub>2</sub> [V<sub>α</sub><sup>2</sup> / V<sub>block</sub><sup>2</sup>] (2) where: V<sub>bloclt</sub><sup>2</sup> = n<sub>th</sub> root of [Product^<sub>, N</sub> V,<sup>2</sup>] (3)
0044Rτot.1 = Sumi-ι,H [R - (4) where: R<sub>±</sub> is the number of bits allocated to the i<sup>th</sup> DCT coefficient;
0045R<sub>Total</sub> is the total number of bits available per block;
0046R<sub>ave</sub> is the average number of bits allocated to each DCT coefficient; Vj.<sup>2</sup> is the variance of the i<sup>th</sup> DCT coefficient; and <sup>v</sup><sub>b</sub>i<sub>oc</sub>_<sub>k</sub><sup>2</sup> i<sup>s</sup> the geometric mean of for v DCT coefficients.
0047Equation (2) is a bit allocation equation from which the resulting <sub>i</sub> when summed, should equal the total number of bits allocated per block. The following new derivation considerably reduces implementation requirements and solves dynamic range problems associated with performing calculations using 16-bit fixed point arithmetic, as is required when utilizing the processor of the preferred embodiment. Equation (2) may be reorganized as follows:
0048R_ = [R<sub>»ve</sub> - log<sub>2</sub> (V<sub>blcck</sub><sup>2</sup>) ] + 0. 5 * log<sub>2</sub> (<sub>Vl</sub><sup>2</sup>) (5) - IS -
0049Since the terns within square brackets can be calculated beforehand and since they are not dependent on the coefficient index (i) , such terms are constant and may be denoted as Gamma. Hence equation (5) may be rewritten as follows: i = Gamma + 0.5 * S<sub>t</sub> (6)
0050S* = log<sub>2</sub>(v<sub>t</sub><sup>2</sup>) (7)
0051The term V<sub>t</sub><sup>2</sup> is the variance of the ith DCT coefficient or the value the ith coefficient has in the spectral envelope. Consequently, knowing the spectral envelope allows the solution to the above equations. A new technique has been developed for determining the spectral envelope of the DCT spectrum. The spectral envelope has been defined as follows: H(z) = Gain / (1 + Sum<sub>k</sub>.<sub>1#P</sub>[a<sub>k</sub> * z<sup>"k</sup>]) (8) evaluated at: z = e<sup>j 2pl (i/2H!</sup> [i=0,N-l]
0052where H(z) is the spectral envelope of DCT and a<sub>k</sub> is the linear prediction coefficient. Thus equation (8) defines the spectral envelope of a set of LPC coefficients. The spectral envelope in the DCT domain may be derived by modifying the LPC coefficients and then evaluating (8) .
0053As shown in Fig. 3, the windowed coefficients are acted upon to determine a set of LPC coefficients at 68. The technique for determining the LPC coefficients is shown in greater detail in Fig. 6. The windowed sample block is designated x(n) at 70. An even extension of x(n) is generated at 72, which even extension is designated y(n) . Further definition of y(n) is as follows: y(n) = x(n) n=0,N-l (9) = x(2N-l-n) n=N,2N-l
0054An autocorrelation function (ACF) of (9) is generated at 74. The ACF of y(n) is utilized as a pseudo-ACF from which LPCs are derived in a known manner at 76. Having generated the LPCs (a<sub>k</sub>) , equation (8) can now be evaluated to determine the spectral envelope. It will be noted that the pseudo-ACF, in addition to being available at 76, is also provided to 82 for the development of pitch striation information. It will be also noted in Fig. 3, that in the preferred embodiment the LPCs are quantized at 78 prior to envelope generation. Quantization at this point serves the purpose of allowing the transmission of the LPCs as side information at 80.
0055As shown in Fig. 3, the spectral envelope and pitch striation information is determined at 82. A more detailed description of these determinations is shown in Fig. 7. Consider first the determination of the spectral envelope. A signal block z(n) is formed at 84, which block is reflective of the denominator of Equation (8). The block z(n) is further defined as follows: z(n) = 1.0 n=0 - a<sub>n</sub> n=l,P (10)
0056= 0.0 n=P+l,2N-l Block z(n) is thereafter evaluated using a fast fourier transform (FFT). More specifically, z(n) is evaluated at 86 by using an N-point FFT where z(n) only has values from 0 to N-l. Such an operation yields the results v<sub>L</sub><sup>2</sup> for i = 0, 2, 4, 6, ..., N-2. Since (7) requires the Log<sub>2</sub> of v<sub>t</sub><sup>2</sup>, the logarithm of each variance is determined at 88. To get the odd ordered values, geometric interpolation is performed at 90 in the log domain of V<sub>x</sub><sup>2</sup> using the following formula for i = 1, 3, 5, N-l:
0057VL(i) =
0058-0.25*VL(i-3)+0.75*VL(i-l)+0.75*VL(i-l)-0.25*VL(i-3) (11) where VL(i) = Log<sub>2</sub> (Vj<sup>2</sup>) .
0059It is also possible, although not preferred, to utilize a 2N-point FFT to evaluate z(n) . In such a situation it will not be necessary to perform any interpolation. The problem with using a 2N-point FFT is that it takes more processing time than the preferred method since the FFT is twice the size. The variance (v<sub>t</sub><sup>2</sup>) is determined at 92 for each DCT coefficient determined at 64. The variance V<sub>L</sub><sup>2</sup> is defined to be the magnitude<sub>2</sub> of (8) where H(z) is evaluated at <img file="WO8911718A1_D0001.tif" /> Put more simply, consider the following:
0060Vj<sup>2</sup> = Mag.<sup>2</sup> of [Gain/ FFT (12)
0061The term V<sub>t</sub><sup>2</sup> is now relatively easy to determine since the FFT<sub>t</sub> denominator is the i<sup>th</sup> FFT coefficient determined at 90. Having determined the spectral envelope, i.e. the variance of each DCT coefficient determined at 64, these values are provided to 94 for combination with the pitch information.
0062It will be recalled that one reason for losing essential speech elements in early adaptive transform coders was that such coders were nonspeech specific. In speech specific techniques both pitch and formant (i.e. spectral envelope) information are taken into account. It will also be recalled that a prior speech specific technique took pitch information, or pitch striations, into account by generating a pitch model from the pitch period and the pitch gain. To determine these two factors, this technique searched the pseudo-ACF to determine a maximum value which became the pitch period. The pitch gain was thereafter defined as the ratio between the value of the pseudo-ACF function at the point where the maximum value was determined and the value of the pseudo-ACF at its origin. With this information the pitch striations, i.e. a pitch pattern in the frequency domain, could be generated which information can be defined as follows: F<sub>pi£eh</sub>(k) k = 0, N-l (13)
0063To generate the pitch pattern in the frequency domain using this prior technique, one would define a time domain impulse sequence, p(n) as follows: p(n) = (P<sub>8</sub>,<sub>in</sub>) n= k*P, k = 0, 1, 2, 3, ... (14) P(n) = 0 n is not equal to k*p where P<sub>8ain</sub> is the pitch gain and P is the pitch period. This sequence was windowed by a trapezoidal window to generate a finite sequence of length 2N. To generate a spectral response for only N points, a 2N-point complex FFT was taken of the sequence. The magnitude of the result, when normalized for unity gain, yielded the required spectral response, F<sub>pltch</sub>(k) . In order to generate the final spectral estimate, the pitch striations and the spectral envelope were multiplied and normalized.
0064In graphing the combined pitch striation and spectral envelope information, the pitch striations appear as a series of "U" shaped curves wherein there exists P replications in a 2N-point window. This entire process was adaptively performed for each sample block. The problem with this prior technique was its implementation complexity. In the present invention, pitch striations are taken into account with a much simpler implementation.
0065Consider a case, in light of the previously described technique, where the pitch period is one (1) and the window used to generate a finite sequence is rectangular. The resultant spectral response of the pitch is a single "U" shape which will be defined for purposes of this application as follows:
0066STR(k) for k = 0, 2N-1. (15)
0067It can be shown that for different values of the pitch period, other than one (1) , the spectral response,
0068F<sub>pltch</sub>(k) , is solely a sampled version of STR(k) , modulo 2N, i.e.
0069F<sub>pitch</sub>(k) = STK^P)^^ k = 0, N-l (16)
0070Additionally, it can be shown that the differences between the pitch striations (STR) for different values of
0071P<sub>gain</sub> maintaining the same pitch period, when scaled for energy and magnitude, are mainly related to the width of the "U" shape. It can be shown that, based on the above, it is not necessary to adaptively determine the pitch spectral response for each sample block, but rather, such information can be generated by using information developed a priori. In one aspect of the present invention the pitch spectral response. <sup>F</sup><sub>p</sub>i<sub>tc</sub> (fc) is adaptively generated from a look-up-table developed before hand and stored in data memory 22.
0072The development of this table is accomplished by using the prior technique, which was used adaptively for each sample block. However, for purposes of generating a look-up- table for use with the present invention, the pitch period is fixed at one (1) and the pitch gain is a given value. In the preferred embodiment the pitch gain utilized is 0.6. After this process is completed the Pitch Striations Look-Up-Table is defined by taking the logarithm to the base two of the result, i.e.: STR(k)=log<sub>2</sub>(Magnitude of FFT [p(n) ]/STR<sub>e∞r</sub>.<sub>y</sub>)<sup>1</sup>'<sup>2</sup>) k=0,N-l
0073(17) The resulting table of logarithms is stored in memory. Before the look-up-table can be sampled to generate pitch information, it must be adaptively scaled for each sample block in relation to the pitch period and the pitch gain. The pitch period and the pitch gain are determined at 96 in the same fashion as the prior technique. This information is transmitted as side information on 97. The two parameters needed to scale the look-up-table are the energy and the magnitude of the pitch striations in each sample block. Having defined the sequence p(n) above, see (13) , for any given pitch period and pitch gain, energy and magnitude are determined at 98 as follows:
0074SU πr = <sup>Sum</sup> t P<sup>(n</sup>)<sup>2</sup> 3 n = 0, 2N-1 (18)
0075STR-,^ = Sum [ p(n) ] n = 0, 2N-1 (19) Based upon (18) and (19) the look-up-table scaling factor STR<sub>ac4le</sub> can be calculated at 100 as follows: STR<sub>SC4le</sub> = log<sub>2</sub> [STR^/STR.^)<sup>1</sup>'<sup>2</sup>] (20)
0076The look-up-table stored in data memory 22 is multiplied by STR<sub>3Caie</sub> at 102 and the resulting scaled table is sampled modulo 2N at 104 to determine the pitch striations as follows: F<sub>pttch</sub>(k) = [STR<sub>scalβ</sub>/STR(0)]*[STR(k*P)<sub>Blodulo 2K</sub> k=0,N-l] (21) The sampled values, being logarithmic values, are thereafter added at 94 to the logarithmic variance values determined at 92.
0077Since log<sub>2</sub>v<sub>t</sub><sup>2</sup> has been determined, it is now possible to perform bit allocation at 94. It will be recalled that equations (2)-(4) set out a known technique for determining bit allocation. Thereafter equations (6) and (7) were derived. Only one piece remains to perform simplified bit allocation. By substituting equation (6) in equation (4) it follows that: Ri<sub>o</sub>.<sub>1</sub> = 0.5 * Sum<sub>i</sub>.<sub>lfH</sub>[S<sub>1</sub>] + N * Gamma (22)
0078Rearranging (11) yields the following: Gamma = [R<sub>Toεal</sub> - 0.5 * Sum<sub>i-1)N</sub>(S<sub>1</sub>) ] /N (23) where N is the number of samples per block and R<sub>Total</sub> is the number of bits available per block. The bit allocation performed at 106 is shown in greater detail in Fig. 8. Utilizing (7), each S<sub>t</sub> is determined at 110, a relatively simple operation. Having determined each S<sub>i r</sub> Gamma is determined at 112 using (23) , also a relatively simple operation. In the preferred embodiment, the number of samples per block is 128. Consequently, N is known from the beginning.
0079The number of bits available per block is also known from the beginning. Keeping in mind that in the preferred embodiment each block is being windowed using a trapezoidal shaped window and that eight samples are being overlapped, four on either side of the window, the frame size is 120 samples. Since transmission is occurring at a fixed frequency, 16 kb/s in the preferred embodiment, and since 120 samples takes approximately 15 ms (the number of samples 120 divided by the sampling frequency of 8 kHz) , the total number of bits available per block is 240. It will be recalled that four bits are required for transmitting the dynamic scaling side information. The number of bits required to transmit the LPC coefficient side information is also known. Consequently, R<sub>Tota</sub>ι is also known from the following: i<sub>otj</sub>-i <sup>=</sup> 240 - bits used with side information (24) Since each S<sub>L</sub>, ι<sub>0tm</sub>ι<sub>.</sub> and N are all now known, determining Gamma at 96 is relatively simple using (23) . Knowing each S<sub>L</sub> and Gamma, each R<sub>L</sub> is determined at 114 using (6) . Again a relatively simple operation. This procedure considerably simplifies the calculation of each R<sub>if</sub> since it is no longer necessary to calculate the geometric mean, V<sub>block</sub>2, as called for by (2) . A further benefit in utilizing this procedure is that using S<sub>x</sub> as the input value to (6) reduces the dynamic range problems associated with implementing an algorithm such as (2) in fixed-point arithmetic for real time implementation.
0080Having determined the quantization gain factor at 82 and now having determined the bit allocation at 108 the quantization at 66 can be completed. Once the DCT coefficients have been quantized, they are formatted for transmission with the side information at 116. The resultant formatted signal is buffered at 102 and serially transmitted at the preselected frequency, which in the preferred embodiment is 16 kb/s. Consider now the adaptive transform codingprocedure utilized when a voice signal, adaptively coded in accordance with the principles of the present invention, is received. It will be recalled that such signals are presented on serial port bus 14 by interface 28. Such signals are first buffered at 120 in order to assure that all of the bits associated with a single block are operated upon relatively simultaneously. The buffered signals are thereafter de-formatted at 122.
0081The LPC coefficients, pitch period, and pitch gain associated with the block and transmitted as side information are gathered at 124. It will be noted that these coefficients are already quantized. The spectral envelope and pitch striation information is thereafter generated at 126 using the same procedure described in reference to Fig. 7. The resultant information is thereafter provided to both the inverse quantization operation 128, since it is reflective of quantizing gain, and to the bit allocation operation 130. The bit allocation determination is performed according to the procedure described in connection with Fig. 8.
0082The bit allocation information is provided to the inverse quantization operation at 128 so the proper number of bits is presented to the appropriate quantizer. With the proper number of bits, each de-quantizer can de-quantize the DCT coefficients since the gain and number of bits allocated are also known. The de-quantized DCT coefficients are transformed back to the time domain at 132. Thereafter the now reconstructed block of samples are dynamically unsealed at 134, which is shown in greater detail in Fig. 5. Dynamic unsealing occurs at 136 by shifting the bits to the right by the formula:
0083Right Shift = [15 - (MBS + 1)] (25) Having been dynamically unsealed at 134 the sample block is now de-windowed at 138. It will be recalled that windowing allows for a certain amount of sample overlap. When de-windowing it is important to re-combine any overlapped samples. The sample block is again aligned in sequential form by buffer 140 prior to presentation on bus 18. Signals thus presented on bus 18 are converted from parallel to serial form by converter 30 and either output at 32 or presented to analog interface 36.
0084Consider now a post bit allocation process which assures that the number of bits allocated per sample is an integer value. With reference to Figs. 3 and 4, this post process would occur immediately after the bit allocation determinations have been made at 108 and 130 respectively and prior to presentation of the bit allocation information to any other operation. The post bit allocation process is shown in detail in Fig. 9. Generally, after the bit allocation determinations at 108, the post process rounds R to the next positive integer and then removes bits from select R<sub>lf</sub> until the total number of bits equals the number of bits available for bit assignment. This results in an assured integer bit allocation M<sub>j</sub>. per DCT coefficient. However not just any bit is removed in the process. Bits are removed in relation to the amount of distortion associated with such removal. Assume that voice signals are being coded for transmission. After each R<sub>t</sub> has been determined at 108, the post process rounds each R<sub>L</sub> to the nearest integer at 142. Such rounding can be defined as follows:
0085Mi - Integral (R<sub>x</sub> + 0.99), limit 0- <sub>^</sub> (26)
0086H<sub>ϊoeal</sub> = Su jr<sub>t</sub>.<sub>H</sub> [M (27) where: M<sub>L</sub> is individual integer bit allocations;
0087I^. is the maximum number of bits allowed per coefficient; and
0088<sup>M</sup>i<sub>ota</sub>i i*<sup>3</sup> "the total number of bits allocated in the block.
0089The total number of bits, M<sub>Iotal</sub>, is thereafter determined at 144 according to (27) . A determination is then made at 146 of how many bits need to be removed in order for •M-io<sub>t</sub>ai <sup>to</sup> equal R<sub>Iotal</sub> from the following:
0090N lαtal <sup>=</sup> Mlβ al "" lotal (28 )
0091Thereafter a determination is made from which bit allocations one (1) bit will be removed so that M<sub>IoJ:al</sub> is equal to Rj<sub>ota</sub>i- This determination is made based upon the guideline that bits are to be removed from those legal bit allocations which will introduce the least amount of distortion by removing one (1) bit. A legal bit allocation is one which is greater than zero. Once the required bits have been removed from the desired allocations, the resultant bit allocation information is provided for quantization of the DCT coefficients at 66.
0092In order to determine from which bit allocations one (1) bit will be removed, a histogram of the bit allocations is generated at 148. In order to generate the histogram, a number of counters are defined as each representing an identically sized but sequential range of the real numbers from 0.00 to 1.00. For example, in the preferred embodiment sixteen counters are defined as each representing 1/16 of the real numbers between 0.00 and 1.00, i.e. counter 1 represents numbers between 0.00 and 0.0625, counter 2 represents the real numbers between 0.0625 and 0.125, and so on. A counter is incremented by one for each value of D<sub>t</sub> falling within one of the defined ranges, which values are determined in relation to each of the calculated variances V^ according to the following: <img file="WO8911718A1_D0002.tif" /> where: D<sub>t</sub> is the average distortion introduced by quantization of the 1<sup>th</sup> coefficient; and
0093Li is the integer level allocation (Li - 2<sup>Mi</sup>) . It should be kept in mind that a decrease of one bit will halve the number of quantization levels. Consequently, the following equations may be derived from (29) :
0094Di = 2.72 * Vi<sup>2</sup> * [1/0.5Li<sup>2</sup> - 1/L,<sup>2</sup>] (30) hence: Di = 2.72 * v^ * 0.75 * [1/Li<sup>2</sup>] (31)
0095Unfortunately, these equations can be rather cumbersome. Since Di is a monotonically increasing function, the equation may „ be modified by another monotonically increasing function and obtain the same result. For example, multiplying by a constant or taking the logarithm to the base
00962 will still indicate relative values, i.e., higher or lower. Consequently, the following can be developed: <img file="WO8911718A1_D0003.tif" /> hence: Di = Ri - M,<sub>.</sub> (33)
0097Although equation (33) yields a different value for Di than equations (32) , since the function is still monotonically increasing and since we are investigating related values, the result is still the same. Therefore the task of determining Di is reduced to simple equations.
0098Since certain bit allocations will be reduced by one bit, it is necessary to associate which allocation incremented which counter. Such association can be made by any known programming technique.
0099The counters are then searched at 150 from the counter representing the least amount of distortion 0.00 to the counter representing the greatest amount of distortion 1.00, accumulating the number of counts stored in each counter CUM(J) , to determine and identify at which counter CUM(J) equal to or greater than NR,.<sub>otal</sub>. Those bit allocations Di) represented, by the distortions (Di) associated with the counters whose ranges are less than the identified counter, are reduced by one bit at 152. In the identified counter, one bit is removed from each Ri until CUM(J) equals NR^^. The Ri from which one bit is removed are selected on the basis of smallest D<sub>t</sub> to largest D^, as needed. The number of bit allocations represented in the identified counter from which a bit is removed shall be designated as K. Once the selected bit allocations (RJ have been reduced by one bit each, a determination is made as to whether M<sub>Tocal</sub> is equal to R<sub>TotaL</sub> at 154. If the answer is yes, the bit allocation information is presented to the quantizer. If the answer is no, as may happen if R,.^^ is greater than the number of legal bit allocations (RJ , the process returns to 146 and repeats the process.
0100Consider now another process for assuring that the number of bits being assigned is an integer value. Again, after each R<sub>L</sub> has been determined at 108, this post process, shown in Fig. 10, rounds each Ri to the nearest integer at 160. The total number of bits, M<sub>Total</sub>, is thereafter determined at 1,62. An evaluation is made at 164 as to whether MTotal is equal to Rι<sub>ot4l</sub>. If M<sub>Iotal</sub> is equal to R<sub>Iotal</sub> the post process is over and the resulting i are presented for quantization at 66. If M<sub>Iotal</sub> is greater than R<sub>Totai</sub> then the bit allocation R<sub>j</sub> which would introduce the least amount of distortion if one bit were to be removed is determined at 166. One bit is removed from R<sub>j</sub> at 168 and the total number of bits is again determined at 162. The post process will continue looping in this manner until M<sub>Iotal</sub> equals Rι<sub>ot</sub>,ι.
0101If M<sub>Tocal</sub> is determined to be less than R<sub>Iotal</sub> at 164, then R<sub>j</sub> is located where the addition of one bit would decrease distortion the most at 170. Having located R<sub>j</sub>, one bit is added to R<sub>j</sub> at 172. M<sub>Total</sub> is again determined at 162 and the process will so loop until M<sub>Iαca</sub>-<sub>L</sub> is found to equal R<sub>Total</sub> at 164. In order to determine that <sub>j</sub> where the least amount of distortion will occur if a bit is subtracted or where distortion will be reduced the most if one bit is added consider the following: Mi •= Integral (Ri + 0.5), limit 0- <sub>^</sub> (34)
0102M<sub>Iotal</sub> = Su i„<sub>1/H</sub> [Mi ] ( 35 )
0103<sup>N</sup>It«r <sup>= R</sup>Iot*l " Mlot»l ( 36 ) <img file="WO8911718A1_D0004.tif" />
0104D<sub>Iotal</sub> = Sumi.<sub>1>H</sub> [Di] (38) where: M<sub>t</sub> is individual integer bit allocations; ,<sub>^</sub> is the maximum number of bits allowed per coefficient; <sup>M</sup>τ<sub>ota</sub>i i<sup>s</sup> the total number of bits allocated in the block; N<sub>Iter</sub> is the number of iterations required to increase or decrease bit allocation to R<sub>Iotal</sub>; Di is the average distortion introduced by quantization of the i<sub>th</sub> coefficient; Li is the integer level allocation (L<sub>L</sub> = 2<sup>M1</sup>) ; and <sup>D</sup>i<sub>o a</sub>i i<sup>s</sup> the total average distortion introduced to the block by quantization. Equation (34) defines the integer bit allocation, M<sub>1;</sub> which is derived from Ri by rounding to the nearest integer and limiting the result to a positive integer no greater than M<sub>^</sub>. This results in a total number of bits allocated, M<sub>Iotal</sub>, which must be increased or decreased by N<sub>Iter</sub> bits (36) in order to maintain the correct number of bits allocated to the block, Rι<sub>otal</sub>.
0105In determining which coefficients require a modification of their bit allocation, the measure of distortion associated with this operation per coefficient is determined. MAX defined the average distortion introduced by quantizing a sample in (37) . This result was used previously to define optimal bit allocation (2) . The approach used is to modify the integer allocation i to equal R<sub>Total</sub> bits by determining iteratively the bit that introduces the least distortion by being removed (dec) , or the one that reduces the total distortion most by being increased (inc) . If left to the above equations, this procedure is constrained to positive integers not greater than M^.,.
0106It will again be kept in mind that an increase of one bit will double the number of levels, and that a decrease of one bit will half the number of levels. Therefore the following equations may be derived from (37) :
0107Di(inc) = 2.72 * Vi<sup>2</sup> * [1/L<sub>L</sub><sup>2</sup> - l/(2Li<sup>2</sup>] (39) hence: Di(inc) = 2.72 * v^ * 3.0 * [1/L<sub>j</sub><sup>2</sup>] (40) Di(dec) = 2.72 * Vi<sup>2</sup> * [1/(0.5LJ<sup>2</sup> - l/L^ (41) hence: D dec) = 2.72 * v^ * 0.75 [1/Li<sup>2</sup>] (42)
0108Therefore, to increase the number of bits, Di(inc) (39) defines the reduction in total distortion, D<sub>Tocal</sub> by increasing M<sub>±</sub> by one bit. Consequently the iterative process must determine the maximum Di(inc) in the block (i=l,N) . Similarly, to decrease the number of bits, Di(dec) (41) defines the increase in the total distortion by decreasing M<sub>L</sub> by one bit. Consequently, the iterative process must determine the minimum Di(dec) in the block (i=l,N) . However the above equations can be rather cumbersome. The operation of searching for a minimum or maximum is based on the fact that Di(inc) and Di(dec) are monotonically increasing functions with respect to v<sub>t</sub>and L<sub>L</sub>. As such they may be modified by any other monotonically increasing function and maintain the correct result. For example, multiplying by a constant or taking the logarithm to the base 2 will still indicate relative values, i.e., higher or lower. Consequently, the following can be developed:
0109Di(inc) •= log<sub>2</sub> [ i<sup>2</sup> / L ] (43) hence: Di(inc) = R<sub>L</sub> - M<sub>t</sub> (44)
0110Di(dec) = log<sub>2</sub> [<sub>Vi</sub><sup>2</sup> / L<sub>t</sub><sup>2</sup>] (45) hence: Di(dec) = R<sub>t</sub> - M<sub>j</sub>_ (46)
0111Although equations (43) and (45) yield different values for D<sub>L</sub> than equations (42) and (44) , since the function is still monotonically increasing and since we are searching for a maximum, the result is still the same. Therefore the task of determining O<sub>L</sub> at 166 or 170 is reduced to simple equations.
0112While the invention has been described and illustrated with reference to specific embodiments, those skilled in the art will recognize that modification and variations may be made without departing from the principles of the invention as described herein above and set forth in the following claims.
4 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4
Every citation, both ways
| Document | Relation | Office | Category | Cited during |
|---|---|---|---|---|
| US3405237A | Cites | United States of America | A | International search |
| US3405237A | Cites | United States of America | A | International search |
| US3662108A | Cites | United States of America | Y | International search |
| US3662108A | Cites | United States of America | Y | International search |
| US4184049A | Cites | United States of America | X | International search |
| US4184049A | Cites | United States of America | X | International search |
| US4216354A | Cites | United States of America | A | International search |
| US4216354A | Cites | United States of America | A | International search |
| US4455649A | Cites | United States of America | A | International search |
| US4455649A | Cites | United States of America | A | International search |
| US4535472A | Cites | United States of America | A | International search |
| US4535472A | Cites | United States of America | A | International search |
| US4569075A | Cites | United States of America | A | International search |
| US4569075A | Cites | United States of America | A | International search |
| US4703480A | Cites | United States of America | A | International search |
| US4703480A | Cites | United States of America | A | International search |
| IEEE Transactions on Acoustics, Speech and Signal Processing, Vol. ASSP-27, No. 3. October 1979, J.S. TRIBOLET et al., "Frequency Domain Code of Speech", see pages 519-530. | Non-patent | – | – | International search |
| IEEE Trans. on Communications, Vol. Com 30, No. 4, April 1982, R.E. CROCHIERE et al., "Real-Time Speech Coding, see pages 626-633. | Non-patent | – | – | International search |
| IEEE Trans. on ASSP, Vol. ASSP-27, No. 1, February 1979, ZELINSKI et al., "Approaches to Adaptive Transform Speech Coding at Low Bit Rates", see entire document. | Non-patent | – | – | International search |
| P.J. WILSON, "Frequency Domain Coding of Speech Signals", Thesis, Submitted for Degree of Doctor of Philosophy of the University of London and the Diploma of Membership of Imperial College, Catalogued 9 September 1983, see pages 106-110, 130, 133, 143-147 and 164. | Non-patent | – | – | International search |
| IEEE Trans. on ASSP, Vol. ASSP-25, No. 4, August 1977, ZELINSKI et al., "Adaptive Transform Coding of Speech Signals", see entire documents. | Non-patent | – | – | International search |
| IRE Trans. on Information Theory, Vol. IT-6, March 1960, J. MAX, "Quanitizing for Minimum Distortion", see Abstract. | Non-patent | – | – | International search |
| Proceeding of the IEEE, Vol. 63, No. 4, April J. MAKHOUL, "Linear Prediction: A Tutorial Review", see Abstract and figures 3-7. | Non-patent | – | – | International search |
9 members in 6 offices; this record represents the family
Members9
| Document | Office | Kind | |
|---|---|---|---|
| WO8911718A1This record | World Intellectual Property Organization (WIPO) | A1 | |
| AU3773289A | Australia | A | |
| US4964166A | United States of America | A | |
| EP0416036A1 | European Patent Office (EPO) | A1 | |
| JPH03505929A | Japan | A | |
| EP0416036A4 | European Patent Office (EPO) | A4 | |
| CA1333940C | Canada | C | |
| EP0725384A2 | European Patent Office (EPO) | A2 | |
| EP0725384A3 | European Patent Office (EPO) | A3 |
5 legal events, as the office reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | |
|---|---|---|
| Wipo information: withdrawn in national officeWithdrawnWWW | WWW | |
| Wipo information: published in national officeWWP | WWP | |
| Wipo information: entry into national phaseWWE | WWE | |
| Designated statesAK | AK | |
| Designated countries for regional patentsAL | AL |
Numbers
- Publication
- 89/11718
- Application
- 8902296
Titles
- English
- IMPROVED ADAPTIVE TRANSFORM CODING
Classification
- CPC, 3
- G10L19/06
- G10L19/002
- G10L25/15
- IPC, 3
- G10L19 035
- G10L25 15
- G10L19 00
Designated states16
- Regional, 10
- Austria
- Belgium
- Switzerland
- Germany
- France
- United Kingdom
- Italy
- Luxembourg
- Netherlands (Kingdom of the)
- Sweden
- National, 6
- Australia
- Denmark
- Finland
- Japan
- Republic of Korea
- Norway