Speech and Audio Signal Processing ECE554 - Lec - 5 STFT Analysis v2.1
Speech and Audio Signal Processing ECE554 - Lec - 5 STFT Analysis v2.1
Overview
Short-Time Fourier Transform
Window effect
Speech and Audio Signal Processing
j
Window Function
ECE554
ja
Nikesh Bajaj
[email protected]
Asst. Prof. DSP, SECE
Lovely Professional University
2 By: Nikesh Bajaj
Review of Limitation of FT
Introduction to STFT
Advantage of STT over FT
sh
Spectrogram
Effect of window size
Nikesh Bajaj
Limitation of STFT
[email protected]
Digital Signal Processing Summary
Lovely Professional University
4 By: Nikesh Bajaj
ke
Limitation of FT Limitation of FT
x
Ni
1= 10
x 2= 20
3= 40
4=100
x1(t)=cos( 4t)
x2(t)=cos( 3t)
x3(t)=cos( 2t)
x4(t)=cos( 1t)
1
11/22/2013
j
The basis function sin(t) is not localized in time!
This is called as SHORT TIME FOURIER
The (t) (sample) is not localized in frequency
TRANSFORM.
ja
signal x(t)
Fourier Transform does not give any
information about occurrence of frequency window w(t)
~
x(t )w(t )e dt
it
components with time. X ( , )
Where we are???
Introduction to subject
Signal & System (in a glance)
Fourier Series
Ba Short Time Fourier Transform
Equidistant frequencies:
k
2
k
t
Review of Fourier Transform
sh
Limitation of Fourier Transform (FT)
Short Time Fourier Transform (STFT)
Window function
Fractional Fourier Transform t
Wavelet Transform
9 By: Nikesh Bajaj 10 By: Nikesh Bajaj
ke
y(t)=Asin(2f0t)
f0=660 Hz
Time
11 By: Nikesh Bajaj 12 By: Nikesh Bajaj
2
11/22/2013
j
x(t ) (t )
~
X ( ) 1
ja
13 By: Nikesh Bajaj 14 By: Nikesh Bajaj
3
11/22/2013
ja j
Signal and FT Spectrogram (STFT) Signal and FT Spectrogram (STFT)
19 By: Nikesh Bajaj 20 By: Nikesh Bajaj
signals
x1=sin(2*pi*50*(0:0.001:2))
sh
x2=sin(2*pi*300*(0:0.001:2))
y1=x1+x2
y2=[x1 x2]
Check
Signal and FT Spectrogram (STFT) plot(y1), plot(y2), Plot(abs(fft(y1))) and for y2
spectrogram(y1, w) check for y2 and diff value of w
22 By: Nikesh Bajaj
ke
t2
4
11/22/2013
ja j
Middle size window: a=0.0001 Wide window: a=0.00001
Trade-off in
Time-Frequency
High time and frequency resolution
cant be achieved simultaneously
Ba Trade-off in
Time-Frequency
sh
t2
4
t Limitation of FT
We cannot localize events in time and frequency Does not inform about position of frequency
simultaneously! occurrence in time.
STFT
Improved time resolutionDegraded frequency resolution Spectrogram gives time-frequency information.
Improved frequency resolution Degraded time resolution
But with limited resolution.
Solution is Wavelet Transform.
Problem : the same and t through the entire plane!
5
11/22/2013
Window functions
Rectangular window /Boxcar
Hanning
Kaiser Window Functions
Bartlett
Chebyshev
ja
Hamming
Hann
Taylor
Nikesh Bajaj
[email protected]
Triangular
Asst. Prof. LSECA, ECE
Blackman
Lovely Professional University
31 By: Nikesh Bajaj
Properties of STFT
Linear
Complex valued
Ba
Where we are?
Introduction to Subject
Brief about Signal & System
Fourier Series
Time invariant Fourier Transform & Its Limitations
sh
Time shift Short Time Fourier Transform & its Limitations
Frequency shift With MATLAB
Many other properties of the FT also apply. Window Functions, with MATLAB
Fractional Fourier Transform
Introduction to Wavelet
33 By: Nikesh Bajaj 34 By: Nikesh Bajaj
ke
1
Overview Window Function t
6
11/22/2013
j
Rectangular Window: poor choice for signals of disparate
amplitudes
spectral leakage
high-dynamic-range : low-resolution, also poorest in terms
The leakage tends to be worst (highest) near
of sensitivity;
ja
and least at frequencies farthest from
waveform contains random noise, the ability to find weak
leakage can interfere sinusoids amidst the noise is diminished by a high-dynamic-range
Any window (including rectangular) affects the window, used for wideband applications
spectral estimate computed by this method. Moderate windows: They are commonly used in
narrowband applications, such as the spectrum of a
telephone channel
37 By: Nikesh Bajaj 38 By: Nikesh Bajaj
Window Function
Ba
Spectral analysis involves a tradeoff between resolving
comparable strength signals with similar frequencies and
resolving disparate strength signals with dissimilar
frequencies. That tradeoff occurs when the window
High-resolution windows
Rectangular window 1
t
Also called as Dirichlet
function is chosen.
sh
window
7
11/22/2013
ja j
43 By: Nikesh Bajaj 44 By: Nikesh Bajaj
Kaiser windows
Ba Low-resolution (high-dynamic-range)
windows
8
11/22/2013
Window functions
Rectangular window /Boxcar
The Hann and Hamming windows, both of
Hanning
which are in the family known as "raised
j
Kaiser
cosine" windows, are respectively named Bartlett
after Julius von Hann and Richard Chebyshev
ja
9
11/22/2013
ja j
55 By: Nikesh Bajaj 56 By: Nikesh Bajaj
Spectrogram
Every salt breeze comes from sea
Formant Freq.
Ba Spectrogram
sh
57 By: Nikesh Bajaj 58 By: Nikesh Bajaj
ke
10
11/22/2013
ja
61 By: Nikesh Bajaj 62 By: Nikesh Bajaj
Analysis by Synthesis
Speech waveform with representation
Speech Model
Analysis by synthesis
Ba Digital Speech Model
System
sh
Pitch Synchronous spectrum analysis Vocal Tract
Pole-Zero Analysis
duration)
Transfer Function
11
11/22/2013
ja j
1
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 10 20 30 40 50 60 70 80 90
Radiation Effect
Analysis
For narrow band/long window: information is
obscured by pitch peaks
For wide band/narrow window: formant peaks
smeared out
12
11/22/2013
j
Issues
Pitch varies with time non uniform sampling
# of Freq. Comp depends on pitch, sampling rate in freq
ja
Pole-Zero Analysis
using analysis-by-synthesis
Pole-Zero Analysis
Poles of V(z) and zeros of G(z)
Guess parameters of H(jw)
Ba Pole-Zero Analysis
Error
sh
Q(k)= weighting function
The Phase Vocoder Working
The Channel Vocoder
Phase Vocoder
13
11/22/2013
j
Filters
ja
79 By: Nikesh Bajaj 80 By: Nikesh Bajaj
Ba
Computing STFT in MATLAB Phase Vocoder
STFT
sh
81 By: Nikesh Bajaj 82 By: Nikesh Bajaj
ke
14
11/22/2013
j
Initial Condition
Zero will result error, reverberant
ja
85 By: Nikesh Bajaj 86 By: Nikesh Bajaj
15
11/22/2013
ja j
91 By: Nikesh Bajaj 92 By: Nikesh Bajaj
Ba
sh
93 By: Nikesh Bajaj 94 By: Nikesh Bajaj
ke
Channel Vocoder
Ni
16
11/22/2013
ja j
97 By: Nikesh Bajaj
Ba
sh
ke
Ni
17