Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf ·...

13
Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from group delay function Hema A. Murthy and B. Yegnanarayana Department of Computer Science and Engineering, Indian Institute of Technology, Madras - 600 036, India Received 29 August 1989 Revised 7 March 1991 Abstract. This paper presents an approach based on the properties of group delay functions for extracting formants from speech signals. The algorithm is similar to the cepstral smoothing approach for formant extraction using homomorphic deconvolution. The significant differences are (i) the logarithmic operation is replaced by ()' operation and (ii) the additive and high resolution properties of group delay functions are exploited to emphasize formant peaks. The group delay function (or the negative derivative of the Fourier transform phase) is derived for a signal which in turn is derived from the Fourier transform magnitude of the speech signal. If a suitable value of r is used, this method gives highly consistent estimates of formants compared to both the cepstral approach and the model-based linear prediction (LP) approach for smoothing the magnitude spectrum. The effects of the parameters, exponent r and window width p, on the proposed technique for formant extraction are studied. Zusammenfassung. Dieser Beitrag stellt eine Methode zur Messung der Formantfrequenzen vor welche die Eigenschaften der Gruppenlaufzeiffunktionen ausniitzt. Der Algorithmus ist der kepstralen Methode zur spektralen Abrundung ~hnlich. Die zwei wichtigsten Underschiede sind (1) der Logarithmus wird durch einen ()r Operator ersetzt und (2) die additiven Eigenschaften und das gute AuflEsungsverm6gen der Gruppenlaufzeitfunktionen werden ausgenutzt um die Scheitelpunkte der Formanten hervorzuheben. Die Gruppenlaufzeitfunktionen (oder die negative Ableitung der Phase des Fourierspek- trums) wird abgeleitet fiJr ein Signal welches seinerseits von der Magnitude des Fourierspektrums des Sprachsignals abgelei- tet wird. Wenn ein passender Wert fiir r gebraucht wird, dann ergibt die Methode Sch~itzwerte ffir die Formanten welche vergleichbar sind mit denen welche mit der kepstralen Methode oder mit der linearen Pr~idiktiongewonnen werden. Di¢ Auswirkung des Exponenten r sowie der L~inge des Analysefensters auf die Ergebnisse werden ebenfalls untersucht. Risum6, Ce papier prEsente une technique fondEe sur les propriEtEs des fonctions retard de groupe afin d'extraire les formants des signaux de parole. L'algorithme est semblable au lissage cepstral utilisant la dEconvolution homomorphique. Les differences significatives sont les suivantes: (a) le logarithme est remplacE par un opErateur ()r et (b) les propriEtEs additive et de haute resolution des fonctions retard sont exploitEes pour accentuer les crates des formants. La fonction retard de groupe (ou la dErivEe negative de la phase de la transformEe de Fourier) est dErivEe pour un signal qui, ~ son tour, est dEriv6 de l'amplitude de la transformEe de Fourier du signal. Si une valeur convenable de rest utilisEe, cette mEthode donne des estimations formantiques tr~s cohErentes compar6es ~ eelles obtenues par la technique cepstrale ou par la prediction linEaire. Les effets de l'exposant r et de la largeur de la fenEtre sur la technique proposEe ont 6t6 6tudiEs. Keywords. Fourier transform phase, spectral root cepstrum, group delay functions, formant extraction. 1. Introduction Most speech analysis/synthesis systems are based on the acoustical theory of speech produc- tion. In this theory, the vocal tract system is ap- proximated by a series or parallel connection of resonators. The natural resonance frequencies of the vocal tract system vary slowly and continu- ously with time. The resonance or formant fea- tures carry information relating to the identifica- tion of speech sounds. Detection of the formants requires that some estimate be made of either the frequency response or the transfer function of the vocal tract. The short time magnitude spectrum of a speech signal cannot be used by itself for formant extraction, as the glottal excitation and the analysis window effects manifest themselves on the spectrum of the vocal tract impulse re- sponse. Therefore standard peak picking al- gorithms for formant extraction cannot be applied 0167-6393/91/$03.50 © 1991 Elsevier Science Publishers B.V. All rights reserved

Transcript of Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf ·...

Page 1: Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf · Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from

Speech Communication 10 (1991) 209-221 209 North-Holland

Formant extraction from group delay function

H e m a A. Mur thy and B. Y e g n a n a r a y a n a

Department o f Computer Science and Engineering, Indian Institute o f Technology, Madras - 600 036, India

Received 29 August 1989 Revised 7 March 1991

Abstract. This paper presents an approach based on the properties of group delay functions for extracting formants from speech signals. The algorithm is similar to the cepstral smoothing approach for formant extraction using homomorphic deconvolution. The significant differences are (i) the logarithmic operation is replaced by ()' operation and (ii) the additive and high resolution properties of group delay functions are exploited to emphasize formant peaks. The group delay function (or the negative derivative of the Fourier transform phase) is derived for a signal which in turn is derived from the Fourier transform magnitude of the speech signal. If a suitable value of r is used, this method gives highly consistent estimates of formants compared to both the cepstral approach and the model-based linear prediction (LP) approach for smoothing the magnitude spectrum. The effects of the parameters, exponent r and window width p, on the proposed technique for formant extraction are studied.

