Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
ADPCM SPEECH CODING SYSTEM WITH PHASE-SMEARING AND PHASE-DESMEARING FILTERS
Document Type and Number:
WIPO Patent Application WO/2002/082426
Kind Code:
A1
Abstract:
In a speech coding system with a speech encoder and a speech decoder cooperating with said speech encoder, the speech encoder comprises a pre-processor and an ADPCM (adaptive differential pulse code modulation) encoder with a quantizer and step-size adaptation means, while the speech decoder comprises an ADPCM decoder with similar step-size adaptation means as in the ADPCM encoder and a decoder, and a post-processor. The pre-processor is provided with phase-smearing filtering means to smooth the effect of high and/or rapid energy changes at the input of the quantizer, while the post-processor is provided with filtering means inverse to said phase-smearing filtering means.

Inventors:
GIGI ERCAN F
Application Number:
PCT/IB2002/001009
Publication Date:
October 17, 2002
Filing Date:
March 27, 2002
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
KONINKL PHILIPS ELECTRONICS NV (NL)
International Classes:
G10L19/26; H03M7/38; H04B1/66; H04B14/06; (IPC1-7): G10L19/14
Other References:
RICHARD A. WAINWRIGHT: "ON THE POTENTIAL ADVANTAGE OF A SMEARING-DESMEARING FILTER TECHNIQUE IN OVERCOMING IMPULSE-NOISE PROBLEMS IN DATA SYSTEMS", IRE TRANSACTIONS ON COMMUNICATION SYSTEMS, vol. CS, no. 9, December 1961 (1961-12-01), pages 362 - 366, XP001079895
KALET I ET AL: "The capacity of PCM voiceband channels", PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON COMMUNICATIONS (ICC). GENEVA, MAY 23 - 26, 1993, NEW YORK, IEEE, US, vol. 3, 23 May 1993 (1993-05-23), pages 507 - 511, XP010136953, ISBN: 0-7803-0950-2
CUPERMAN V ET AL: "Spectral excitation coding of speech at 2.4 kb/s", ACOUSTICS, SPEECH, AND SIGNAL PROCESSING, 1995. ICASSP-95., 1995 INTERNATIONAL CONFERENCE ON DETROIT, MI, USA 9-12 MAY 1995, NEW YORK, NY, USA,IEEE, US, 9 May 1995 (1995-05-09), pages 496 - 499, XP010151263, ISBN: 0-7803-2431-5
Attorney, Agent or Firm:
Schoenmaker, Maarten (Internationaal Octrooibureau B.V. Prof. Holstlaan 6 AA Eindhoven, NL)
Download PDF:
Claims:
CLAIMS:
1. Speech coding system with a speech encoder and a speech decoder cooperating with said speech encoder, the speech encoder comprising a pre-processor and an ADPCM (adaptive differential pulse code modulation) encoder with a quantizer and step-size adaptation means and the speech decoder comprising an ADPCM decoder with similar step- size adaptation means as in the ADPCM encoder and a decoder, and a post-processor, characterized in that the pre-processor is provided with phase-smearing filtering means to smooth the effect of high and/or rapid energy changes at the input of the quantizer and the post-processor is provided with filtering means inverse to said phase-smearing filtering means.
2. Speech coding system according to claim 1, characterized in that the pre-and post-processor comprise a time-to-frequency transformation unit to transform frames of time domain samples of audio signals to the frequency domain, processings means to process the samples in the frequency domain and a frequency-to-time transformation unit to transform the latter processed samples to the time-domain, the processing means in the pre-processor being provided with phase-smearing filtering and warping means and the processing means in the post-processor being provided with unwarping means and inverse phase-smearing filtering means.
3. Speech coding system according to claim 2, characterized in that the phase- smearing filtering means comprise a filter with a substantially constant amplitude characteristic and a varying phase characteristic both in the frequency domain.
4. Speech coding system according to claim 2 or 3, characterized in that in the pre-processor the filtering means and the warping means are coupled one after the other.
5. Speech coding system according to claim 2,3 or 4, characterized in that in the post-processor the unwarping means and the inverse filtering means are coupled one after the other.
6. Speech coding system according to any one of the preceding claims, characterized in that the frequency response of the phase-smearing filtering means is in accordance with the relation: P(k) = exp [-j#. k (k-½N)N-1] with 0#k#½N.
7. Speech coding system according to any one of the claims 1-5, characterized in that the frequency response of the phase-smearing filtering is in accordance with the relation: P (k) = exp [Ajrrsin (2#kN-1) with O< k< 3iN and A a constant, dependent on the desired smearing.
Description:
ADPCM SPEECH CODING SYSTEM WITH PHASE-SMEARING AND PHASE-DESMEARING FILTERS

The present invention relates to a speech coding system with a speech encoder and a speech decoder cooperating with said speech encoder, the speech encoder comprising a pre-processor and an ADPCM (adaptive differential pulse code modulation) encoder with a quantizer and step-size adaptation means and the speech decoder comprising an ADPCM decoder with similar step-size adaptation means as in the ADPCM encoder and a decoder, and a post-processor.

It has been observed that close-microphone voice recordings reduce or eliminate the effect of the room acoustics on a voice signal by minimizing the distance of the voice source (the mouth) to the microphone, like in a handset of a telephone. When these voice signals are processed in the encoder of a standard P2CM audio coding system, i. e. a pre-processed ADPCM encoder, problems occur with respect to reproducing the pulse like character of the close-microphone voice recording compared to the recording from a larger distance. An ADPCM coder is provided with a quantizer in which the input signal thereof, i. e. the difference between a sampled audio input signal and a predicted quantized value thereof, is quantized with a step-size which is adapted to the quantizer input signal. At pulse- like regions in close-microphone voice recording, the input signal for the quantizer in the ADPCM coder may be too high and too fast for the quantizer to adapt its step-size. The reverberations in the room smear the energy of the voice signal over time, allowing a slower adaptation of the step-size.

Therefore, to improve the performance of the P2CM audio coding system for pulse-like signals, the ADPCM encoder input signal has to be processed in such a way that the input for the quantizer is free of rapid energy increases over short time frames. The output of the speech decoder should, however, sound like the original, without any artifacts. So the option of simulating the room effect to produce a distant version of the original recording and applying the coding on this signal, is not good enough.

The purpose of the invention is to mitigate the above problem and to provide for a speech coding system with an improved recording and reproduction, particularly for pulse-like voice signals.

According to the invention, the speech coding system, as described in the opening paragraph, is characterized in that the pre-processor is provided with phase-smearing filtering means to smooth the effect of high and/or rapid energy changes at the input of the quantizer and the post-processor is provided with filtering means inverse to said phase- smearing filtering means.

Although phase-smearing filtering can be done in time-domain, it is preferred to perform this filtering, in case the pre-processor and the post-processor are provided with spectral amplitude warping means and means to undo the effect of such a warping respectively, in the frequency domain because said warping means and unwarping means are operable in the frequency domain. Therefore, particularly, phase-smearing and warping are performed in the same processing block as well as the inverse phase-smearing and unwarping. Because phase-smearing is a linear process, while spectral amplitude warping is a non linear process, both processes are not integrated with each other but are performed one after another in the frequency domain; the filtered signals are subjected to warping. Spectral amplitude warping is known per se; see: R. Lefebre, C. Laflamme ;"Spectral Amplitude Warping (SAW) for Noise Spectrum Shaping in Audio Coding", ICASSP, Vol. 1, p. 335- 338,1997.

These and other aspects of the invention will be apparent from and elucidated with reference to the drawing and the embodiment described hereinafter. In the drawing: Fig. 1 shows a block diagram of a P2CM coding system with means for pre- and post-processing, including phase-smearing filtering means and inverse phase-smearing filtering means respectively, operable in time domain; Fig. 2A, 2B are block diagrams of an ADPCM encoder and an ADPCM decoder respectively; Figs. 3A-3D show various characteristics of a first embodiment of a phase smearing filter; Figs. 4A-4D show various characteristics of a second embodiment of a phase smearing filter; Fig. 5 is a block diagram of a pre-/post-processor for a P2CM audio encoder and decoder, in which the phase smearing is operable in frequency domain; and Fig. 6 shows the framing and windowing in the pre-processor.

The P2CM audio coding system in fig. 1 is constituted by an encoder 1 and a decoder 2. The encoder 1 comprises a pre-processor 3 and an ADPCM encoder 4, while the decoder 2 is provided with an ADPCM decoder 5 and a post-processor 6. The ADPCM encoder 4 is illustrated in fig. 2A and the ADPCM decoder 5 in fig. 2B.

As an example, in the P2CM audio encoder 1 a PCM input signal is segmented into frames of e. g. 10 milliseconds. With e. g. a sampling frequency of 8 kHz a frame consists of 80 samples. Each sample is represented by e. g. 16 bits. This input signal is supplied to the pre-processor 3, while the output signal obtained in response thereto is supplied to the ADPCM encoder 4. A further input signal for the ADPCM encoder 4 is formed by a codec mode signal CMS, which determines the bit allocation for the code words in the bitstream output of the ADPCM encoder 4. The ADPCM encoder 4 produces a code word for each sample in the pre-processed signal frame. The code words are then packed into frames of, in the present example 80 codes. Depending on the chosen codec mode, the resulting bitstream has a bit-rate of e. g. 11. 2,12.8,16,19.2,21.6,24 or 32 kbits/s.

In the P2CM audio decoder 2 the input of the ADPCM decoder 5 is formed by a bitstream of code frames and the codec mode. In the present example the code frames consist of 80 codes, which are decoded by the ADPCM decoder 5 to form a PCM output frame of 80 samples, which are subjected to post-processing in the post-processor 6.

In the pre-processor 3 the signal characteristics are changed such that the resulting signal is better suited for coding. The pre-processing modifies the signal spectrum prior to encoding. Therefore, a non-linear transformation, e. g. a sqare root transformation, may be applied to the spectral amplitudes. By such a transformation, called"spectral amplitude warping", relatively small spectral amplitudes are increased with respect to relatively strong spectral amplitudes in order to keep an important part of them above the quantizer noise introduced in the ADPCM encoder 4. In order to modify the signal spectrum in such a way, the pre-processor 3 comprises a processing device 7 with a time-to-frequency transformation unit to transform frames of time domain samples of audio signals to the frequency domain, spectral amplitude warping means, and a frequency-to-time transformation unit to transform the warped audio signals from the frequency-domain to the time domain. This transformation is reversible at the P2CM audio decoder side without need for additional bits to be sent. Therefore, the post-processor 6 comprises processing means 8 with a time-to-frequency transformation unit to transform frames of time domain samples of audio signals to the frequency domain, means to undo the effect of spectral amplitude

warping done in the pre-processor at the encoder side and a frequency-to-time transformation unit to transform the unwarped audio signals from the frequency-domain to the time domain.

The ADPCM encoder 4 as illustrated in fig. 2A comprises a quantizer block 9, a step-size adaptation block 10, a decoder block 11, and a predictor block 12. The input for the ADPCM encoder 4 is a sampled audio signal provided by the pre-processor 3. When a sample n has a value s (n), for every input value s (n) the difference between this value and the estimated (predicted) value s (n-1) is taken as an error signal e (n) which is then quantized and encoded by the quantizer block 9, giving the output code c (n). The output code c (n) forms a bitstream which is sent or transmitted and received by the ADPCM decoder 5 of the P2CM audio coder. In fig. 1 this is indicated by the broken line 13. The output code c (n) is also used for the adaptation of the quantizer step-size An by block 10 and by the decoder block 11 to get a quantized error signal e\' (n). The quantized error signal e\' (n) is added to the predicted value s (n-1) resulting in the quantized input value s\' (n). s\' (n) is used by the predictor block 12 to adapt its prediction coefficients.

The ADPCM decoder 5 is just a sub-set of the encoder 4; it reads the received quantized code c (n) from the bitstream and uses the same as the encoder 4 to update its internal variables. The ADPCM decoder 5, therefore, comprises a step-size adaptation block 14, a decoder block 15 and a predictor block 16. The output of the decoder block 15 is the quantized error signal e\' (n), which, after being added to the predicted value s (n-1), gives the quantized audio signal s\' (n).

Although not further indicated in figs. 2A and 2B the codec mode signal CMS forms an input signal too for the decoder block 11 in the ADPCM encoder 4 and for the decoder block 15 in the ADPCM decoder 5.

In stead of the above ADPCM encoder and decoder other encoders and decoders will be applicable too.

As already mentioned in the introductory part of the description problems occur with respect to reproducing the pulse like character of the close-microphone recording compared to the recording from a larger distance. At pulse-like regions in close-microphone recording, the input signal for the quantizer block 9 becomes too high and too fast for the quantizer to adapt its step-size An.

According to the invention, the solution to this problem is to use a phase- smearing filter in the P CM audio encoder 1. This filter has an all-pass characteristic which means that the signal energy for all frequencies remain unchanged. It is also easy to revert back to the original unfiltered form by using the time-inversed version of the same filter in

the P2CM audio decoder 2. Fig. 1 shows the phase-smearing filter 17. The input thereof is formed by the PCM input signals of the P2CM audio encoder 1, while the filtered output signals are supplied to the processing block 7. In the phase-smearing filter 17 a Finite Impulse Response (FIR) filtering operation is performed with p (m) as the filter impulse response, L the filter length, s (n) the input signal and sp (n) the filtered output signal according to the relation: L-1 sp (n) = E s (n-m) p (m) (A) m=O The inverse phase-smearing is done by means of the inverse phase-smearing filter 18 at the output of the processing block 8 in the P2CM audio decoder 2 with the same filter, but with reversed time order according to the relation: L-1 s\' (n) = E sp\'(n-m). p (L-1-m) (B) m=O with sp\' (n) the input signal and s\' (n) the filtered output signal. This operation will result in a total delay of length L at the output. A large processing delay is undesirable if the coder is used for communication, e. g. telephone services. Therefore, the filter length L must be kept as small as possible.

Because filtering in time-domain requires a relatively large filter length, it is preferred to perform the filtering in frequency domain. In the following an example of a phase-smearing filter, where the filter is constructed in the frequency domain, using a constant amplitude and a varying phase for each frequency component, is given. The frequency response of this filter is in accordance with the relation: P (k) = exp [-jTr. k (k-hN) N-l] with O< k< » N. (C) For real-valued data, the negative frequency axis must be the symmetric: R {P (k)} = R {P (N-k)} and I {P (k)} =-I {P (N-k)} with KN< k< N, (D) where R and I are respectively the real and imaginary parts of the spectrum Transformation into time domain is according to the relation:

N-t P(n+l/2L) = 1/N. E P (k). exp [2Trjkn/N] with-l/2LSn< l/2L. (E) k=0 The DFT (Discrete Fourier Transform) length N and the filter length L can both be set to the same value. The filter is in fact a sinusoid with linear increasing frequency between 0 and the nyquist-frequency fN. The filter characteristics are illustrated in figs. 3A-3D. Fig. 3A shows the amplitude-time dependency, fig. 3B the amplitude-frequency dependency, fig. 3C the frequency-time dependency and fig. 3D the relation of the unwrapped phase against the frequency.

Although this filter works quite well, it is not optimal. There are two criteria to be taken into account by the design of the filter: One is that, in general, the lower frequencies in voiced speech (below 1 kHz) are already smeared over time, due to glottal pulse shape.

Another is that for high frequencies (above 3 kHz) the energy of the voiced speech is relatively low. Also, the band-pass filtering done in many application areas, like in telephone speech between 300 and 3400 Hz, suggest a more efficient use of the available filter length by applying more phase-smearing between 1 and 3 kHz.

Therefore, in a preferred embodiment the following frequency response is used in P2CM for the generation of the phase-smearing filter : P (k) = exp [Ajnsin (2nkN\'\') with 0< k< » N. (F) The constant A will be dependent on the desired smearing, particularly on the filter length and thus the used windowing. The characteristics of such a filter are illustrated in figs. 4A- 4D. These figures correspond with figs. 3A-3D.

The DFT length may be set to 256. The effective filter length is approximately 96 (12 milliseconds). With this filter length is favorable choice of the constant A is 6.44. The value of 96 comes from the difference between the used input window length (256) and the output window length (160) of the pre-/post-processor. This enables the inclusion of the phase-smearing filter within the processing block 7 and the inverse filter in the processing block 8, as will explained in more detail in the following.

Fig. 5 shows a block diagram of a pre-processor 3. The pre-processor comprises an input window forming unit 19, a FFT unit 20, a phase-smearing filtering and spectral amplitude warping unit 21, an inverse FFT (IFFT) unit 22, an output window forming unit 23 and an overlap-and-add unit 24. In the present example the 80 samples input

frames of the input window forming unit 19 are shifted in a buffer of 256 samples to form the input window s (n) (see: fig. 6). The input window type is a rectangle with the same length as the input window, so no extra operation is needed for weighting. The spectrum S (k) is computed using a 256-point FFT 20. After subjecting the signal S (k) to phase-smearing and spectral amplitude warping successively, the obtained signal Sf, (k) is transformed in the IFFT 22, thereby obtaining the time-representation sfi (n) of this signal. To allow a smooth transition between two successive frames, overlap-and-add is used with a Hanning output window of 20 ms (160 samples). This output window is centered within the FFT buffer of 256 samples. An extra delay of 32 samples is added to get a multiple of the frame length (160 samples) as the total delay of this process. This alignment delay is only needed for the pre- processor to ensure the synchronous data framing between the pre-and the post-processor.

The construction of the post-processor is the same as the pre-processor with only the difference that in a unit corresponding with the unit 21 the effect of spectral amplitude warping is undone and an inverse phase-smearing filter is applied successively. As spectral amplitude warping and unwarping both work in the frequency domain, the phase-smearing and the corresponding inverse processing can also be done in the frequency domain.

Although an exact transformation from time domain to frequency domain for the filter operation should imply separate processing blocks, it can be approximated through inclusion within the existing warping/unwarping block. In this way, not only the processing time of the filter reduces, also the extra processing delay can be eliminated. The time-domain filtering operation of formulas (A) and (B) are replaced by the frequency domain filtering operation of formulas (G) for the pre-processor and formulas (H) for the post-processor: R {Sp (k)} = R {S (k)}. R {P (k)}-I {S (k)}. I {P (k)} I {Sp (k)} = I {S (k)}. R {P (k)} + R {S (k)}. I {P (k)} (G) and R {Sp (k)} = R {S (k)}. R {P (k)} + I {S (k)}. I {P (k)} I {Sp (k)} = I {S (k)}. R {P (k)}-R {S (k)}. I {P (k)} (H) with 0< k< ! N.

S (k), P (k) and Sp (k) are the Fourier transforms of the corresponding functions s (n), p (n) and sp (k) respectively in formulas (A) and (B) and R and I the real and imaginary parts of these signals.

It should be clear that this approximation to the separate processing blocks for the filtering has a disadvantage: The spectral amplitude warping operation within the pre- processor is done using amplitude values from unprocessed input windows, whereas the

unwarping operation within the post-processor is done using amplitude values from the phase-smeared version of this signal. If the correlation between successive frames is low, this can introduce artifacts. In practice, however, this correlation seems high enough such that the quality degradation due to this approximation remains negligible.

Another simplification is done by dropping the extra delay that is added at the output of the pre-processor. This delay was introduced to synchronize the inputs for the pre- and post-processor. Because of the inserted phase-smearing, this synchronization is not more possible as each frequency component has a different delay.

The embodiment described above is realized by an algorithm which may be in the form of a computer program capable of running on signal processing means in a P2CM audio encoder and decoder. In so far parts of the figures show units to perform certain programmable functions, these units must be considered as subparts of the computer program.

The invention described is not restricted to the described embodiments.

Modifications thereon are possible. Particularly it may be noticed that the frequency response functions and the values mentioned in the described embodiments are only given as an example; other frequency response functions and values are possible.