# Patent

## Title
Wideband speech coding with modulated noise highband excitation system and method

## Abstract

A speech encoder/decoder for wideband speech with a partitioning of wideband into lowband and highband, convenient coding of the lowband, and LP excited by noise plus some periodicity for the highband. The embedded lowband may be extracted for a lower bit rate decoder.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This application claims priority from provisional application: Ser. No. 60/206,156 and 60/206,154, filed 05/22/00. These referenced applications have a common assignee with the present application.


BACKGROUND OF THE INVENTION
The invention relates to electronic devices, and, more particularly, to speech coding, transmission, storage, and decoding/synthesis methods and systems.
The performance of digital speech systems using low bit rates has become increasingly important with current and foreseeable digital communications. Both dedicated channel and packetized-over-network (VoIP) transmission benefit from compression of speech signals. The widely-used linear prediction (LP) digital speech coding compression method models the vocal tract as a time-varying filter and a time-varying excitation of the filter to mimic human speech. Linear prediction analysis determines LP coefficients at), j=1,2, . . . , M, for an input frame of digital speech samples {s(n)} by setting

r(n)=s(n)−ΣM≧j≧1 a(j)s(n−j)  (1)

and minimizing Σr(n)2. Typically, M, the order of the linear prediction filter, is taken to be about 10-12; the sampling rate to form the samples s(n) is typically taken to be 8 kHz (the same as the public switched telephone network (PSTN) sampling for digital transmission); and the number of samples {s(n)} in a frame is often 80 or 160 (10 or 20 ms frames). Various windowing operations may be applied to the samples of the input speech frame. The name “linear prediction” arises from the interpretation of r(n)=s(n)−ΣM≧j≧1 a(j)s(n−j) as the error in predicting s(n) by the linear combination of preceding speech samples ΣM≧j≧1 a(j)s(n−j). Thus minimizing Σr(n)2 yields the {a(j)} which furnish the best linear prediction. The coefficients {a(j)} may be converted to line spectral frequencies (LSFs) for quantization and transmission or storage.

The {r(n)} form the LP residual for the frame, and ideally LP residual would be the excitation for the synthesis filter 1/A(z) where A(z) is the transfer function of equation (1). Of course, the LP residual is not available at the decoder; thus the task of the encoder is to represent the LP residual so that the decoder can generate an LP excitation from the encoded parameters. Physiologically, for voiced frames the excitation roughly has the form of a series of pulses at the pitch frequency, and for unvoiced frames the excitation roughly has the form of white noise.
The LP compression approach basically only transmits/stores updates for the (quantized) filter coefficients, the (quantized) residual (waveform or parameters such as pitch), and the (quantized) gain. A receiver regenerates the speech with the same perceptual characteristics as the input speech. FIG. 9 shows the blocks in an LP system. Periodic updating of the quantized items requires fewer bits than direct representation of the speech signal, so a reasonable LP coder can operate at bits rates as low as 2-3 kb/s (kilobits per second).
Indeed, the ITU standard G.729 Annex E with a bit rate of 11.8 kb/s uses LP analysis with codebook excitation (CELP) to compress voiceband speech and has performance comparable to the 64 kb/s PCM used for PSTN digital transmission.
However, the quality of even the G.729 Annex E standard does not meet the demand for high quality speech systems, and various proposals extend the coding to wideband (e.g., 0-7 kHz) speech without too large an increase in transmission bit rate.
The direct approach of applying LP coding to the full 0-8 kHz wideband increases the bit rate too much or degrades the quality. One alternative approach simply extrapolates from the (coded) 0-4 kHz lowband to a create a 4-8 kHz highband signal; see Chan et al, Quality Enhancement of Narrowband CELP-Coded Speech via Wideband Harmonic Re-Synthesis, IEEE ICASSP 1997, pp.1187-1190. Another approach uses split-band CELP or MPLPC by coding a 4-8 kHz highband separately from the 0-4 kHz lowband and with fewer bits allocated to the highband; see Drogo de Jacovo et al, Some Experiments of 7 kHz Audio Coding at 16 kbit/s, IEEE ICASSP 1989, pp. 192-195. Similarly, Tucker, Low Bit-Rate Frequency Extension Coding, IEE Colloquium on Audio and Music Technology 1998, pp. 3/1-3/5, provides standard coding of the lowband 0-4 kHz plus codes the 4-8 kHz highband speech only for unvoiced frames (as determined in the lowband) and uses an LP filter of order 2-4 with noise excitation. However, these approaches suffer from either too high a bit rate or too low a quality.
SUMMARY OF THE INVENTION
The present invention provides low-bit-rate wideband embedded speech coding/decoding by use of a partition of the wideband into a lowband with narrowband coding plus a highband with LP coding using a modulated noise excitation where the modulation derives from the lowband. The bits from the lowband and highband are combined for transmission or storage.
The narrowband coding may be an LP-based voiceband coder; and the highband coding may include spectral reversal so it can effectively use the voiceband coder's quantizer.
This has advantages including the capturing of the quality of wideband speech at low bit rates and the embedding of the voiceband coding in the wideband coding to allow for decoding bit rate choice.