Zusammenfassung. Dieser Beitrag stellt eine Methode zur Messung der Formantfrequenzen vor welche die Eigenschaften der Gruppenlaufzeiffunktionen ausniitzt. Der Algorithmus ist der kepstralen Methode zur spektralen Abrundung ~hnlich. Die zwei wichtigsten Underschiede sind (1) der Logarithmus wird durch einen ()r Operator ersetzt und (2) die additiven Eigenschaften und das gute AuflEsungsverm6gen der Gruppenlaufzeitfunktionen werden ausgenutzt um die Scheitelpunkte der Formanten hervorzuheben. Die Gruppenlaufzeitfunktionen (oder die negative Ableitung der Phase des Fourierspek- trums) wird abgeleitet fiJr ein Signal welches seinerseits von der Magnitude des Fourierspektrums des Sprachsignals abgelei- tet wird. Wenn ein passender Wert fiir r gebraucht wird, dann ergibt die Methode Sch~itzwerte ffir die Formanten welche vergleichbar sind mit denen welche mit der kepstralen Methode oder mit der linearen Pr~idiktion gewonnen werden. Di¢ Auswirkung des Exponenten r sowie der L~inge des Analysefensters auf die Ergebnisse werden ebenfalls untersucht.

Risum6, Ce papier prEsente une technique fondEe sur les propriEtEs des fonctions retard de groupe afin d'extraire les formants des signaux de parole. L'algorithme est semblable au lissage cepstral utilisant la dEconvolution homomorphique. Les differences significatives sont les suivantes: (a) le logarithme est remplacE par un opErateur ()r et (b) les propriEtEs additive et de haute resolution des fonctions retard sont exploitEes pour accentuer les crates des formants. La fonction retard de groupe (ou la dErivEe negative de la phase de la transformEe de Fourier) est dErivEe pour un signal qui, ~ son tour, est dEriv6 de l'amplitude de la transformEe de Fourier du signal. Si une valeur convenable de rest utilisEe, cette mEthode donne des estimations formantiques tr~s cohErentes compar6es ~ eelles obtenues par la technique cepstrale ou par la prediction linEaire. Les effets de l'exposant r et de la largeur de la fenEtre sur la technique proposEe ont 6t6 6tudiEs.

Keywords. Fourier transform phase, spectral root cepstrum, group delay functions, formant extraction.

1. Introduction

Most speech analysis/synthesis systems are based on the acoustical theory of speech produc- t ion. In this theory, the vocal tract system is ap- p rox imated by a series or paral lel connec t ion of resonators . The na tu ra l resonance f requencies of the vocal tract system vary slowly and cont inu- ously with t ime. The resonance or fo rman t fea- tures carry in fo rma t ion relat ing to the identifica-

t ion of speech sounds. De tec t ion of the formants requires that some est imate be made of e i ther the f requency response or the t ransfer func t ion of the vocal tract. The short t ime magn i tude spect rum of a speech signal canno t be used by itself for fo rmant extract ion, as the glottal exci tat ion and the analysis window effects manifes t themselves on the spect rum of the vocal tract impulse re- sponse. Therefore s tandard peak picking al- gor i thms for fo rman t extract ion cannot be appl ied

0167-6393/91/$03.50 © 1991 Elsevier Science Publishers B.V. All rights reserved

Page 2: Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf · Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from

210 H.A. Murthy; B. Yegnanarayana / Formant extraction

to the magnitude spectrum. Linear prediction (LP) analysis (Makhoul,

1975) is a spectral modelling technique which is often employed to estimate the relevant parame- ters of the vocal tract. In LP analysis the vocal tract system is characterized by an all-pole model. The technique approximately deconvolves the ex- citation waveform and the vocal tract impulse re- sponse, thus producing a smooth spectral en- velope. A simple peak-picking algorithm on the spectral envelope or a complete root solving of the resulting polynomial can be used to obtain an estimate of the locations of formants. LP analysis requires a choice of the model order which dic- tates the number of vocal tract poles and hence determines the shape of the estimated spectrum: too low a model order will not adequately em- phasize all the formant features, while too high a model order may often generate spurious peaks. Also, it is sometimes difficult to detect a low amplitude formant adjacent to a large amplitude formant by the model-based spectrum estimation, even though the information is available in the magnitude spectrum.

Another approach which is commonly used for smoothing the magnitude spectrum is the tech- nique based on the cepstrum (Rabiner and Schafer, 1978). In this method the inverse Fourier transform (FT) of the log magnitude function is computed. The resulting cepstrum is windowed to derive a smoothed magnitude spectrum, the peaks of which may correspond to the formants. A convolution in the time domain becomes a mul- tiplication in the frequency domain which be- comes an addition in the cepstral domain. Thus, in the cepstrum, the excitation information and the vocal tract response components become ad- ditive. But, the logarithm operation gives equal emphasis to very small and very large values. This is not desirable because even small (nearly zero) spectral magnitude values assume significance in the computation of the cepstrum, as the logarithm of a small number (~ 0) is a large negative value.

Use of the phase spectrum (as opposed to the magnitude spectrum) generally improves the res- olution of the short time spectral features (Yeg- nanarayana, 1978). The phase spectrum of the standard Fourier transform is difficult to interpret due to the inevitable wrapping of the phase func-

tion. The need to use an analysis window and the existence of the glottal excitation contribute sig- nificantly to the phase wrapping problem.

If the Fourier transform phase is to be process- ed, it should be available in an unwrapped form. The existing methods for phase unwrapping do not yield satisfactory results for all types of sig- nals, especially when the roots of the signal z-transform are near the unit circle (Tribolet, 1977). Information about the resonances of the vocal tract are available in both the magnitude and the phase spectra. As the magnitude spectra of individual resonances are multiplied, the reso- lution is lost especially when the adjacent for- mants have significantly different amplitudes. Thus, although the information about closely spaced formants is available in the magnitude spectrum, they cannot easily be resolved.

