1. Field
The present invention pertains generally to the field of speech processing, and more specifically to methods and apparatus for predictively quantizing voiced speech.
2. Background
Transmission of voice by digital techniques has become widespread, particularly in long distance and digital radio telephone applications. This, in turn, has created interest in determining the least amount of information that can be sent over a channel while maintaining the perceived quality of the reconstructed speech. If speech is transmitted by simply sampling and digitizing, a data rate on the order of sixty-four kilobits per second (kbps) is required to achieve a speech quality of conventional analog telephone. However, through the use of speech analysis, followed by the appropriate coding, transmission, and resynthesis at the receiver, a significant reduction in the data rate can be achieved.
Devices for compressing speech find use in many fields of telecommunications. An exemplary field is wireless communications. The field of wireless communications has many applications including, e.g., cordless telephones, paging, wireless local loops, wireless telephony such as cellular and PCS telephone systems, mobile Internet Protocol (IP) telephony, and satellite communication systems. A particularly important application is wireless telephony for mobile subscribers.
Various over-the-air interfaces have been developed for wireless communication systems including, e.g., frequency division multiple access (FDMA), time division multiple access (TDMA), and code division multiple access (CDMA). In connection therewith, various domestic and international standards have been established including, e.g., Advanced Mobile Phone Service (AMPS), Global System for Mobile Communications (GSM), and Interim Standard 95 (IS-95). An exemplary wireless telephony communication system is a code division multiple access (CDMA) system. The IS-95 standard and its derivatives, IS-95A, ANSI J-STD-008, IS-95B, proposed third generation standards IS-95C and IS-2000, etc. (referred to collectively herein as IS-95), are promulgated by the Telecommunication Industry Association (TIA) and other well known standards bodies to specify the use of a CDMA over-the-air interface for cellular or PCS telephony communication systems. Exemplary wireless communication systems configured substantially in accordance with the use of the IS-95 standard are described in U.S. Pat. Nos. 5,103,459 and 4,901,307, which are assigned to the assignee of the present invention and fully incorporated herein by reference.
Devices that employ techniques to compress speech by extracting parameters that relate to a model of human speech generation are called speech coders. A speech coder divides the incoming speech signal into blocks of time, or analysis frames. Speech coders typically comprise an encoder and a decoder. The encoder analyzes the incoming speech frame to extract certain relevant parameters, and then quantizes the parameters into binary representation, i.e., to a set of bits or a binary data packet. The data packets are transmitted over the communication channel to a receiver and a decoder. The decoder processes the data packets, unquantizes them to produce the parameters, and resynthesizes the speech frames using the unquantized parameters.
The function of the speech coder is to compress the digitized speech signal into a low-bit-rate signal by removing all of the natural redundancies inherent in speech. The digital compression is achieved by representing the input speech frame with a set of parameters and employing quantization to represent the parameters with a set of bits. If the input speech frame has a number of bits Ni and the data packet produced by the speech coder has a number of bits N0, the compression factor achieved by the speech coder is Cr=Ni/N0. The challenge is to retain high voice quality of the decoded speech while achieving the target compression factor. The performance of a speech coder depends on (1) how well the speech model, or the combination of the analysis and synthesis process described above, performs, and (2) how well the parameter quantization process is performed at the target bit rate of N0 bits per frame. The goal of the speech model is thus to capture the essence of the speech signal, or the target voice quality, with a small set of parameters for each frame.
Perhaps most important in the design of a speech coder is the search for a good set of parameters (including vectors) to describe the speech signal. A good set of parameters requires a low system bandwidth for the reconstruction of a perceptually accurate speech signal. Pitch, signal power, spectral envelope (or formants), amplitude spectra, and phase spectra are examples of the speech coding parameters.
Speech coders may be implemented as time-domain coders, which attempt to capture the time-domain speech waveform by employing high time-resolution processing to encode small segments of speech (typically 5 millisecond (ms) subframes) at a time. For each subframe, a high-precision representative from a codebook space is found by means of various search algorithms known in the art. Alternatively, speech coders may be implemented as frequency-domain coders, which attempt to capture the short-term speech spectrum of the input speech frame with a set of parameters (analysis) and employ a corresponding synthesis process to recreate the speech waveform from the spectral parameters. The parameter quantizer preserves the parameters by representing them with stored representations of code vectors in accordance with known quantization techniques described in A. Gersho & R. M. Gray, Vector Quantization and Signal Compression (1992).
A well-known time-domain speech coder is the Code Excited Linear Predictive (CELP) coder described in L. B. Rabiner & R. W. Schafer, Digital Processing of speech Signals 396453 (1978), which is fully incorporated herein by reference. In a CELP coder, the short term correlations, or redundancies, in the speech signal are removed by a linear prediction (LP) analysis, which finds the coefficients of a short-term formant filter. Applying the short-term prediction filter to the incoming speech frame generates an LP residue signal, which is further modeled and quantized with long-term prediction filter parameters and a subsequent stochastic codebook. Thus, CELP coding divides the task of encoding the time-domain speech waveform into the separate tasks of encoding the LP short-term filter coefficients and encoding the LP residue. Time-domain coding can be performed at a fixed rate (i.e., using the same number of bits, N0, for each frame) or at a variable rate (in which different bit rates are used for different types of frame contents). Variable-rate coders attempt to use only the amount of bits needed to encode the codec parameters to a level adequate to obtain a target quality. An exemplary variable rate CELP coder is described in U.S. Pat. No. 5,414,796, which is assigned to the assignee of the present invention and fully incorporated herein by reference.
Time-domain coders such as the CELP coder typically rely upon a high number of bits, N0, per frame to preserve the accuracy of the time-domain speech waveform. Such coders typically deliver excellent voice quality provided the number of bits, N0, per frame is relatively large (e.g., 8 kbps or above). However, at low bit rates (4 kbps and below), time-domain coders fail to retain high quality and robust performance due to the limited number of available bits. At low bit rates, the limited codebook space clips the waveform-matching capability of conventional time-domain coders, which are so successfully deployed in higher-rate commercial applications. Hence, despite improvements over time, many CELP coding systems operating at low bit rates suffer from perceptually significant distortion typically characterized as noise.
There is presently a surge of research interest and strong commercial need to develop a high-quality speech coder operating at medium to low bit rates (i.e., in the range of 2.4 to 4 kbps and below). The application areas include wireless telephony, satellite communications, Internet telephony, various multimedia and voice-streaming applications, voice mail, and other voice storage systems. The driving forces are the need for high capacity and the demand for robust performance under packet loss situations. Various recent speech coding standardization efforts are another direct driving force propelling research and development of low-rate speech coding algorithms. A low-rate speech coder creates more channels, or users, per allowable application bandwidth, and a low-rate speech coder coupled with an additional layer of suitable channel coding can fit the overall bit-budget of coder specifications and deliver a robust performance under channel error conditions.
One effective technique to encode speech efficiently at low bit rates is multimode coding. An exemplary multimode coding technique is described in U.S. application Ser. No. 09/217,341, entitled VARIABLE RATE SPEECH CODING, filed Dec. 21, 1998, now U.S. Pat. No. 6,691,084, issued Feb. 10, 2004, assigned to the assignee of the present invention, and fully incorporated herein by reference. Conventional multimode coders apply different modes, or encoding-decoding algorithms, to different types of input speech frames. Each mode, or encoding-decoding process, is customized to optimally represent a certain type of speech segment, such as, e.g., voiced speech, unvoiced speech, transition speech (e.g., between voiced and unvoiced), and background noise (silence, or nonspeech) in the most efficient manner. An external, open-loop mode decision mechanism examines the input speech frame and makes a decision regarding which mode to apply to the frame. The open-loop mode decision is typically performed by extracting a number of parameters from the input frame, evaluating the parameters as to certain temporal and spectral characteristics, and basing a mode decision upon the evaluation.
Coding systems that operate at rates on the order of 2.4 kbps are generally parametric in nature. That is, such coding systems operate by transmitting parameters describing the pitch-period and the spectral envelope (or formants) of the speech signal at regular intervals. Illustrative of these so-called parametric coders is the LP vocoder system.
LP vocoders model a voiced speech signal with a single pulse per pitch period. This basic technique may be augmented to include transmission information about the spectral envelope, among other things. Although LP vocoders provide reasonable performance generally, they may introduce perceptually significant distortion, typically characterized as buzz.
In recent years, coders have emerged that are hybrids of both waveform coders and parametric coders. Illustrative of these so-called hybrid coders is the prototype-waveform interpolation (PWI) speech coding system. The PWI coding system may also be known as a prototype pitch period (PPP) speech coder. A PWI coding system provides an efficient method for coding voiced speech. The basic concept of PWI is to extract a representative pitch cycle (the prototype waveform) at fixed intervals, to transmit its description, and to reconstruct the speech signal by interpolating between the prototype waveforms. The PWI method may operate either on the LP residual signal or on the speech signal. An exemplary PWI, or PPP, speech coder is described in U.S. application Ser. No. 09/217,494, entitled PERIODIC SPEECH CODING, filed Dec. 21, 1998, now U.S. Pat. No. 6,456,964, issued Sep. 24, 2002, assigned to the assignee of the present invention, and fully incorporated herein by reference. Other PWI, or PPP, speech coders are described in U.S. Pat. No. 5,884,253 and W. Bastiaan Kleijn & Wolfgang Granzow, Methods for Waveform Interpolation in Speech Coding, in 1 Digital Signal Processing 215-230 (1991).
In most conventional speech coders, the parameters of a given pitch prototype, or of a given frame, are each individually quantized and transmitted by the encoder. In addition, a difference value is transmitted for each parameter. The difference value specifies the difference between the parameter value for the current frame or prototype and the parameter value for the previous frame or prototype. However, quantizing the parameter values and the difference values requires using bits (and hence bandwidth). In a low-bit-rate speech coder, it is advantageous to transmit the least number of bits possible to maintain satisfactory voice quality. For this reason, in conventional low-bit-rate speech coders, only the absolute parameter values are quantized and transmitted. It would be desirable to decrease the number of bits transmitted without decreasing the informational value. Thus, there is a need for a predictive scheme for quantizing voiced speech that decreases the bit rate of a speech coder.
The present invention is directed to a predictive scheme for quantizing voiced speech that decreases the bit rate of a speech coder. Accordingly, in one aspect of the invention, a method of quantizing information about a parameter of speech is provided. The method advantageously includes generating at least one weighted value of the parameter for at least one previously processed frame of speech, wherein the sum of all weights used is one; subtracting the at least one weighted value from a value of the parameter for a currently processed frame of speech to yield a difference value; and quantizing the difference value.
In another aspect of the invention, a speech coder configured to quantize information about a parameter of speech is provided. The speech coder advantageously includes means for generating at least one weighted value of the parameter for at least one previously processed frame of speech, wherein the sum of all weights used is one; means for subtracting the at least one weighted value from a value of the parameter for a currently processed frame of speech to yield a difference value; and means for quantizing the difference value.
In another aspect of the invention, an infrastructure element configured to quantize information about a parameter of speech is provided. The infrastructure element advantageously includes a parameter generator configured to generate at least one weighted value of the parameter for at least one previously processed frame of speech, wherein the sum of all weights used is one; and a quantizer coupled to the parameter generator and configured to subtract the at least one weighted value from a value of the parameter for a currently processed frame of speech to yield a difference value, and to quantize the difference value.
In another aspect of the invention, a subscriber unit configured to quantize information about a parameter of speech is provided. The subscriber unit advantageously includes a processor; and a storage medium coupled to the processor and containing a set of instructions executable by the processor to generate at least one weighted value of the parameter for at least one previously processed frame of speech, wherein the sum of all weights used is one, and subtract the at least one weighted value from a value of the parameter for a currently processed frame of speech to yield a difference value, and to quantize the difference value.
In another aspect of the invention, a method of quantizing information about a phase parameter of speech is provided. The method advantageously includes generating at least one modified value of the phase parameter for at least one previously processed frame of speech; applying a number of phase shifts to the at least one modified value, the number of phase shifts being greater than or equal to zero; subtracting the at least one modified value from a value of the phase parameter for a currently processed frame of speech to yield a difference value; and quantizing the difference value.
In another aspect of the invention, a speech coder configured to quantize information about a phase parameter of speech is provided. The speech coder advantageously includes means for generating at least one modified value of the phase parameter for at least one previously processed frame of speech; means for applying a number of phase shifts to the at least one modified value, the number of phase shifts being greater than or equal to zero; means for subtracting the at least one modified value from a value of the phase parameter for a currently processed frame of speech to yield a difference value; and means for quantizing the difference value.
In another aspect of the invention, a subscribed unit configured to quantize information about a phase parameter of speech is provided. The subscriber unit advantageously includes a processor; and a storage medium coupled to the processor and containing a set of instructions executable by the processor to generate at least one modified value of the phase parameter for at least one previously processed frame of speech, apply a number of phase shifts to the at least one modified value, the number of phase shifts being greater than or equal to zero, subtract the at least one modified value from a value of the parameter for a currently processed frame of speech to yield a difference value, and to quantize the difference value.
The exemplary embodiments described hereinbelow reside in a wireless telephony communication system configured to employ a CDMA over-the-air interface. Nevertheless, it would be understood by those skilled in the art that a method and apparatus for predictively coding voiced speech embodying features of the instant invention may reside in any of various communication systems employing a wide range of technologies known to those of skill in the art.
As illustrated in
During typical operation of the cellular telephone system, the base stations 12 receive sets of reverse link signals from sets of mobile units 10. The mobile units 10 are conducting telephone calls or other communications. Each reverse link signal received by a given base station 12 is processed within that base station 12. The resulting data is forwarded to the BSCs 14. The BSCs 14 provide call resource allocation and mobility management functionality including the orchestration of soft handoffs between base stations 12. The BSCs 14 also route the received data to the MSC 16, which provides additional routing services for interface with the PSTN 18. Similarly, the PSTN 18 interfaces with the MSC 16, and the MSC 16 interfaces with the BSCs 14, which in turn control the base stations 12 to transmit sets of forward link signals to sets of mobile units 10. It should be understood by those of skill that the subscriber units 10 may be fixed units in alternate embodiments.
In
The speech samples s(n) represent speech signals that have been digitized and quantized in accordance with any of various methods known in the art including, e.g., pulse code modulation (PCM), companded μ-law, or A-law. As known in the art, the speech samples s(n) are organized into frames of input data wherein each frame comprises a predetermined number of digitized speech samples s(n). In an exemplary embodiment, a sampling rate of 8 kHz is employed, with each 20 ms frame comprising 160 samples. In the embodiments described below, the rate of data transmission may advantageously be varied on a frame-by-frame basis from full rate to (half rate to quarter rate to eighth rate. Varying the data transmission rate is advantageous because lower bit rates may be selectively employed for frames containing relatively less speech information. As understood by those skilled in the art, other sampling rates and/or frame sizes may be used. Also in the embodiments described below, the speech encoding (or coding) mode may be varied on a frame-by-frame basis in response to the speech information or energy of the frame.
The first encoder 100 and the second decoder 110 together comprise a first speech coder (encoder/decoder), or speech codec. The speech coder could be used in any communication device for transmitting speech signals, including, e.g., the subscriber units, BTSs, or BSCs described above with reference to
In
The pitch estimation module 204 produces a pitch index IP and a lag value P0 based upon each input speech frame s(n). The LP analysis module 206 performs linear predictive analysis on each input speech frame s(n) to generate an LP parameter a. The LP parameter a is provided to the LP quantization module 210. The LP quantization module 210 also receives the mode M, thereby performing the quantization process in a mode-dependent manner. The LP quantization module 210 produces an LP index ILP and a quantized LP parameter â. The LP analysis filter 208 receives the quantized LP parameter â in addition to the input speech frame s(n). The LP analysis filter 208 generates an LP residue signal R[n], which represents the error between the input speech frames s(n) and the reconstructed speech based on the quantized linear predicted parameters â. The LP residue R[n], the mode M, and the quantized LP parameter a are provided to the residue quantization module 212. Based upon these values, the residue quantization module 212 produces a residue index IR and a quantized residue signal {circumflex over (R)}[n].
In
Operation and implementation of the various modules of the encoder 200 of
In one embodiment, illustrated in
The encoder 400 includes a parameter calculator 406, a mode classification module 408, a plurality of encoding modes 410, and a packet formatting module 412. The number of encoding modes 410 is shown as n, which one of skill would understand could signify any reasonable number of encoding modes 410. For simplicity, only three encoding modes 410 are shown, with a dotted line indicating the existence of other encoding modes 410. The decoder 402 includes a packet disassembler and packet loss detector module 414, a plurality of decoding modes 416, an erasure decoder 418, and a post filter, or speech synthesizer, 420. The number of decoding modes 416 is shown as n, which one of skill would understand could signify any reasonable number of decoding modes 416. For simplicity, only three decoding modes 416 are shown, with a dotted line indicating the existence of other decoding modes 416.
A speech signal, s(n), is provided to the parameter calculator 406. The speech signal is divided into blocks of samples called frames. The value n designates the frame number. In an alternate embodiment, a linear prediction (LP) residual error signal is used in place of the speech signal. The LP residue is used by speech coders such as, e.g., the CELP coder. Computation of the LP residue is advantageously performed by providing the speech signal to an inverse LP filter (not shown). The transfer function of the inverse LP filter, A(z), is computed in accordance with the following equation:
A(z)=1−a1z−1−a2z−2− . . . −apz−p, EQ. 1
in which the coefficients a1 are filter taps having predefined values chosen in accordance with known methods, as described in the aforementioned U.S. Pat. No. 5,414,796 and U.S. Pat. No. 6,456,964. The number p indicates the number of previous samples the inverse LP filter uses for prediction purposes. In a particular embodiment, p is set to ten.
The parameter calculator 406 derives various parameters based on the current frame. In one embodiment these parameters include at least one of the following: linear predictive coding (LPC) filter coefficients, line spectral pair (LSP) coefficients, normalized autocorrelation functions (NACFs), open-loop lag, zero crossing rates, band energies, and the formant residual signal. Computation of LPC coefficients, LSP coefficients, open-loop lag, band energies, and the formant residual signal is described in detail in the aforementioned U.S. Pat. No. 5,414,796. Computation of NACFs and zero crossing rates is described in detail in the aforementioned U.S. Pat. No. 5,911,128.
The parameter calculator 406 is coupled to the mode classification module 408. The parameter calculator 406 provides the parameters to the mode classification module 408. The mode classification module 408 is coupled to dynamically switch between the encoding modes 410 on a frame-by-frame basis in order to select the most appropriate encoding mode 410 for the current frame. The mode classification module 408 selects a particular encoding mode 410 for the current frame by comparing the parameters with predefined threshold and/or ceiling values. Based upon the energy content of the frame, the mode classification module 408 classifies the frame as nonspeech, or inactive speech (e.g., silence, background noise, or pauses between words), or speech. Based upon the periodicity of the frame, the mode classification module 408 then classifies speech frames as a particular type of speech, e.g., voiced, unvoiced, or transient.
Voiced speech is speech that exhibits a relatively high degree of periodicity. A segment of voiced speech is shown in the graph of
Classifying the speech frames is advantageous because different encoding modes 410 can be used to encode different types of speech, resulting in more efficient use of bandwidth in a shared channel such as the communication channel 404. For example, as voiced speech is periodic and thus highly predictive, a low-bit-rate, highly predictive encoding mode 410 can be employed to encode voiced speech. Classification modules such as the classification module 408 are described in detail in the aforementioned U.S. Pat. No. 6,691,084 and in U.S. application Ser. No. 09/259,151 entitled CLOSED-LOOP MULTIMODE MIXED-DOMAIN LINEAR PREDICTION (MDLP) SPEECH CODER, filed Feb. 26, 1999, now U.S. Pat. No. 6,640,209, issued Oct. 28, 2003, assigned to the assignee of the present invention, and fully incorporated herein by reference.
The mode classification module 408 selects an encoding mode 410 for the current frame based upon the classification of the frame. The various encoding modes 410 are coupled in parallel. One or more of the encoding modes 410 may be operational at any given time. Nevertheless, only one encoding mode 410 advantageously operates at any given time, and is selected according to the classification of the current frame.
The different encoding modes 410 advantageously operate according to different coding bit rates, different coding schemes, or different combinations of coding bit rate and coding scheme. The various coding rates used may be full rate, half rate, quarter rate, and/or eighth rate. The various coding schemes used may be CELP coding, prototype pitch period (PPP) coding (or waveform interpolation (WI) coding), and/or noise excited linear prediction (NELP) coding. Thus, for example, a particular encoding mode 410 could be full rate CELP, another encoding mode 410 could be half rate CELP, another encoding mode 410 could be quarter rate PPP, and another encoding mode 410 could be NELP.
In accordance with a CELP encoding mode 410, a linear predictive vocal tract model is excited with a quantized version of the LP residual signal. The quantized parameters for the entire previous frame are used to reconstruct the current frame. The CELP encoding mode 410 thus provides for relatively accurate reproduction of speech but at the cost of a relatively high coding bit rate. The CELP encoding mode 410 may advantageously be used to encode frames classified as transient speech. An exemplary variable rate CELP speech coder is described in detail in the aforementioned U.S. Pat. No. 5,414,796.
In accordance with a NELP encoding mode 410, a filtered, pseudo-random noise signal is used to model the speech frame. The NELP encoding mode 410 is a relatively simple technique that achieves a low bit rate. The NELP encoding mode 410 may be used to advantage to encode frames classified as unvoiced speech. An exemplary NELP encoding mode is described in detail in the aforementioned U.S. Pat. No. 6,456,964.
In accordance with a PPP encoding mode 410, only a subset of the pitch periods within each frame are encoded. The remaining periods of the speech signal are reconstructed by interpolating between these prototype periods. In a time-domain implementation of PPP coding, a first set of parameters is calculated that describes how to modify a previous prototype period to approximate the current prototype period. One or more codevectors are selected which, when summed, approximate the difference between the current prototype period and the modified previous prototype period. A second set of parameters describes these selected codevectors. In a frequency-domain implementation of PPP coding, a set of parameters is calculated to describe amplitude and phase spectra of the prototype. This may be done either in an absolute sense, or predictively as described hereinbelow. In either implementation of PPP coding, the decoder synthesizes an output speech signal by reconstructing a current prototype based upon the first and second sets of parameters. The speech signal is then interpolated over the region between the current reconstructed prototype period and a previous reconstructed prototype period. The prototype is thus a portion of the current frame that will be linearly interpolated with prototypes from previous frames that were similarly positioned within the frame in order to reconstruct the speech signal or the LP residual signal at the decoder (i.e., a past prototype period is used as a predictor of the current prototype period). An exemplary PPP speech coder is described in detail in the aforementioned U.S. Pat. No. 6,456,964.
Coding the prototype period rather than the entire speech frame reduces the required coding bit rate. Frames classified as voiced speech may advantageously be coded with a PPP encoding mode 410. As illustrated in
The selected encoding mode 410 is coupled to the packet formatting module 412. The selected encoding mode 410 encodes, or quantizes, the current frame and provides the quantized frame parameters to the packet formatting module 412. The packet formatting module 412 advantageously assembles the quantized information into packets for transmission over the communication channel 404. In one embodiment the packet formatting module 412 is configured to provide error correction coding and format the packet in accordance with the IS-95 standard. The packet is provided to a transmitter (not shown), converted to analog format, modulated, and transmitted over the communication channel 404 to a receiver (also not shown), which receives, demodulates, and digitizes the packet, and provides the packet to the decoder 402.
In the decoder 402, the packet disassembler and packet loss detector module 414 receives the packet from the receiver. The packet disassembler and packet loss detector module 414 is coupled to dynamically switch between the decoding modes 416 on a packet-by-packet basis. The number of decoding modes 416 is the same as the number of encoding modes 410, and as one skilled in the art would recognize, each numbered encoding mode 410 is associated with a respective similarly numbered decoding mode 416 configured to employ the same coding bit rate and coding scheme.
If the packet disassembler and packet loss detector module 414 detects the packet, the packet is disassembled and provided to the pertinent decoding mode 416. If the packet disassembler and packet loss detector module 414 does not detect a packet, a packet loss is declared and the erasure decoder 418 advantageously performs frame erasure processing as described in a related U.S. Pat. No. 6,584,438, entitled FRAME ERASURE COMPENSATION METHOD IN A VARIABLE RATE SPEECH CODER, issued Jun. 24, 2003, assigned to the assignee of the present invention, and fully incorporated herein by reference.
The parallel array of decoding modes 416 and the erasure decoder 418 are coupled to the post filter 420. The pertinent decoding mode 416 decodes, or de-quantizes, the packet and provides the information to the post filter 420. The post filter 420 reconstructs, or synthesizes, the speech frame, outputting synthesized speech frames, ŝ(n). Exemplary decoding modes and post filters are described in detail in the aforementioned U.S. Pat. No. 5,414,796 and U.S. Pat. No. 6,456,964.
In one embodiment the quantized parameters themselves are not transmitted. Instead, codebook indices specifying addresses in various lookup tables (LUTs) (not shown) in the decoder 402 are transmitted. The decoder 402 receives the codebook indices and searches the various codebook LUTs for appropriate parameter values. Accordingly, codebook indices for parameters such as, e.g., pitch lag, adaptive codebook gain, and LSP may be transmitted, and three associated codebook LUTs are searched by the decoder 402.
In accordance with a CELP encoding mode 410, pitch lag, amplitude, phase, and LSP parameters are transmitted. The LSP codebook indices are transmitted because the LP residue signal is to be synthesized at the decoder 402. Additionally, the difference between the pitch lag value for the current frame and the pitch lag value for the previous frame is transmitted.
In accordance with a conventional PPP encoding mode in which the speech signal is to be synthesized at the decoder, only the pitch lag, amplitude, and phase parameters are transmitted. The lower bit rate employed by conventional PPP speech coding techniques does not permit transmission of both absolute pitch lag information and relative pitch lag difference values.
In accordance with one embodiment, highly periodic frames such as voiced speech frames are transmitted with a low-bit-rate PPP encoding mode 410 that quantizes the difference between the pitch lag value for the current frame and the pitch lag value for the previous frame for transmission, and does not quantize the pitch lag value for the current frame for transmission. Because voiced frames are highly periodic in nature, transmitting the difference value as opposed to the absolute pitch lag value allows a lower coding bit rate to be achieved. In one embodiment this quantization is generalized such that a weighted sum of the parameter values for previous frames is computed, wherein the sum of the weights is one, and the weighted sum is subtracted from the parameter value for the current frame. The difference is then quantized.
In one embodiment, predictive quantization of LPC parameters is performed in accordance with the following description. The LPC parameters are converted into line spectral information (LSI) (or LSPs), which are known to be more suitable for quantization. The N-dimensional LSI vector for the Mth frame may be denoted as LM≡LMn; n=0,1, . . . N−1. In the predictive quantization scheme, the target error vector, T, for quantization is computed in accordance with the following equation:
in which LMn is the unquantized N-dimensional LSI vector for the Mth frame; the values {ÛM−1n, Û, . . . , ÛM−Pn; n=0,1, . . . , N−1} are the contributions of the LSI parameters of a number of frames, P, immediately prior to frame M; and the values {β1n, β2n, . . . , βPn; n=0,1, . . . , N−1} are respective weights such that {β0n+β1n+, . . . , +βPn=1; n=0,1, . . . , N−1}.
The contributions, Û, can be equal to the quantized or unquantized LSI parameters of the corresponding past frame. Such a scheme is known as an auto regressive (AR) method. Alternatively, the contributions, Û, can be equal to the quantized or unquantized error vector corresponding to the LSI parameters of the corresponding past frame. Such a scheme is known as a moving average (MA) method.
The target error vector, T, is then quantized to {circumflex over (T)} using any of various known vector quantization (VQ) techniques including, e.g., split VQ or multistage VQ. Various VQ techniques are generally described in A. Gersho & R. M. Gray, Vector Quantization and Signal Compression (1992). The quantized LSI vector is then reconstructed from the quantized target error vector, {circumflex over (T)}, using the following equation:
{circumflex over (L)}
M
n=β0n{circumflex over (T)}Mn+β1nÛM−1n+β2nÛM−2n+ . . . +βPnÛM−Pn; n=0,1, . . . , N−1. EQ. 3
In one embodiment the above-described quantization scheme provided by EQ. 2 is implemented with P=2, N=0, and
The above-listed target vector, T, may advantageously be quantized using sixteen bits through the well known split VQ method.
Due to their periodic nature, voiced frames can be coded using a scheme in which the entire set of bits is used to quantize one prototype pitch period, or a finite set of prototype pitch periods, of the frame of a known length. This length of the prototype pitch period is called the pitch lag. These prototype pitch periods, and possibly the prototype pitch periods of adjacent frames, may then be used to reconstruct the entire speech frame without loss of perceptual quality. This PPP scheme of extracting the prototype pitch period from a frame of speech and using these prototypes for reconstructing the entire frame is described in the aforementioned U.S. Pat. No. 6,456,964.
In one embodiment a quantizer 500 is used to quantize highly periodic frames such as voiced frames in accordance with a PPP coding scheme, as shown in
The prototype extractor 502 extracts a pitch period prototype from a frame of speech, s(n). In an alternate embodiment, the frame is a frame of LP residue. The prototype extractor 502 provides the pitch period prototype to the frequency domain converter 504. The frequency domain converter 504 transforms the prototype from a time-domain representation to a frequency-domain representation in accordance with any of various known methods including, e.g., discrete Fourier transform (DFT) or fast Fourier transform (FFT). The frequency domain converter 504 generates an amplitude vector and a phase vector. The amplitude vector is provided to the amplitude quantizer 506, and the phase vector is provided to the phase quantizer 508. The amplitude quantizer 506 quantizes the set of amplitudes, generating a quantized amplitude vector, Â, and the phase quantizer 508 quantizes the set of phases, generating a quantized phase vector, {circumflex over (Φ)}.
Other schemes for coding voiced frames, such as, e.g., multiband excitation (MBE) speech coding and harmonic coding, transform the entire frame (either LP residue or speech) or parts thereof into frequency-domain values through Fourier transform representations comprising amplitudes and phases that can be quantized and used for synthesis into speech at the decoder (not shown). To use the quantizer of
Certain parameters must be quantized for any of the above voiced frame coding schemes. These parameters are the pitch lag or the pitch frequency, and the prototype pitch period waveform of pitch lag length, or the short-term spectral representations (e.g., Fourier representations) of the entire frame or a piece thereof.
In one embodiment predictive quantization of the pitch lag or the pitch frequency is performed in accordance with the following description. The pitch frequency and the pitch lag can be uniquely obtained from one another by scaling the reciprocal of the other with a fixed scale factor. Consequently, it is possible to quantize either of these values using the following method. The pitch lag (or the pitch frequency) for the frame ‘m’ may be denoted Lm. The pitch lag, Lm, can be quantized to a quantized value, {circumflex over (L)}m, according to the following equation:
{circumflex over (L)}
m
={circumflex over (δ)}L
m+ηm
in which the values Lm
δLm=Lm−ηm
and quantized to {circumflex over (δ)}Lm using any of various known scalar or vector quantization techniques. In a particular embodiment, a low-bit-rate, voiced speech coding scheme was implemented that quantizes δLm=Lm−Lm−1 using only four bits.
In one embodiment quantization of the prototype pitch period or the short-term spectrum of the entire frame or parts thereof is performed in accordance with the following description. As discussed above, the prototype pitch period of a voiced frame can be quantized effectively (in either the speech domain or the LP residual domain) by first transforming the time-domain waveform into the frequency domain where the signal can be represented as a vector of amplitudes and phases. All or some elements of the amplitude and phase vectors can then be quantized separately using a combination of the methods described below. Also as mentioned above, in other schemes such as MBE or harmonic coding schemes, the complex short-term frequency spectral representations of the frame can be decomposed into amplitudes and phase vectors. Therefore, the following quantization methods, or suitable interpretations of them, can be applied to any of the above-described coding techniques.
In one embodiment amplitude values may be quantized as follows. The amplitude spectrum may be a fixed-dimension vector or a variable-dimension vector. Further, the amplitude spectrum can be represented as a combination of a lower dimensional power vector and a normalized amplitude spectrum vector obtained by normalizing the original amplitude spectrum with the power vector. The following method can be applied to any, or parts thereof, of the above-mentioned elements (namely, the amplitude spectrum, the power spectrum, or the normalized amplitude spectrum). A subset of the amplitude (or power, or normalized amplitude) vector for frame ‘m’ may be denoted Am. The amplitude (or power, or normalized amplitude) prediction error vector is first computed using the following equation:
δAm=Am−αm
in which the values Am
The prediction error vector can then be quantized using any of various known VQ methods to a quantized error vector denoted {circumflex over (δ)}Am. The quantized version of Am is then given by the following equation:
Â
m
={circumflex over (δ)}A
m+αm
The weights α establish the amount of prediction in the quantization scheme. In a particular embodiment, the above-described predictive scheme has been implemented to quantize a two-dimensional power vector using six bits, and to quantize a nineteen-dimensional, normalized amplitude vector using twelve bits. In this manner, it is possible to quantize the amplitude spectrum of a prototype pitch period using a total of eighteen bits.
In one embodiment phase values may be quantized as follows. A subset of the phase vector for frame ‘m’ may be denoted φm. It is possible to quantize φm as being equal to the phase of a reference waveform (time domain or frequency domain of the entire frame or a part thereof), and zero or more linear shifts applied to one or more bands of the transformation of the reference waveform. Such a quantization technique is described in U.S. application Ser. No. 09/356,491, entitled METHOD AND APPARATUS FOR SUBSAMPLING PHASE SPECTRUM INFORMATION, filed Jul. 19, 1999, now U.S. Pat. No. 6,397,175, issued May 28, 2002, assigned to the assignee of the present invention, and fully incorporated herein by reference. Such a reference waveform could be a transformation of the waveform of frame mN, or any other predetermined waveform.
For example, in one embodiment employing a low-bit-rate, voiced speech coding scheme, the LP residue of frame ‘m−1’ is first extended according to a pre-established pitch contour (as has been incorporated into the Telecommunication Industry Association Interim Standard TIA/EIA IS-127), into the frame ‘m.’ Then a prototype pitch period is extracted from the extended waveform in a manner similar to the extraction of the unquantized prototype of the frame ‘m’. The phases, φm−1′, of the extracted prototype are then obtained. The following values are then equated: φm=φm−1′. In this manner it is possible to quantize the phases of the prototype of the frame ‘m’ by predicting from the phases of a transformation of the waveform of frame ‘m−1’ using no bits.
In a particular embodiment, the above-described predictive quantization schemes have been implemented to code the LPC parameters and the LP residue of a voiced speech frame using only thirty-eight bits.
Thus, a novel and improved method and apparatus for predictively quantizing voiced speech have been described. Those of skill in the art would understand that the data, instructions, commands, information, signals, bits, symbols, and chips that may be referenced throughout the above description are advantageously represented by voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof. Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. The various illustrative components, blocks, modules, circuits, and steps have been described generally in terms of their functionality. Whether the functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans recognize the interchangeability of hardware and software under these circumstances, and how best to implement the described functionality for each particular application. As examples, the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented or performed with a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components such as, e.g., registers and FIFO, a processor executing a set of firmware instructions, any conventional programmable software module and a processor, or any combination thereof designed to perform the functions described herein. The processor may advantageously be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The software module could reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. As illustrated in
Preferred embodiments of the present invention have thus been shown and described. It would be apparent to one of ordinary skill in the art, however, that numerous alterations may be made to the embodiments herein disclosed without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited except in accordance with the following claims.
This application is a continuation of U.S. application Ser. No. 10/897,746, filed on Jul. 22, 2004, which is a continuation of U.S. application Ser. No. 09/557,282, filed on Apr. 24, 2000, which are assigned to the assignee of the present application. U.S. application Ser. No. 10/897,746 and U.S. application Ser. No. 09/557,282 are hereby incorporated by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 10897746 | Jul 2004 | US |
Child | 12190524 | US | |
Parent | 09557282 | Apr 2000 | US |
Child | 10897746 | US |