BRIEF DESCRIPTION OF THE DRAWINGS
FIGS. 1a-1c show first preferred embodiments.
FIGS. 2a-2b illustrate frequency domain frames.
FIGS. 3a-3b show filtering.
FIGS. 4a-4b are block diagrams of G.729 encoder and decoder.
FIG. 5 shows spectrum reversal.
FIGS. 6-7 are the high portion of a lowband for a voiced frame and the envelope.
FIGS. 8-9 are block diagrams of systems.



DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
1. Overview
The preferred embodiment systems include preferred embodiment encoders and decoders that process a wideband speech frame as the sum of a lowband signal and a highband signal in which the lowband signal has standalone speech encoding/decoding and the highband signal has encoding/decoding incorporating information from the lowband signal to modulate a noise excitation. This allows for a minimal number of bits to sufficiently encode the highband and yields an embedded coder.
2. First Preferred Embodiment Systems
FIG. 1a shows in functional block format a first preferred embodiment system for wideband speech encoding, transmission (storage), and decoding including first preferred embodiment encoders and decoders. The encoders and decoders use CELP lowband encoding and decoding plus a highband encoding and decoding incorporating information from the (decoded) lowband for modulation of a noise excitation with LP coding.
As illustrated in FIG. 1b, first preferred embodiment encoders proceed as follows. Half-band filter 0-8 kHz wideband (16 kHz sampling rate) speech into a 0-4 kHz lowband signal plus a 4-8 kHz highband signal, and decimate the original sampling rate of 16 kHz by a factor of 2 for both the lowband and the highband to create two baseband signals each with a 8 kHz sampling rate. (Note that the baseband of the decimated highband has a reversed spectrum because the baseband is an aliased image; see FIG. 3b.) Next, encode the first baseband (decimated lowband) signal with a (standard) narrowband speech coder. For example, the ITU G.729 standard 8 kb/s uses 18 bits for quantized LP coefficients (three codebooks) per 10 ms (80 samples) frame, 14 bits for pitch delay (adaptive codebook), 34 bits for delayed excitation differential (fixed codebook), and 14 bits for gains. FIGS. 4a-4b show block diagrams of the encoder and decoder. G.729 Annex E provides higher quality with a higher bit rate (11.8 kb/s).
Then reverse the spectrum of the second baseband (decimated highband image) as in FIG. 5 and encode the signal with LP filter coefficients and noise excitation gain for a (modulated) noise excitation. Some of the first preferred embodiments use pitch-modulated noise excitation with the pitch-modulated noise excitation derived from the lowband through multiplying noise by the (envelope of the) 2.8-3.8 kHz subband of the first baseband signal. In this case the normalized (divided by the 2.8-3.8 kHz subband energy) excitation gain replaces the excitation gain in the code.
Lastly, combine the lowband and highband codes into a single bitstream which has the lowband code as an embedded substream. The following sections provide more detailed descriptions.
Decoding reverses the encoding process by separating the highband and lowband code, using information from the decoded lowband to help decode the highband, and adding the decoded highband to the decoded lowband speech to synthesize wideband speech. See FIG. 1c. This split-band approach allows most of the code bits to be allocated to the lowband; for example, the lowband may consume 11.8 kb/s and the highband may add 2.2 kb/s for a total of 14 kb/s.
The independence of the lowband's code from any highband information allows the narrowband coder bits to be embedded in the overall coder bitstream and to be extractable by a lower-bit-rate decoder for separate decoding. This split-band approach also ensures that a narrowband analog input signal, such as from a traditional telephone line (bandlimited to 3.4 kHz) can still be encoded well with the wideband preferred embodiment coding.
3. Coder Details
FIGS. 2a-2b illustrate the typical magnitudes of voiced and unvoiced speech, respectively, as functions of frequency over the range 0-8 kHz. As FIG. 2a shows, the bulk of the energy in voiced speech resides in the 0-3 kHz band. Further, the pitch structure (the fundamental frequency is about 125 Hz in FIG. 2a) clearly appears in the range 0-3.5 kHz and persists (although jumbled) at higher frequencies. But the perceptual critical bandwidth at higher frequencies is roughly 10% of a band center frequency, so the individual pitch harmonics become indistinguishable and should require fewer bits for inclusion in a highband code.
In contrast, FIG. 2b shows unvoiced-speech energy peaks in the 3.5-6.5 kHz band. However, the precise character of this highband signal contains little perceptual information.
Consequently, the higher band (above 4 kHz) should require fewer bits to encode than the lower band (0-4 kHz). This underlies the preferred embodiment methods of partitioning wideband (0-8 kHz) speech into a lowband (0-4 kHz) and a highband (4-8 kHz), recognizing that the lowband may be encoded by any convenient narrowband coder, and separately coding the highband with a A relatively small number of bits as described in the following sections.
FIG. 1b illustrates the flow of a first preferred embodiment speech coder which encodes at 14 kb/s with the following steps.
(1) Sample an input wideband speech signal (which is bandlimited to 8 kHz) at 16 kHz to obtain a sequence of wideband samples, wb(n). Partition the digital stream into 160-sample (10 ms) frames.
(2) Lowpass filter wb(n) with a passband of 0-4 kHz to yield lowband signal lb(n) and (later) also highpass filter wb(n) with a passband of 4-8 kHz to yield highband signal hb(n); this is just half-band filtering. Because both lb(n) and hb(n) have bandwidths of 4 kHz, the sampling rate of 16 kHz of both lb(n) and hb(n) can be decimated by a factor of 2 to a sampling rate of 8 kHz without loss of information. Thus let lbd(m) denote the baseband (0-4 kHz) version of lb(n) after decimation of the sampling rate by a factor of 2, and similarly let hbdr(m) denote the baseband (0-4 kHz) version of hb(n) after decimation of the sampling rate by a factor of 2. FIGS. 3a-3b illustrate the formation of lbd(m) and hbdr(m) in the frequency domain for a voiced frame, respectively; note that π on the frequency scale corresponds to one-half the sampling rate. The decimation by 2 creates spectrally reversed images, and the baseband hbdr(m) is reversed compared to hb(n). Of course, lbd(m) corresponds to the traditional 8 kHz sampling of speech for digitizing voiceband (0.3-3.4 kHz) analog telephone signals.
(3) Encode lbd(m) with a narrowband coder, for example the ITU standard 11.8 kb/s G.729 Annex E coder which provides very high speech quality as well as relatively good performance for music signals. This coder may use 80-sample (10 ms at a sampling rate of 8 kHz) frames which correspond to 160-sample (10 ms at a sampling rate of 16 kHz) frames of wb(n). This coder uses linear prediction (LP) coding with both forward and backward modes and encodes a forward mode frame with 18 bits for codebook quantized LP coefficients, 14 bits for codebook quantized gain (7 bits in each of two subframes), 70 bits for codebook quantized differential delayed excitation (35 bits in each subframe), and 16 bits for codebook quantized pitch delay and mode indication to total 118 bits for a 10 ms frame. A backward mode frame is similar except the 18 LP coefficient bits are instead used to increase the excitation codebook bits to 88.
(4) Using lbd(m), prepare a pitch-modulation waveform similar to that which will be used by the highband decoder as follows. First, apply a 2.8-3.8 kHz bandpass filter to the baseband signal lbd(m) to yield its high portion, lbdh(m). Then take the absolute value, |lbdh(m)|; a signal similar to this will be used by the decoder as a multiplier of a white-noise signal to be the excitation for the highband. Decoder step (5) in the following section provides more details.
(5) If not previously performed in step (2), highpass filter wb(n) with a passband of 4-8 kHz to yield highband signal hb(n), and then decimate the sampling rate by 2 to yield hbdr(m). This highband processing may follow the lowband processing (foregoing steps (2)-(4)) in order to reduce memory requirements of a digital signal processing system.
(6) Apply LP analysis to hbdr(m) and determine (highband) LP coefficients aHB(j) for an order M=10 filter plus estimate the energy of the residual rHB(m). The energy of rHB will scale the pitch-modulated white noise excitation of the filter for synthesis.
(7) Reverse the signs of alternate highband LP coefficients: this is equivalent to reversing the spectrum of hbdr(m) to hbd(m) and thereby relocating the higher energy portion of voiced frames into the lower frequencies as illustrated in FIG. 5. Energy in the lower frequencies permits effective use of the same LP codebook quantization used by the narrowband coder for lbd(m). In particular, voiced frames have a lowpass characteristic and codebook quantization efficiency for LSFs relies on such characteristic: G.729 uses split vector quantization of LSFs with more bits for the lower coefficients. Thus determine LSFs from the (reversed) LP coefficients ±aHB(j), and quantize with the quantization method of the narrowband coder for lbd(m) in step (4).
Alternatively, first reverse the spectrum of hbdr(m) to yield hbd(m) by modulating with a 4 kHz square wave, and then perform the LP analysis and LSF quantization. Either approach yields the same results.
(8) The excitation for the highband synthesis will be scaled noise modulated (multiplied) by an estimate of |lbdh(m)| where the scaling is set to have the excitation energy equal to the energy of the highband residual rHB(m). Thus normalize the residual energy level by dividing the energy of the highband residual by the energy of |lbdh(m)| which was determined in step (4). Lastly, quantize this normalized energy of the highband residual in place of the (non-normalized) energy of the highband residual which would be used for excitation when the pitch-modulation is omitted. That is, the use of pitch modulation for the highband excitation requires no increase in coding bits because the decoder derives the pitch modulation from the decoded lowband signal, and the energy of the highband residual takes the same number of coding bits whether or not normalization has been applied.
(9) Combine the output bits of the baseband lbd(m) coding of step (4) and the output bits of hbd(m) coding of steps (7-8) into a single bitstream.
Note that all of the items quantized typically would be differential values in that the preceding frame's values would be used as predictors, and only the differences between the actual and the predicted values would be encoded.
4. Decoder Details
A first preferred embodiment decoding method essentially reverses the encoding steps for a bitstream encoded by the first preferred embodiment method. In particular, for a coded frame in the bitstream:
(1) Extract the lowband code bits from the bitstream and decode (using the G.729 decoder) to synthesize lowband speech lbd′(m), an estimate of Ibd(m).
(2) Bandpass filter (2.8-3.8 kHz band) lbd′(m) to yield lbdh′;(m) and compute the absolute value |lbdh′(m)| as in the encoding.
(3) Extract the highband code bits, decode the quantized highband LP coefficients (derived from hbd(m)) and the quantized normalized excitation energy level (scale factor). Frequency reverse the LP coefficients (alternate sign reversals) to have the filter coefficients for an estimate of hbdr(m).
(4) Generate white noise and scale by the scale factor. The scale factor may be interpolated (using the adjacent frame's scale factor) every 20-sample subframe to yield a smoother scale factor.
(5) Modulate (multiply) the scaled white noise from (4) by waveform |lbdh′(m)| from (2) to form the highband excitation. FIG. 6 illustrates an exemplary lbdh′(m) for a voiced frame. In the case of unvoiced speech, the periodicity would generally be missing and lbdh′(m) would be more uniform and not significantly modulate the white-noise excitation.
The periodicity of lbdh′(m) roughly reflects the vestigial periodicity apparent in the highband portion of FIG. 2a and missing in FIG. 2b. This pitch modulation will compensate for a perceived noisiness of speech synthesized from a pure noise excitation for hbd(m) in strongly-voiced frames. The estimate uses the periodicity in the 2.8-3.8 kHz band of lbd′(m) because strongly-voiced frames with some periodicity in the highband tend to have periodicity in the upper frequencies of the lowband.
(6) Synthesize highband signal hbdr′(m) by using the frequencyreversed highband LP coefficients from (3) together with the modulated scaled noise from (5) as the excitation. The LP coefficients may be interpolated every 20 samples in the LSP domain to reduce switching artifacts.
(7) Upsample (interpolation by 2) synthesized (decoded) lowband signal lbd′(m) to a 16 kHz sampling rate, and lowpass filter (0-4 kHz band) to form lb′(n). Note that interpolation by 2 forms a spectrally reversed image of lbd′(m) in the 4-8 kHz band, and the lowpass filtering removes this image.
(8) Upsample (interpolation by 2) synthesized (decoded) highband signal hbdr′(m) to a 16 kHz sampling rate, and highpass filter (4-8 kHz band) to form hb′(n) which reverses the spectrum back to the original. The highpass filter removes the 0-4 kHz image.
(9) Add the two upsampled signals to form the synthesized (decoded) wideband speech signal: wb′(n)=lb′(n)+hb′(n).
5. System Preferred Embodiments
FIGS. 8-9 show in functional block form preferred embodiment systems which use the preferred embodiment encoding and decoding. The encoding and decoding can be performed with digital signal processors (DSPs) or general purpose programmable processors or application specific circuitry or systems on a chip such as both a DSP and RISC processor on the same chip with the RISC processor controlling. Codebooks would be stored in memory at both the encoder and decoder, and a stored program in an onboard ROM or external flash EEPROM for a DSP or programmable processor could perform the signal processing. Analog-to-digital converters and digital-to-analog converters provide coupling to the real world, and modulators and demodulators (plus antennas for air interfaces) provide coupling for transmission waveforms. The encoded speech can be packetized and transmitted over networks such as the Internet.
6. Second Preferred Embodiments
Second preferred embodiment coders and decoders follow the first preferred embodiment coders and decoders and partition the sampled input into a lowband and a highband, downsample, and apply a narrowband coder to the lowband. However, the second preferred embodiments vary the encoding of the highband with modulated noise-excited LP by deriving the modulation from the envelope of lbdh(m) rather than its absolute value. In particular, find the envelope en(m) of lbdh(m) by lowpass (0-1 kHz) filtering the absolute value |lbdh(m)| plus notch filtering to remove dc. FIG. 7 illustrates en(m) for the voiced speech of FIG. 6 in the time domain.
7. Modifications
The preferred embodiments may be modified in various ways while retaining the features of separately coding a lowband from a wideband signal and using information from the lowband to help encode the highband (remainder of the wideband) and/or using spectrum reversal for decimated highband LP coefficient quantization in order to obtain efficiency comparable to that for the lowband LP coefficient quantization.
For example, the upper (2.8-3.8 kHz) portion of the lowband (0-4 kHz) could be replaced by some other portion(s) of the lowband for use as a modulation for the highband excitation.
Further, the highband encoder/decoder may have its own LP analysis and quantization, so the spectral reversal would not be required; the wideband may be partitioned into a lowband plus two or more highbands; the lowband coder could be a parametric or even non-LP coder and a highband coder could be a waveform coder; and so forth.

## Claims

1. A method of wideband speech encoding, comprising:
(a) partitioning a frame of digital speech into a lowband and a highband;
(b) encoding said lowband;
(c) encoding said highband using a linear prediction excitation from noise modulated by a portion of said lowband; and
(d) combining said encoded lowband and said encoded highband to form an encoded wideband speech.

2. The method of claim 1, further comprising:
(a) decimating the sampling rate of both said lowband and said highband;
(b) encoding said decimated lowband from step (a) including a first method of quantization;
(c) reversing the spectrum of a baseband image of said decimated highband from step (a); and
(d) encoding the results of step (c) including said first method of quantization.

3. A method of wideband speech decoding, comprising:
(a) decoding a first portion of an input signal as a lowband speech signal;
(b) decoding a second portion of an input signal as a noise-modulated excitation of a linear prediction encoding wherein said noise modulated excitation is noise modulated by a portion of the results of said decoding as a lowband speech signal of preceding step (a); and
(c) combining the results of foregoing steps (a) and (b) to form a decoded wideband speech signal.

4. The method of claim 3, wherein:
(a) said decoding a first portion of an input signal as a lowband speech signal includes using a first codebook; and
(b) said decoding a second portion of an input signal as a highband speech signal includes using said first codebook.

5. A wideband speech encoder, comprising:
(a) a lowband filter and a highband filter for digital speech;
(b) a first encoder with input from said lowband filter;
(c) a second encoder with input from said highband filter and said lowband filter, said second encoder using an excitation from noise modulated by a portion of output from said lowband filter; and
(d) a combiner for the outputs of said first encoder and said second encoder to output encoded wideband speech.

6. The wideband speech encoder of claim 5, wherein:
(a) said first encoder uses a first quantizer; and
(b) said second encoder using said first quantizer.

7. A wideband speech decoder, comprising:
(a) a first speech decoder with an input for encoded narrowband speech;
(b) a second speech decoder with an Input for encoded highband speech and an input for the output of said first speech decoder, said second speech decoder using excitation of noise modulated by a portion of the output of said first speech decoder; and
(c) a combiner for the outputs of said first and second speech decoders to output decoded wideband speech.

8. The wideband speech decoder of claim 7, wherein:
(a) said first speech decoder with an input for encoded narrowband speech includes an LP codebook; and
(b) said second decoder using said LP codebook.