Group delay (GD) spectra have been used to improve feature resolution available in the LP spectra (Yegnanarayana, 1978), but this technique still suffers from the need to adopt some modelling criterion. Modelling techniques may give higher resolution, but with the uncer- tainty of generating spurious peaks. Also, the group delay function cannot improve the fre- quency resolution restriction imposed by the data window. In this paper we propose a new technique based upon the spectral root group delay function for formant extraction which re- duces the effect of data windows on spectral reso- lution. In Section 2 we discuss briefly the proper- ties of group delay functions relevant for the de- tection of formant peaks. In Section 3 we discuss the proposed technique for formant extraction. We demonstrate through examples that the causal portion of the signal derived from the short time magnitude spectrum contains information about the smoothed magnitude spectrum. Performance of this technique is illustrated in Section 4 for var- ious choices of analysis parameters and different signals (synthetic and natural speech).

2. Definitions and properties of group delay functions

Let V(w) be the Fourier transform of the minimum phase signal v(n). The following rela-

Speech Communication

Page 3: Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf · Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from

H.A. Murthy, B. Yegnanarayana / Formant extraction 211

tions can be shown (Yegnanarayana et al., 1984):

V(to) = I V(o~)lexp(-j0(to)), (1)

In I v(to)[ = c(0)/2 + ~ c(n)coston, (2) n = l

and

O(a)) = - Z nc(n)sin ton, (3) n = l

where {c(n)} are the cepstral coefficients (Rabiner and Schafer, 1978).

The group delay function which is the negative derivative of phase is related to the magnitude and phase through the cepstral coefficients c(n) as follows:

r(to) = - 0'(to) = Z nc(n)cos ton. (4) n = l

If V](to), V2(to) . . . . . Vp(to) are the responses corresponding to p resonators, the frequency re- sponse of the cascade of these resonators is given by

v( to) = v ] ( to )v2( to ) "-" vAto) . (5)

The group delay function of the overall system is given by the summation of the group delay functions of the individual resonators ri(w):

r(to) = rl(to) + r2(to) + "'" + rp(to). (6)

It can be shown (Yegnanarayana, 1978) that each of these r~(to) has a behaviour similar to

Ivi( to) l 2 around the resonance frequency and asymptotically approaches zero for to away from the resonance frequency. Because ri(to) is propor- tional to the squared magnitude response and the ri(to)s are additive, the resonance peaks show up much more sharply in ri(to) as compared to the magnitude response [ V(to) l. Note that in I V(to) l the influence of the response of one resonator on the other is significant due to the multiplication of V](to), V2(to), ..., Vp(to). Note also that while taking a logarithm on I V(to) l does make the con- tribution of each term additive, the influence of one response on the other does not disappear since the logarithm of a small value is a large negative value. Figure 1 shows the log l V(to)[ and r(to) for a cascade of five resonators. The sharp- ness of each of the resonances and the resolving power of r(to) is evident in the figure.

3. Formant extraction from group delay functions

3.1. Principle of the proposed method

For formant extraction we propose a spectral root group delay function approach which is simi- lar to the spectral root homomorphic deconvolu- tion (SRDS) (Lira, 1979). Our goal is to obtain good raw formant data from the speech signal. The proposed method involves deriving a signal with the characteristics of a minimum phase signal so that the phase spectrum of this signal contains the information of the magnitude spectrum (Yeg- nanarayana et al., 1988). The peaks of the group

+1 +80 +4 +4

:k {# : • E l I I i * * = , . [ , m

[ _

(a) Sl~;ral (b) P'k~nr~rt,,.,d~ ~ co) ~ Sp,=,c.'tr,,.~n ¢d) ~ ~ 1 ~ ~=N~c..t..,~=

Fig. 1. Illustration of the high resolution property of group delay functions.

Vol. I(I. N o 3. August 1091

Page 4: Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf · Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from

212 H.A. Murthy, B. Yegnanarayana I Formant extraction

delay function derived from this phase function correspond to formants.

Figure 2 illustrates the new spectral root group delay function approach for formant extraction. In the figure F and F -I correspond to the forward and inverse Fourier transforms, respectively. Han w(n) is a gating function and is given by

0.5 + 0.5 cos(~n/L), 0 <- n <_ L, Han W(H) - - L 0 .0 , n > L ,

where L is the length of the window. This technique is like the cepstral smoothing technique, except that (i) an rth power operation is used in place of the log operation and (ii) the phase group delay is computed instead of the smoothed magnitude spectrum. Figure 3(a) shows a segment of speech (25.6ms, 10kHz sampling rate). Figure 3(b-d) shows the magnitude, phase and LP spectra obtained by multiplying the speech segment with a Hamming window and then taking the Fourier transform. The inverse Fourier transform of the magnitude function gives an even sequence which is called the spectral root

cepstrum. The even sequence is then truncated to include only the causal portion of it. This signal is then multiplied by half a Hann window to select the first p (corresponding to 4.2ms) samples (henceforth referred as £p(n)). Figure 4(a) shows signal £p(n). It is worth noting that the magnitude and phase spectra of the original signal are unre- lated, whereas the magnitude and phase spectra of signal £p(n) are related. Notice that peaks in the magnitude spectra of Figure 4(b) correspond to phase transitions in Figure 4(c). The differ- enced phase corresponds to the group delay func- tion shown in Figure 4(d). The window size p should be taken as large as possible to obtain a good resolution of formants, but should be less than the pitch period in order to avoid fluctua- tions due to pitch in the magnitude and phase spectra.

Since we do not explicitly use a model in our analysis, we feel that our approach should provide a better representation of the underlying nature of the vocal tract system than the one obtained using model-based analysis. The cepstral ap-

x(n)[ ) F

foF- mants (

peak detector

x(~) -------------9--

-o~(~)

( - d / d ~

I xC~) l* I I r )

xCn) -I F >( Hart_w(n)

X ( ~ ) xpCn)

Fig. 2. Proposed method of formant extraction from spectral root group delay function.

• L +80 +4

m

c

_ J, , I , . . . . • | i l l L i i

0 . 0 TTme 25 ,8mm- V~,O

• , ° . ° ° . , , , , , , , ,

F'r'equeno U SKHz 0 .0 I ~ reque r~o t t SK I ,~

+80

"~VO Frequ~o W SKI'Iz

ca) ~ ~t OlD) ~k~p~Vt~ ~ n n Co) ~ Spo~nm

