Docsity

Speech Processing - Digital Signal Processing - Handout | ECE 43800, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
Sec. 2.2. Speech Processing 165
2.2 Speech Processing
We will now address another very important application, namely, processing of speech
signals. This is a very rich area, which has many interesting problems. We will be
applying some of the things we studied about systems, frequency analysis, and random
processes, to some of these problems.
Three main areas of interest in speech processing are:
•Speech synthesis.
•Speech recognition.
•Speech coding.
The goal of speech synthesis is to develop a machine that accepts a piece of text as
input and converts it to speech, which would be as intelligible and natural-sounding as
if spoken by a person, enabling, for example, your computer to talk to you.
Speech recognition is important because you may want to talk to your computer.
The ultimate goal here is to produce a system which can recognize, which human
accuracy, speech from any speaker of a given language. One application is being able
to dictate to a computer instead of typing. Another common application is automated
telephone answering systems, which recognize vocal commands to determine the next
action.
The goal of speech coding or compression is to reliably represent speech signals with
as few bits as possible. This is very important for storage and transmission. When you
store a lot of data, you would like to conserve space as much as possible; and when
you transmit, you want to use as few bits as you can to transmit as much information
as you can. Efficient coding of speech turns out to be possible, because speech is very
redundant.
2.2.1 Voiced and Unvoiced Speech
Voiced sounds, e.g., ‘a’, ‘b’, are essentially due to vibrations of the vocal cords, and
are oscillatory. Therefore, over short periods of time, they are well modeled by sums
of sinusoids. This makes short-time Fourier transform—to be discussed later—a useful
tool for speech processing. Unvoiced sounds such as ‘s’, ‘sh’, are more noise-like, as
shown in Fig. 2.39.
For many speech applications, it is important to distinguish between voiced and
unvoiced speech. There are two simple but effective methods for doing it:
•Short-time power function: Split the speech signal x(n) into blocks of 10-20 ms,
and calculate the power within each block:
Pav =1
L
L
X
n=1
x2(n).
Typically, Pav,voiced >P
av,unvoiced .
pf3
pf4
pf5

Partial preview of the text

Download Speech Processing - Digital Signal Processing - Handout | ECE 43800 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Sec. 2.2. Speech Processing 165

 2.2 Speech Processing

We will now address another very important application, namely, processing of speech signals. This is a very rich area, which has many interesting problems. We will be applying some of the things we studied about systems, frequency analysis, and random processes, to some of these problems. Three main areas of interest in speech processing are:

  • Speech synthesis.
  • Speech recognition.
  • Speech coding. The goal of speech synthesis is to develop a machine that accepts a piece of text as input and converts it to speech, which would be as intelligible and natural-sounding as if spoken by a person, enabling, for example, your computer to talk to you. Speech recognition is important because you may want to talk to your computer. The ultimate goal here is to produce a system which can recognize, which human accuracy, speech from any speaker of a given language. One application is being able to dictate to a computer instead of typing. Another common application is automated telephone answering systems, which recognize vocal commands to determine the next action. The goal of speech coding or compression is to reliably represent speech signals with as few bits as possible. This is very important for storage and transmission. When you store a lot of data, you would like to conserve space as much as possible; and when you transmit, you want to use as few bits as you can to transmit as much information as you can. Efficient coding of speech turns out to be possible, because speech is very redundant.

 2.2.1 Voiced and Unvoiced Speech

Voiced sounds, e.g., ‘a’, ‘b’, are essentially due to vibrations of the vocal cords, and are oscillatory. Therefore, over short periods of time, they are well modeled by sums of sinusoids. This makes short-time Fourier transform—to be discussed later—a useful tool for speech processing. Unvoiced sounds such as ‘s’, ‘sh’, are more noise-like, as shown in Fig. 2.39. For many speech applications, it is important to distinguish between voiced and unvoiced speech. There are two simple but effective methods for doing it:

  • Short-time power function: Split the speech signal x(n) into blocks of 10-20 ms, and calculate the power within each block:

Pav =

L

∑^ L

n=

x^2 (n).

Typically, Pav,voiced > Pav,unvoiced.

166 CHAPTER 2. RANDOM SIGNALS

−10 0 0.2 0.4 0.6 0.

−

0

5

10

15

Utterance of the word "erase"

time (seconds)

−6 0.315 0.32 0.325 0.33 0.335 0.34 0.

−

−

0

2

4

6

8

10

12

Voiced Speech Segment

time (seconds)

−6 0.515 0.52 0.525 0.53 0.535 0.54 0.

−

−

0

2

4

6

8

10

12

Unvoiced Speech Segment

time (seconds)

Figure 2.39. Distinction between voiced and unvoiced speech.

168 CHAPTER 2. RANDOM SIGNALS





B B B 



B B B 



B B B 



B B B 0 T 2 T

0 T 2 T

x(t)

t

(a) Periodic pulse train.

s s s

0 1

T = pitch frequency

1 f

T 2 T 3 T · · ·

|X(f )| = |CT F T {x(t)}|

(b) Frequency response.

Figure 2.41. Time domain and frequency domain perspectives of voiced sounds.

male: T ≈ 8 ms ⇒ pitch ≈ 125 Hz;

female: T ≈ 4 ms ⇒ pitch ≈ 250 Hz. Vocal tract:

  • Different voiced sounds are produced by changing the shape of the vocal tract ⇒ this system is time-varying.
  • However, it is slowly varying. As we saw in Fig. 2.39, changes occur slowly compared to the pitch period.

In other words, each sound is approximately periodic, but different sounds are different periodic signals. This implies that we can model the vocal tract as an LTI filter over short time intervals. Moreover, since the vocal tract is a cavity, it resonates. In other words, when a wave propagates in a cavity, there is a set of frequencies which get amplified. They are called natural frequencies of the resonator, and depend on the shape and size of the resonator. Therefore, the magnitude response of the vocal tract for one voiced sound (phoneme) can be modeled as in Fig. 2.42. The waveform for this particular phoneme will then be the convolution of the driving periodic pulse train x(t) with the impulse response v(t), as illustrated in Fig. 2.43(b), and the magnitude of its spectrum |S(f ) will be the product of X(f ) and the magnitude

Sec. 2.2. Speech Processing 169

s s s

f

|V (f )|, for a particular sound (phoneme)

Figure 2.42. Magnitude response of the vocal tract.

v(t)

t

(a) Voice tract transfer function.

s(t) = x(t) ∗ v(t)

t

(b) Resulting sound wave.

s s s

a a aa aa 

 !! !!

!!

S(f )

f

Formant frequencies

(c) Magnitude response of the resulting sound wave.

Figure 2.43. The vocal tract as an LTI filter.

response |V (f )|, as illustrated in Fig. 2.43(c). The maxima of |S(f )| are called the formant frequencies of the phoneme.

  • Typically, one formant per 1 kHz.
  • Locations are dictated by the poles of the transfer function.

Sec. 2.2. Speech Processing 171

&%

'$ 

CC C π 6

23 π^ Im(z)

Re(z)

π 6 2 π 3

|H (ejω)|

(a) Complex plot of Example 2.21. (b) Magnitude response.

Figure 2.45. Poles near the unit circle correspond to large values of H(ejω^ ).

Remarks:

  • A pair of complex conjugate poles for each formant, to make the frequency response real.
  • The ones at∣ ± 23 π are closer to the unit circle, since the corresponding peak of ∣H (ejω)∣∣ (^) is larger.