SPEECH CODING

Abstract: A decoder for speech signals has means for receiving magnitude spectral information for synthesis of a time-varying signal; means (7) for computing, from the magnitude spectral information, phase spectrum information corresponding to a minimum phase filter which has a magnitude spectrum corresponding to the magnitude spectral information; means (8) for generating, from the magnitude spectral information and the phase spectral information, the time-varying signal; and phase adjustment means (31, 32) operable to modify the phase spectrum of the signal.

Description: SPEECH CODING The present invention is concerned with speech coding and decoding, and especially with systems in which the coding process fails to convey all or any of the phase information contained in the signal being coded. According to one aspect of the present invention there is provided a decoder for speech signals comprising: means for receiving magnitude spectral information for synthesis of a time- varying signal; means for computing, from the magnitude spectral information, phase spectrum information corresponding to a minimum phase filter which has a magnitude spectrum corresponding to the magnitude spectral information; means for generating, from the magnitude spectral information and the phase spectral information, the time-varying signal; and phase adjustment means operable to modify the phase spectrum of the signal. In another aspect the invention provides a decoder for decoding speech signals comprising information defining the response of a minimum phase synthesis filter and, for synthesis of an excitation signal, magnitude spectral information, the decoder comprising: means for generating, from the magnitude spectral information, an excitation signal; a synthesis filter controlled by the response information and connected to filter the excitation signal; and phase adjustment means for estimating a phase-adjustment signal to modify the phase of the signal. In a further aspect, the invention provides a method of coding and decoding speech signals, comprising: (a) generating signals representing the magnitude spectrum of the speech signal; (b) receiving the signals; (c) generating from the received signals a synthetic speech signal having a magnitude spectrum determined by the received signals and having a phase spectrum which corresponds to a transfer function having, when considered as a z- plane plot, at least one pole outside the unit circle. Some embodiments of the invention will now be described, by way of example, with reference to the accompanying drawings, in which: Figure 1 is a block diagram of a known speech coder and decoder; Figure 2 illustrates a model of the human vocal system; Figure 3 is a block diagram of a speech decoder according to one embodiment of the present invention; Figures 4 and 5 are charts showing test results obtained for the decoder of Figure 3; Figure 6 is a graph of the shape of a (known) Rosenberg pulse; Figure 7 is a block diagram of a second form of speech decoder according to the invention; Figure 8 is a block diagram of a known type of speech coder, Figure 9 is a block diagram of a third embodiment of decoder in accordance with the invention, for use with the coder of Figure 9, and Figure 10 is a z-plane plot illustrating the invention This first example assumes that a sinusoidal transform coding (STC) technique is employed for the coding and decoding of speech signals. This technique was proposed by McAulay and Quatieri and is described in their paper "Speech Analysis/Synthesis based on a Sinusoidal Representation" , R. J. McAulay and T. F. Quatieri, IEEE Trans. Acoust. Speech Signal Process. ASSP-34, pp. 744- 754, 1986; and "Low-rate Speech Coding based on the Sinusoidal Model" by the same authors, in "Advances in Speech Signal Processing" , Ed. S. Furui and M. M. Sondhi, Marcel Dekker Inc., 1 992. The principles are illustrated in Figure 1 where a coder receives speech samples s(n) in digital form at an input 1 ; segments of speech of typically 20 ms duration are subject to Fourier analysis in a Fast Fourier Transform unit 2 to determine the short term frequency spectrum of the speech Specifically it is the amplitudes and frequencies of the peaks in the magnitude spectrum that are of interest, the frequencies being assumed - in the case of voiced speech - to be harmonics of a pitch frequency which is derived by a pitch detector 3. The phase spectrum is, in the interests of transmission efficiency, not to be transmitted and a representation of the magnitude spectrum, for transmission to a decoder, is in this example obtained by fitting an envelope to the magnitude spectrum and characterising this envelope by a set of coefficients (e.g. LSP (line spectral pair) coefficients}. This function is performed by a conversion unit 4 which receives the Fourier coefficients and performs the curve fit and a unit 5 which converts the envelope to LSP coefficients which form the output of the coder. The corresponding decoder is also shown in Figure 1 . This receives the envelope information, but, lacking the phase information, has to reconstruct the phase spectrum based on some assumption. The assumption used is that the magnitude spectrum represented by the received LSP coefficients is the magnitude spectrum of a minimum-phase transfer function - which amounts to the assumption that the human vocal system can be regarded as a minimum phase filter impulsively excited. Thus a unit 6 derives the magnitude spectrum from the received LSP coefficients and a unit 7 calculates the phase spectrum which corresponds to this magnitude spectrum based on the minimum phase assumption. From the two spectra a sinusoidal synthesiser 8 generates the sum of a set of sinusoids, harmonic with the pitch frequency, having amplitudes and phases determined by the spectra. In sinusoidal speech synthesis, a synthetic speech signal y(n) is constructed by the sum of sine waves: y{n) = ∑ A k cos(ω k n + φ k ) . = ! where A k and φ k represent the amplitude and phase of each sine wave component associated with the frequency track ω k , and N is the number of sinusoids. Although this is not a prerequisite, it is common to assume that the sinusoids are harmonically related, thus: (n)=∑ ∞s(ψ k +φ k ) 4 = 1 where where φ k (n) represents the instantaneous relative phase of the harmonics, ψ k (n) represents the instantaneous linear phase component, and ω 0 (n) is the instantaneous fundamental pitch frequency. A simple example of sinusoidal synthesis is the overlap and add technique. In this scheme A k (n), ω 0 (n) and ψ k (n) are updated periodically, and are assumed to be constant for the duration of a short, for example 10 ms, frame. The t'th signal frame is thus synthesised as follows Λ' y' (n) = i A cos(kω ' 0 n + φ ) 4 *=ι Note that this is essentially an inverse discrete Fourier transform Discontinuities at frame boundaries are avoided by combining adjacent frames as follows: y ' (n) = W( )y'- (n) + W(n - T)y' (n - T) 5 where W(n) is an overlap and add window, for example triangular or trapezoidal, T is the frame duration expressed as a number of sample periods and W(n) + W(n - T) = \ 6 In an alternative approach, y(n) may be calculated continuously by interpolating the amplitude and phase terms in equation 2. In such schemes, the magnitude component A k (n) is often interpolated linearly between updates, whilst a number of techniques have been reported for interpolating the phase component. In one approach (McAulay and Quatieri) the instantaneous combined phase (Ψ k (n) + φ(n)) and pitch frequency ω 0 (n) are specified at each update potnt. The interpolated phase trajectory can then be represented by a cubic polynomial. In another approach (Kleijn) ψ k (n) and φ(n) are interpolated separately. In this case φ(n) is specified directly at the update points and linearly interpolated, whilst the instantaneous linear phase component ψ k (n) is specified at the update points in terms of the pitch frequency ω 0 (n), and only requires a quadratic polynomial interpolation. From the discussion presented above, it is clear that a sinusoidal synthesiser can be generalised as a unit that produces a continuous signal y{n) from periodically updated values of A k (n), ω 0 (n) and φ k (n). The number of sinusoids may be fixed or time-varying. Thus we are interested in sinusoidal synthesis schemes where the original phase information is unavailable and φ k must be derived in some manner at the synthesiser. Whilst the system of Figure 1 produces reasonably satisfactory results, the coder and decoder now to be described offers alternative assumptions as to the phase spectrum. The notion that the human vocal apparatus can be viewed as an impulsive excitation e(n) consisting of a regular series of delta functions driving a time-varying filter H(z) (where z is the z-transform variable) can be refined by considering H(z) to be formed by three filters, as illustrated in Figure 2, namely a glottal filter 20 having a transfer function G(z), a vocal tract filter 21 having a transfer function V(z) and a lip radiation filter 22 with a transfer function L(z). In this description, the time-domain representations of variables and the impulse responses of filters are shown in lower case, whilst their z transforms and frequency domain representations are denoted by the same letters in upper case. Thus we may write for the speech signal s(n): s(n) = e(n) ® h(n) = e(n) ®g(n)®v{n)® l(n) 7 or S(z) = E(z) H(z) = E(z)G(z) V(z)L(z) 8 Since the spectrum of e(n) is a series of lines at the pitch frequency harmonics, it follows that at the frequency of each harmonic the magnitude of s is: S(e'") = E(e' ω ) H(e lω )\= )\ where A is a constant determined by the amplitude of e(n). and the phase is: arg(S(e J " ) )) = aτg(E(e "" )) + arg(H(e " ϋ )) = 2mπ + aτg(H(e " ϋ )) 1 0 Where m is any integer. Assuming that the magnitude spectrum at the decoder of Figure 1 corresponds to | H(e iω ) | the regenerated speech will be degraded to the extent that the phase spectrum used differs from arg(H(e' ω )). Considering now the components G, V and L, minimum phase is a good assumption for the vocal tract transfer function V(z) Typically this may be represented by an all-pole model having the transfer function V(z) = ~ i 1 1 - I where p, are the poles of the transfer function and are directly related to the formant frequencies of the speech, and P is the number of poles The lip radiation filter may be regarded as a differentiator for which: L(z) = \ -α∑- 1 1 2 where α represents a single zero having a value close to unity (typically 0.95). Whilst the minimum phase assumption is good for V(z) and L(z), it is believed to be less valid for G(z). Noting that any filter transfer function can be represented as the product of a minimum phase function and an all pass filter, we may suppose that: The decoder shortly to be described with reference to Figure 3 is based on the assumption that the magnitude spectrum associated with G is that corresponding to G mm (z) = - l 14 π 1 = 1 α-A*- 1) The decoder proceeds on the assumption that an appropriate transfer function for G ap is (\-β^){\-β,z- [ ) G z) = 15 (1 *-')(! ---') ?, β> The corresponding phase spectrum for G ap is φ f (ω) ) -tan '( ) 16 β 2 -cosω In the decoder of Figure 3, items 6, 7 and 8 are as in Figure 1. However, the phase spectrum computed at 7 is adjusted. A unit 31 receives the pitch frequency and calculates values of φ in accordance with Equation (17) for the relevant values of ω - i.e. harmonics of the pitch frequency for the current frame of speech. These are then added in an adder 32 to the minimum-phase values, prior to the sinusoidal synthesiser 8. Experiments were conducted on the decoder of Figure 3, with a fixed value βi = β 2 = 0.8 (though - as will be discussed below - varying β is also possible). These showed an improvement in measured phase error (as shown in Figure 4) and also in subjective tests (Figure 5) in which listeners were asked to listen to the 5 output of four decoders and place them in order of preference for speech quality. The choices were scored: first choice = 4, second = 3, third = 2 and fourth = 1 ; and the scores added. The results include figures for a Rosenberg pulse. As described by A.E.Rosenberg in "Effect of Glottal Pulse Shape on the Quality of Natural Vowels", 0 J. Acoust. Soc. of America. Vol 49, No. 2, 1 971 , pp. 583-590, this is a pulse shape postulated for the output of the glottal filter G. The shape of a Rosenberg pulse is shown in Figure 6 and is defined as: g(t) = A(3(t / T,, ) 2 - 2(t / T l ) O ≤ t ≤ T,, t - T,, g(t) = A(\ - ( Ϋ) T, < t ≤ T + T, g(t) = 0 T p + T, < t ≤ p 1 7 where p is the pitch period and T P and T N are the glottal opening and closing times 5 respectively. An alternative to Equation 1 6, therefore, is to apply at 31 a computed phase equal to the phase of g(t) from Equation ( 17), as shown in Figure 7. However, in order that the component of the Rosenberg pulse spectrum that can be represented by a minimum phase transfer function is not applied twice, the magnitude spectrum 0 corresponding to Equation 1 7 is calculated at 71 and subtracted from the amplitude values before they are processed by the phase spectrum calculation unit 7. The results given are for T P = 0.33P, T N = 0 1 P. The same considerations may be applied to arrangements in which a coder attempts to deconvolve the glottal excitation and the vocal tract response - so-called 5 linear predictive coders. Here (Figure 8) input speech is analysed (60) frame-by frame to determine parameters of a filter having a spectral response similar to that of the input speech. The coder then sets up a filter 61 having the inverse of this response and the speech signal is passed through this inverse filter to produce a residual signal r(n) which ideally would have a flat spectrum and which in practice is flatter than that of the original speech. The coder transmits details of the filter response, along with information (63) to enable the decoder to construct (64) an excitation signal which is to some extent similar to the residual signal and can be used by the decoder to drive a synthesis filter 65 to produce an output speech signal. Many proposals have been made for different ways of transmitting the residual information, e.g. (a) sending for voiced speech a pitch period and gain value to control a pulse generator and for unvoiced speech a gain value to control a noise generator; (b) a quantised version of the residual (RELP coding) (c) a vector- quantised version of the residual (CELP coding) (d) a coded representation of an irregular pulse train (MPLPC coding) (e) particulars of a single cycle of the residual by which the decoder may synthesise a repeating sequence of frame length (Prototype waveform interpolation or PWI) (See W. B. Kleijn, "Encoding Speech using prototype Waveforms", IEEE Trans. Speech and Audio Processing, Vol 1 , No. 4, October 1993, pp. 386-399, and W. B. Kleijn and J. Haagen, "A Speech Coder based on Decomposition of Characteristic Waveforms", Proc ICASSP, 1 995, pp.508-51 1 . In the event that the phase information about the excitation is omitted from the transmission, then a similar situation arises to that described in relation to Figure 2, namely that assumptions need to be made as to the phase spectrum to be employed. Whether phase information for the synthesis filter is included is not an issue since LPC analysis generally produces a minimum phase transfer function in any case so that it is immaterial for the purposes of the present discussion whether the phase response in included in the transmitted filter information (typically a set of filter coefficients) or whether it is computed at the decoder on the basis of a minimum phase assumption. Of particular interest in this context are PWI coders where commonly the extracted prototypical residual pitch cycle is analysed using a Fourier transform. Rather than simply quantising the Fourier coefficients, a saving in transmission capacity can be made by sending only the magnitude and the pitch period. Thus in the arrangement of Figure 9, where items identical to those in Figure 8 carry the same reference numerals, the excitation unit 63 - here operating according to the PWI principle and producing at its output sets of Fourier coefficients - is followed by a unit 80 which extracts only the magnitude information and transmits this to the decoder. At the decoder a unit 91 - analogous to unit 31 in figure 3 - calculates the phase adjustment values φ F using Equation 1 6 and controls the phase of an excitation generator 64. In this example, the β< is fixed at 0.95 whilst β 2 is controlled as a function of the pitch period p, in accordance with the following table: Table I The valui t |1 used in Hz) tor the ranee ol pitch periods These values are chosen so that the all-pass transfer function of Equation 1 5 has a phase response equivalent to that part of the phase spectrum of a Rosenberg pulse having T P = 0.4p and T N = 0.16p which is not modelled by the LPC synthesis filter 65. As before, the adjustment is added in an adder 83 prior and converted back into Fourier coefficients before passing to the PWI excitation generator 64. The calculation unit 91 may be realised by a digital signal processing unit programmed to implement the Equation 16. It is of interest to consider the effect of these adjustments in terms of poles and zeroes on the z-plane. The supposed total transfer function H(z) is the product of G,V and L and thus has, inside the unit circle, P poles at p, and one zero at α, and, outside the unit circle, two poles at 1 /β-. and 1 /β 2 , as illustrated in Figure 9. The effect of the inverse LPC analysis is to produce an inverse filter 61 which flattens the spectrum by means of zeros approximately coinciding with the poles at p.. The filter, being a minimum phase filter, cannot produce zeros outside the unit circle at 1 /β-ι and 1 /β 2 but instead produces zeros at β and β 2 , which tend to flatten the magnitude response, but not the phase response (the filter cannot produce a pole to cancel the zero at α but as β ! usually has a similar value to α it is common to assume that the α zero and 1 /βτ pole cancel in the magnitude spectrum so that the inverse filter has zeros just at p, and β 2 . Thus the residual has a phase spectrum represented in the z-plane by two zeros at βϊ and β 2 (where the β's have values corresponding to the original signal) and poles at 1 /β, and 1 /β 2 (where the β's have values as determined by the LPC analysis). This information having been lost, it is approximated by the all-pass filter computation according to equations ( 1 5) and ( 1 6) which have zeros and poles at these positions. This description assumes a phase adjustment determined at all frequencies by Equation 1 6. However one may alternatively apply Equation 1 6 only in the lower part of the frequency range - up to a limit which may be fixed or may depend on the nature of the speech, and apply a random phase to higher frequency components. The arrangements so far described for Figure 9 are designed primarily for voiced speech. To accommodate unvoiced speech, the coder has, in conventional manner, a voiced/unvoiced speech detector 92 which causes the decoder to switch, via a switch 93, between the excitation generator 64 and a voice generator whose amplitude is controlled by a gain signal from the coder Although the adjustment has been illustrated by addition of phase values, this is not the only way of achieving the desired result; for example the synthesis filter 65 could instead be followed (or preceded) by an all-pass filter having the response of Equation ( 1 5). It should be noted that, although the decoders described have been presented in terms of the decoding of signals coded and transmitted thereto, they may equally well serve to generate speech from coded signals stored and later retrieved - i.e. they could form part of a speech synthesiser.

Claims: CLAIMS 1 . A decoder for speech signals comprising: means for receiving magnitude spectral information for synthesis of a time- varying signal; means for computing, from the magnitude spectral information, phase spectrum information corresponding to a minimum phase filter which has a magnitude spectrum corresponding to the magnitude spectral information; means for generating, from the magnitude spectral information and the phase spectral information, the time-varying signal; and phase adjustment means operable to modify the phase spectrum of the signal. 2. A decoder for decoding speech signals comprising information defining the response of a minimum phase synthesis filter and, for synthesis of an excitation signal, magnitude spectral information, the decoder comprising: means for generating, from the magnitude spectral information, an excitation signal; a synthesis filter controlled by the response information and connected to filter the excitation signal; and phase adjustment means for estimating a phase-adjustment signal to modify the phase of the signal. 3. A decoder according to Claim 2 in which the excitation generating means are connected to receive the phase adjustment signal so as to generate an excitation having a phase spectrum determined thereby. 4. A decoder according to Claim 1 or Claim 2 in which the phase adjustment means are arranged in operation to modify the phase of the signal after generation thereof. 5. A decoder according to any one of the preceding claims in which the phase adjustment means are operable to adjust the phase in accordance with the transfer function of an all-pass filter having, in a z-plane representation, at least one pole outside the unit circle. 6. A decoder according to any one of the preceding claims in which the phase adjustment means are operable to adjust the phase in accordance with the transfer function of an ail-pass filter having, in a z-plane representation, two poles outside the unit circle. 7. A decoder according to claim 5 or 6 in which the adjustment means are arranged in operation to vary the position of the or a said pole as a function of pitch period information received by the decoder. 8. A method of coding and decoding speech signals, comprising: (a) generating signals representing the magnitude spectrum of the speech signal; (b) receiving the signals; (c) generating from the received signals a synthetic speech signal having a magnitude spectrum determined by the received signals and having a phase spectrum which corresponds to a transfer function having, when considered as a z- plane plot, at least one pole outside the unit circle. 9. A method according to claim 8 in which the phase spectrum of the synthetic speech signal is determined by computing a minimum-phase spectrum from the received signals and forming a composite phase spectrum which is the combination of the minimum-phase spectrum and a spectrum corresponding to the said pole(s). 10. A method according to claim 8 in which the signals include signals defining a minimum-phase synthesis filter and the phase spectrum of the synthetic speech signal is determined by the defined synthesis filter and by a phase spectrum corresponding to the said pole(s).

Inventors: CHEETHAM BARRY MICHAEL GEORGE, CHOI HUNG BUN, SUN XIAOQIN, CHEETHAM, BARRY, MICHAEL, GEORGE, CHOI, HUNG, BUN, SUN, XIAOQIN
Applicants: BRITISH TELECOMM, CHEETHAM BARRY MICHAEL GEORGE, CHOI HUNG BUN, SUN XIAOQIN, BRITISH TELECOMMUNICATIONS PUBLIC LIMITED COMPANY, CHEETHAM, BARRY, MICHAEL, GEORGE, CHOI, HUNG, BUN, SUN, XIAOQIN
Application year: 1997
Main classification: G10L7
IPC codes: G10L13, G10L19