Fig. 3. A segment of speech and its spectra,

Speech Communication

Page 5: Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf · Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from

H.A. Murthy, B. Yegnanarayana I Formant extraction 213

+1 ÷Oi

'ID

II

"L;

A

U I

o

. . . . . . . . . . = . ,

+4 +4

- . . . . . . . . . . . . . . . " . . . .

"0 0 FPeque~o V SKHz "O .O Fr.oqu,lno¥ ISKHz

Ca) Mln. Id'~Jnlfll'~l

Fig. 4. Minimum phase signal and its spectra.

proach to formant extraction is not model-based either but has the disadvantage that the computa- tion of cepstrum involves a logarithm operation. We now give some of the properties of the spec- tral root cepstrum.

3.2. Properties of the spectral root cepstrum

Let {x(n)} be a real sequence and let {X(k)} be its discrete Fourier transform. 1. Then F-l([X(k)]) = {£(n)} is an even se-

quence. 2. Given that {x(n)} is a sequence with finite sup-

port, from the Akhiezer-Krein and Fejer- Riesz theorems (Papoulis, 1977) it can be shown that

F- (IX(k)D = F- (IX(k)l°.SqX(k)l°.sg,

= F - l { y ( k ) } { l X ( k ) } ,

= {y(n)}*{y(-n)}, (7)

where c and * denote complex conjugation and convolution operations, respectively. Thus, IX(k) ]r can be expressed as the Fourier trans- form of the autocorrelation function of some sequence y(n).

3. Given that IX(k)] r is a positive even function and that {x(n)} is a non-zero sequence, then F-t(IX(k)] ¢) is maximum at the origin (Bracewell, 1986).

4. Minimum phase property: The above proper- ties suggest that the truncated sequence £p(n) behaves like a minimum phase signal.

This is confirmed by numerically computing the roots of the z-transform of the sequence £p(n) for a number (~ 50) of different frames of speech data. It was found without exception that in all the examples the roots (error < 10 -L') lie inside the unit circle. We have seen in our studies that the group delay functions derived from the mag- nitude and phase of the FT (Yegnanarayana et al., 1984) of £p(n) are identical.

From these empirical observations we con- clude that the causal portion of £(n) can be con- sidered as a minimum phase sequence. The minimum phase condition ensures that the log magnitude and phase of such a signal are related through the Hilbert transform. Thus, the com- plete magnitude information is captured in the FT phase of £p(n). Because of the minimum phase characteristic, the cepstral coefficients and hence the weighted cepstrum can be derived recursively from 2p(n). The group delay function can also be computed as the FT of the weighted cepstrum (Yegnanarayana et al., 1984). But in this paper we compute the group delay function through the spectrum using the discrete Fourier transform re- lation.

Note that use of exponent r on IX(k) [ does not alter the peaks in the smoothed envelope of the magnitude spectrum. Thus, the peak location in- formation is preserved in the computation of the magnitude spectrum of the windowed spectral root cepstrum. It is generally not possible to model each of the peaks by a simple second order all-pole system (resonator), even though they

Vo[. I11. NO. 3, Augus t 190[

Page 6: Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf · Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from

214 H.A. Murthy, B. Yegnanarayana / Formant extraction

may correspond to a resonance peak in the origi- nal magnitude spectrum of X ( k ) . Therefore low order (10 to 18) linear prediction analysis of the signal £p(n) will not result in the desired peaks.

It is important to note that exponent r in IS (k ) l r does not disturb the location of the pitch peak in ~?(n). Therefore both the spectral peak locations and the value of the pitch period are not altered by the exponent factor. But the exponent factor helps to contain the significant information of the spectral envelope in a short window size p for ~?(n). This helps in the choice of a p lower than that of the pitch period to avoid the influence of pitch on formant extraction.

4. Performance evaluation

In this section we demonstrate the effective- ness of the proposed group delay function ap- proach for formant extraction as compared to the LP and cepstral approaches. In each case the raw formant data is obtained and the performance is judged by the visual inspection of the formant contours. In the group delay function approach for formant extraction there are a few parameters which decide the resolution and accuracy of the formant data that may be obtained. One of them is window size p. This is similar to the cepstral (or LP) smoothing technique in which the window size (or model order) chosen in the cepstral do- main (or AR model) affects the resolution that can be achieved. In addition to window size p, exponent r also plays a significant role in the res- olution that can be obtained. We now study the

5kH

=D

g

0 . 0

27. t %

i . . . . , . , , ,

Tlae 1 . 5 e

Foc~nt dot(=

Fig. 5. Formant data for synthetic speech.

effects of varying these two parameters on the formant information obtained from the group delay function. To discuss the performance of our method we first consider synthetic speech data corresponding to the formant contours shown in Figure 5.

Model for the synthetic signal: The synthetic signal chosen is a voiced utterance generated by using a simplified model for speech production shown in Figure 6. The waveshape for the glottal pulse was chosen to be of the form (Rabiner and Schafer, 1978)

0.5(1 - cos(~n/N1)), 0 <- n <- N1, g(n) = ~ cos(n(n - N1)/2N2), N1 <-- n <_ N 1 + N2,

[0, otherwise.

The transfer function for the vocal tract was modelled as

V ( z ) =

5 1 - 2e-~BkTcos(2~FkT) + e -2~Bkr

I-i _ 2e_ + e_2 .k _2 • k = l l

This equation describes a cascade of digital res- onators that have unity gain at zero frequency. All the five formants (FkS) vary continuously with time as defined by the format plot shown in Fig- ure 5. T is fixed at 0.0001 sec (i.e. 10kHz sampling rate). The formant bandwidths (Bk'S) were fixed a priori at 10% of the formant frequencies.

A pitch period of 10 ms was chosen to generate the excitation signal. In the model for the glottal pulse N 1 = 60 and N2 = 10. The formant data were designed so as to capture most of the situa- tions encountered in practice (in the context of voiced speech), namely, proximity of formants, sudden rise in formants, sudden fall in formants.

Figure 7 shows the formant data obtained from the synthetic speech signal using the group delay (GD) approach for various window sizes (p = 5.0 ms to 8.0ms). Figure 8 shows the formant data for the same synthetic data using LP analysis for various orders (10 to 22) and Figure 9 shows the formant data obtained using cepstrum analysis for the same window widths as used in the GD ap- proach. Comparison of the data in Figure 7 with the raw formant data obtained from LP analysis (Figure 8) and the raw formant data obtained from cepstrum analysis (Figure 9) shows that our

S p e e c h C o m m u n i c a t i o n

Page 7: Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf · Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from

H.A. Murthy, B. Yegnanarayana / Formant extraction 215

pitch period (10 ms)

Impulse 1 generator )

Glottal pulse model (G(z))

u Cn) g )

Amplitude control A =I

v

u (n) g

V1(z) J ) V a ( z ) ) . . . )

where V (z) is represented by the following filter: i

x(n)

( ~ ( ~ a2 (

VsCz)

y ( n ) )

speech

I o u t p u t )

where G = I - 2 e - n B t T c o s ( 2 ~ F T) + e-2~Bt T I i

-riB T a 1 = - 2 e i c o s ( 2 ~ F t T )

-2~B T a 2 = e 1

Fig. 6. Model for generating synthetic speech.

5 k H z $ k H : 5 k H z

i f "----".. f . . . .

- - - - / - .

r J •" J .¢-. : / ' . " ,..I,.~-" •

j ' J ~

, . f \ ~ • ° % ~ ,

t . ~ f :~" ....#..~.-" " • •

: \

• . . ° . . . . .

0 . 0 T i m e 1 . 5 o O.O Time 1 . 5 o O.O

SkH:

***,~-SJ °" - .~ °

: %

. . . . . . u n i I

T I ~ 1 . 5 e 0 . 0 T i m e 1 . l e

(a ) p = 5 o 0 ~ (b) p = 8oOa~ (c) p = 7 .01~ (d) p = 8 .01~

Fig. 7. Formant data obtained for synthetic speech using group delay approach. (a) p = 5.0ms, (b) p = 6.0ms, (c) p = 7.0ms and (d) p = 8.0ms.

Vol. 10. No. 3. August 1991

Page 8: Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf · Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from

216 H.A. Murthy, B. Yegnanarayana / Forrnant extraction

SkHz SkHz SkHz SkHz

"'r----,." ,--: • ..: : . -... :

• • , , • • • , , . • • • • , , , • • , • • • • 0 • • • • • , • , • • ,

0o0 T i l t t . S I 0 .0 Tteo 2 . S I 0 .0 T i e I . S I 0 .0 T i l t I * S I

Co) o r - d ~ = 10 Clo) o r d e r = L4 Co) order" = L8 Cd) ~ =

Fig. 8. Formant data obtained for synthetic speech using linear prediction analysis. (a) Order = 10, (b) order = 14, (c) order -~ 18 and (d) order = 22.

SkHz ~ H z SkHz $kHz

" : " " " " " " " " ' " " " " " " I ~ , , l " ' ; " " " . . . . " " • , , , ," , - • " , J ° ' , , , , ; * , . ¢ t • " " ", " ; "

. % . °'°,, °

.~ -:" "--""; , f -, ::~.,.,,--~, • .. : ":". " " , : f : : ~, ~" ... ~,",-., ,., ,: : G ° ° ° ° o ° . • • l e ° ~ ° • ° , ° ° °

I~ .,~.,,.•..w t ° o f

,.'- • . . ' . " . . . • I:- " . . . " . " . . . " . I ,c . . . - . o . . ,. ~ . . " , . . " . : " . . •

I • • • ° • • °

O,O T l l t l , S I O.O T I I e 1o5I 0 .0 T i l t l . S e O.O T i l e I ,Se

( a ) p = 5 . 0 m 8 (b ) p = 6 . O r e (o ) p = 7 . 0 1 ~ (d ) p = 8 . O m

Fig. 9. Formant data obtained for synthetic speech using cepstrum analysis. (a) p = 5.0ms, (b) p = 6.0 ms, (c) p -- 7.Oms and (d) p = 8 .0ms.

method gives equally good but more consistent estimates of formants over a wide range of win- dow widths for the synthetic data. It is to be noted that in the case of LP analysis (Figure 8) lower order may not bring out all the formant peaks. As the order is increased all the peaks get resolved but not many spurious peaks will be generated since the data is strictly the output of an all-pole system.

The effect of window size p on formant extrac- tion is studied by obtaining plots of the raw for- mant for different values of the window in the spectral root cepstrum domain. The window size is varied uniformly from 5.0ms to 8.0ms in steps of 1.0ms, with r = 0.5. This is illustrated in Figure 7. Notice that an increase in window size results in an increase in the resolution of the peaks. The formant data is consistent over a sufficiently large range of window sizes (Figure 7(a-c)). But too

large a window size (for example 8.0ms) causes spurious peaks to appear, as in Figure 7(d). The window size should be large enough to resolve the peaks that are close to each other but should not be too large to include the effects of pitch on for- mant extraction.

The choice of r (for a particular window size p) depends upon the dynamic range of the signal spectrum. The choice of r basically dictates the degree of overlap between the source and the vocal tract components in the root cepstrum do- main. In the digital implementation of the SRDS algorithm the ( )r and ( )1# operations require two phase unwrapping operations (Lim, 1979). In our approach we perform ( )r only on the positive real function Is(o )l. Hence no phase unwrapping is necessary. Thus there is no constraint on r. We have experimentally observed that the choice of r is related to the spectral flatness. It appears log-

S p e e c h C o m m u n i c a t i o n

Page 9: Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf · Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from

H.A. Murthy, B. Yegnanarayana / Formant extraction 217

S k H z S k H ~ S k H z S k H :

h .

: . , - ~ " i

i u .

_ . - - -

/ '% ; %,

i 2 IJ.

f " " - ' " J , , - -

.., *,

.,._ =_ = . , , . . . " "%.....

' . . . . i t 1 I , , , * , * * * .

¢.0 Timo ]..So O.O TImo L . S m 0 . 0 Time

u b

• = ." .,,.-,..._._ ..... 7 "

• o,,~* °o

4 .

• " * ' • * m m m

L . S e O . D T l m o ] , . S o

( a ) p = 3 .0 ro l l (b) p = 5.Ohm (o) p = 7 . O m (d) p = 9.0ms

5 k H z S k H z S k H : S k H z

( i ) r=0.5

¢ e l l i - e

0.0

SkH;

/ • "****o,•

T I I ~

(a) p = 3.Ore

/ % , . / '...

i . • /'% ,. ; "-..

~, ,~. .~, .~ s , ~ *,,,~

• . . . . . . . ,

i . S i 0 . 0 Time

(b) p = 5.Oml l

S k H z

i ! u .

1 . S o 0 . 0

SItHz

i g t / "-.... i

• " : . .~. . . . , i - .

, ~ . • -...,

• , , . , , . , •

"rlme

(c) p = 7.Om

/..,-.o, o, o

i / . S o 0 . 0

_7.

• , . • o . . , .

Time I..Sm

(d) p = 9 . O w

S k H z

i i )

r = 0 . 7 5

g,

i . . . ._. , "

; •

( i i i )

r = l . 0

• * * • * i I ¢ i * * * * * * * • . • . * * * i i s ¢ * * • * • • • • •

0 . 0 TTmo ~,Sm 0.0 Time L,$m 0.0 Time l.Sm 0.0 T T u 2.Se

(a) p = 3 . 0 ~ (b) p = 5 .Ore (o) p = 7 . 0 ~ (d) p = 9 . 0 ~

Fig. 10. Illustration of the GD formant extraction technique for various choices ofp and r. (i) r = 0.5: (a) p = 3.0ms, (b) p = 5.0ms, (c) p = 7.0ms and (d) p = 9.0ms. (ii) r = 0.75: (a) p = 3.0ms, (b) p = 5.0ms, (c) p = 7.0ms and (d) p = 9.0ms. (iii) r = 1.0: (a) p = 3.0ms, (b) p = 5.0ms, (c) p = 7.0ms and (d) p = 9.0ms.

ical tha t when the dynamic range is low (as in the case of noisy speech) the p e a k s in the s p e c t r u m mus t be e m p h a s i z e d if they have to m a k e a signif- icant con t r i bu t i on to J?(n). This can be ach ieved by ke ep ing r > 1. O n the o t h e r h a n d , when the dynam ic range is ve ry large (as in the case of nor- mal o r high p i tch vo iced speech) the con t r i bu t ion by the first f o r m a n t d o m i n a t e s the c o m p u t a t i o n of ; ( n ) . The effect of the first f o r m a n t mus t be d e e m p h a s i z e d . This is done by keep ing r < 1.

W h e n r < 1 the vocal t rac t i n fo rma t ion is concen- t r a t ed a r o u n d the or ig in in J?(n) and the ga t ing funct ion enab le s a g o o d s e pa ra t i on of the source i n fo rma t ion f rom the vocal t rac t r e sponse . F igure 10 i l lus t ra tes the p e r f o r m a n c e t r adeo f f for var ious choices o f r and w indow sizes. The effect of r can be v isua l ized by t r avers ing F igu re 10 ver t ica l ly f rom b o t t o m to t op a long a d i rec t ion c o r r e s p o n d - ing to a f ixed w indow width .

I t is to be n o t e d tha t p a r a m e t e r r and window

Vol. 10, No, 3, August 199l

Page 10: Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf · Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from

218 H.A. Murthy, B. Yegnanarayana / Formant extraction

S k H z S k H z S k H z S k H z

II j f . 1 . l I- i ' - - - . . - ~ ' ~ "-..: : ' I ,, ~- - . , ' - - / ~ - " "--.: ,-"t =, ~, - : ' .~ - - - . . , f - " "-..:..--'

" t : " " ' i • - " . ' . : , ' . ; " , .,.,..~..,... ~ I- :-. .,,--~"....-I " " ..'- ,-----'-" •

F,._,.,,_._,_..~_. : ~ ~" :"" "'I > "-.-'- :'"

0 .0 T f n e 1oSO OoO Tfme t e S i 0 . 0 Time L .So 0 . 0 Tlme t , S i

(a ) p : 2 . q ~ (b ) p = 3 . ~ (~) p = 4 . 0 w (d ) p = 4 . 8 m

Fig. 11. F o r m a n t extract ion f rom natural speech using G D approach. (a) p = 2 .4ms, (b) p = 3 .2ms, (c) p = 4 .0ms and (d) p = 4 .8ms.

Skl~

g tl.

, eeo .

. , . - o~,-~ o.," •

. . . _ ~ . - . . . . - - . ~ . . . . . . . . ~ . . -

S k H _ z

! , f •

~. : . . . - - . , - . . . . . ,~"~ ".....:.,..

2 , , . ' -- , - . . , ' - - " , , _ , ,- , ;.,-,".; - . -

S k H :

• o

• • , • I ! • • •

S k H z

. - - . , , -v .4w. ; , ~vmj , ,~ '

I. I'./'-,..--...., . ' ~ " "-...:'.-~

" L" " . " " ; " " '

. . , " . . ". . | a ~ i

0 . 0 Time 1 . 5 o 0 . 0 Tlme 1.Sw 0 . 0 T l j e 1 . 5 : 0 . 0 T t i e ~ . S I

(a ) order, = .tO (b) order, = 14 (e ) order- = .1.8 (d) order, = : ~

Fig. 12. Formant extraction from natural speech using LP approach. (a) order = 10, (b) order = 14, (c) order = 18 and (d) order = 22.

S k H z S k i i z 5 k H z 5 k H z

it "" ,.', P'-," • • s, • -, , ,,-.,,.

• " " ' ~ : " - - " " " _ I " " " " ' - ~ " " . - . - - I . , , . • - , f - " " . . . . . . ; .....,." . . . ; . . . . • . . . . . / . . .

0 . 0 Time l .Sm 0 . 0 T t s e l . S : O . O T i m e t , S i 0 . 0 Tfme , .So

(o ) p = 2 . ~ m (b) p = 3 , ~ (o) p : 4 . 0 ~ (d) p = 4,SnB

Fig. 13. F o r m a n t extract ion f rom natural speech using ceps t rum analysis. (a) p = 2 .4ms, (b) p = 3 .2ms, (c) p = 4 .0ms and (d) p = 4 .8ms.

size p are related. A smaller window size pro- duces a poore r resolut ion, while a smaller r pro- duces a be t te r separat ion of source and excitation. As the window size p must be smaller than the pitch per iod to avoid f luctuations, r can be ma- nipula ted to obta in a good resolut ion of formants .

So far we have illustrated the use of this new technique for fo rmant extract ion on synthetic speech, where the synthetic speech has been mod- elled as the glottal excitation of a truly all-pole model•

Natura l speech may not cor respond to a truly

Speech Communication

Page 11: Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf · Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from

H.A. Murthy, B. Yegnanarayana / Formant extraction 219

auto-regressive process of a fixed model order. We now compare the GD approach with that of LP analysis for formant extraction from natural speech. Figures 11, 12 and 13 show the formant data obtained using the GD approach, the LP ap- proach and cepstrum analysis for the utterance "We were away a year ago", as spoken by a male speaker. The comparison confirms our earlier conclusions that the GD formant extraction technique gives more consistent formant values (for various window sizes) than that of the LP approach (for various orders) and cepstrum analysis (for various cepStral windows).

Figures 14 and 15 illustrate the formant con- tours for high pitched synthetic and natural speech data. Here, r is chosen to be 0.5. As long as the window size p is less than the pitch period, the proposed method works well even for high pitched speech. The synthetic speech was gener-

ated using the same procedure as indicated in Fig- ure 6. The pitch period used for this case was 5ms. For natural speech the utterance is "We were away a year ago" as spoken by a female speaker. In Figure 15(a), in the region between 0.6--0.9s the GD method does not resolve the 2nd and 3rd formants as well as the LP method (Fig- ure 15(b)) because the time window chosen is very small (2.4ms). The time window cannot be increased beyond 3.2ms as the average pitch period for this utterance is about 4ms. It is ob- served that the formants are steady for window sizes ranging from 1.6ms to 3.2ms. For the LP method in Figure 15(b) a carefully chosen order of 12 seems to be appropriate for this utterance. A lower order does not resolve the formants while a higher order generates a lot of spurious peaks. The cepstrum analysis (Figure 15(c)) generates spurious peaks especially at high frequencies, for

SkHz SkHz

¢ 2

u .

f g t

: - ~ / " - ~ _

" "%

• • , • , , ° • ,

gklt ~ . • ° • • o •

v " • ° ° ~ ,

• • • . • • , • ,

0 . 0 T i m e 1 . S e O . O T i m e , 1 . 5 I 0 . 0 T i m e 1 . S e

(a) p = 4 . 8 u (b) order- = 16 (G) p = 4 . 8 B

Fig. 14. Formant extraction from high pitched synthetic speech. (a) GD method (r = 0.5, p = 4.8ms), (b) LP method (order = 16) and (c) cepstrum analysis (p = 4.Sms).

S k H z

. p , I

; ; ~ e .

0 . 0 T i m e

SkHz

f g 2

I/.

( a ) p = 2 ,41m

S k H z

0 e " - " • " 6 • . , •

" ~ :

• • " • • • • | • I I I I • • • " "

, I n 0 , 0 T i m e l , S o 0 , 0 T i m e l , S e

(b) order,= 12 (¢) p = 2o4am

Fig. 15. Formant extraction from high pitched natural speech. (a) GD method (r = 0.5, p = 2.4ms), (b) LP method (order = 12) and (c) cepstrum analysis (p --- 2.4ms). The data was collected for overlapping frames to capture the rapid fluctuations in the formant frequencies.

V o l . 1 0 , N o . 3 , A u g u s t 1 9 9 1

Page 12: Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf · Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from

220 H.A. Murthy, B. Yegnanarayana / Formant extraction

all window sizes. Figure 16 shows the formant contours for an

utterance in an Indian language Hindi "mai yah ca:hta: hu:n". The sentence contains segments of different categories of speech segements such as unvoiced, nasals and fricatives. For the unvoiced segments, the peak locations occur at random fre- quencies. For most of the voiced segments the formant frequencies are extracted well as seen from the continuity of the points.

We have also examined the performance of the proposed method for noisy speech data. Figure 17(c) shows the formant contours obtained for an utterance with an overall SNR = 10dB, using p -- 3.2ms and r = 2. The variation of SNR for each frame is shown in Figure 17(b). The formant con- tour for the clean data is given in Figure 17(d). A comparison of Figures 17(c) and 17(d) shows that there are spurious peaks in those frames where the SNR is very low (< 0dB), while for all the other frames the formant peaks, even for the noisy data, are located at the appropriate fre- quencies. For some segments of the noisy data in the region 0.9s to 1.2s (in Figure 17(c)), the fourth formant is not extracted as neatly as that for the clean data. This is because for a given frame SNR is also a function of frequency. At high frequencies the SNR is usually lower than at low frequencies.

# L a m a i : y a h c a : h t a : hu : n

O * O "r v i i i I*II

S k H I

f I ;

(a)

(b)

0 . 0 T t m e I . S I

Fig. 16. Formant extraction for an ut terance in an Indian lan- guage Hindi containing different categories of segments inclu- ding nasals and unvoiced.

While the proposed method seems to work well for a wide variety of speech signals, computa- tion time is significantly higher than the LP or cepstral methods. For the utterance "We were away a year ago" the computation time for the proposed method is 40sec, whereas it is 20sec for LP and 30sec for the cepstrum method.

. 0 " r T ~ o I .II

"I'I

- - ~ . 0 T l ' m e l . I I

5kHz

Q~I - a.o • w • • ~ • • o. % %• B~'*• • ° % ~ °°wt. •

I I , I I I I I I

O. Time 1 .S I 5kHz

(a)

(b)

(c)

0 :~ . . . . . , ~ " 0 , a ~ ' ' • " , , ~ , , " ( d ) ~ •~ , -~-o•%, .u .a •op • ° • oe •

o

t . , •

i i I | | | • i i

0 . 0 T ime 1 . S I

Fig. IT. Formant extraction from noisy speech. (a) Clean speech, (b) SNR as a function of t ime, (c) formant data for noisy speech, (d) formant data for clean speech.

S p e e c h C o m m u n i c a t i o n

Page 13: Formant extraction from group delay functionspeech.iiit.ac.in/svlpubs/article/Murthy1991209.pdf · Speech Communication 10 (1991) 209-221 209 North-Holland Formant extraction from

H.A. Murthy, B. Yegnanarayana / Formant extraction 221

4. Conclusions

We propose a new method of extracting for- mant information from the speech signal. We de- monstrate that the additive and high resolution properties of the group delay functions can be used for extracting closely spaced and low amplitude formant information. This method for formant extraction gives a more consistent perfor- mance compared to other methods based upon smoothing the magnitude spectrum. These studies show that there is a relationship between spectral flatness and analysis parameters. We are cur- rently attempting to establish a theoretical basis for this relation.

References

R.N. Bracewell (1986), The Fourier Transform and its Appli- cations (McGraw-Hill, New York), pp. 6-23.

J.S. Lim (1979), "Spectral root homomorphic deconvolution

system", IEEE Trans. Acoust. Speech Signal Process., Vol. ASSpo27, No. 3, pp. 223-231.

J. Makhoul (1975), "Linear prediction: A tutorial review", Proc. 1EEE, Vol. 63, No. 2, pp. 561-580.

A. Papoulis (1977), Signal Analysis (McGraw-Hill, New York), pp. 231-234.

L.R. Rabiner and R.W. Schafer (1978), Digital Processing of Speech Signals (Prentice-Hall, Englewood Cliffs, N J), pp. 367-370.

J.M. Tribolet (1977), "A new phase unwrapping algorithm", IEEE Trans. Acoust. Speech Signal Process., Vol. ASSP- 25, pp. 170--175.

B. Yegnanarayana (1978), "Formant extraction from linear prediction phase spectrum", J. Acoust. Soc. Amer., Vol. 63, pp. 1638-1640.

B. Yegnanarayana, D.K. Saikia and T.R. Krishnan (1984), "Significance of group delay functions in signal recon- struction from spectral magnitude or phase", 1EEE Trans. Acoust. Speech Signal Process., Vol. ASSP-32, No. 3, pp. 610-623.

B. Yegnanarayana, G. Duncan and H.A. Murthy (1988), "Im- proving formant extraction from speech using minimum phase group delay spectra", in Signal Processing IV. Theories and Applications, ed. by J.L. Lacoume, A. Chehikian, N. Martin and J. Malbos (Elsevier, Amster- dam), pp. 447-450.

Vol. I0, No. 3, August 1991