Speech Signal Processing

Slides:



Advertisements
Similar presentations
Signal Processing in the Discrete Time Domain Microprocessor Applications (MEE4033) Sogang University Department of Mechanical Engineering.
Advertisements

Digital Signal Processing IIR Filter IIR Filter Design by Approximation of Derivatives Analogue filters having rational transfer function H(s) can be.
Nonrecursive Digital Filters
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Filters and Difference Equations Signal Flow Graphs FIR and IIR Filters.
EE513 Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Signal and System IIR Filter Filbert H. Juwono
Chapter 6 Infinite Impulse Response Filter Design.
CHAPTER 7 Digital Filter Design Wang Weilian School of Information Science and Technology Yunnan University.
Filtering Filtering is one of the most widely used complex signal processing operations The system implementing this operation is called a filter A filter.
Infinite Impulse Response (IIR) Filters
ECE651 Digital Signal Processing I Digital IIR Filter Design.
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
Unit 9 IIR Filter Design 1. Introduction The ideal filter Constant gain of at least unity in the pass band Constant gain of zero in the stop band The.
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
LINEAR-PHASE FIR FILTERS DESIGN
Sampling, Reconstruction, and Elementary Digital Filters R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
AGC DSP AGC DSP Professor A G Constantinides 1 Digital Filter Specifications Only the magnitude approximation problem Four basic types of ideal filters.
EEE422 Signals and Systems Laboratory Filters (FIR) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Systems: Definition Filter
Designing Bandpass Filters We will design several filters for the following normalized frequencies and desired frequency response. First, specify the desired.
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
1 Lecture 5: March 20, 2007 Topics: 1. Design of Equiripple Linear-Phase FIR Digital Filters (cont.) 2. Comparison of Design Methods for Linear- Phase.
Chapter 7 IIR Filter Design
MATLAB for Signal Processing The MathWorks Inc. Natick, MA USA Filter Design.
IIR Filter design (cf. Shenoi, 2006) The transfer function of the IIR filter is given by Its frequency responses are (where w is the normalized frequency.
Chapter 8 Design of infinite impulse response digital filter.
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
Fundamentals of Digital Signal Processing. Fourier Transform of continuous time signals with t in sec and F in Hz (1/sec). Examples:
Chapter 7 Finite Impulse Response(FIR) Filter Design
FIR Filter Design & Implementation
Chapter 9-10 Digital Filter Design. Objective - Determination of a realizable transfer function G(z) approximating a given frequency response specification.
Copyright © 2003 Texas Instruments. All rights reserved. DSP C5000 Chapter 15 Infinite Impulse Response (IIR) Filter Implementation.
Chapter 7. Filter Design Techniques
1 Digital Signal Processing Digital Signal Processing  IIR digital filter structures  Filter design.
1 Lecture 4: March 13, 2007 Topic: 1. Uniform Frequency-Sampling Methods (cont.)
Signals and Systems Filter Design. Part III Design.
Z Transform The z-transform of a digital signal x[n] is defined as:
Nov '03csDSP61 CS3291: Section 6 IIR discrete time filter design Introduction: Many design techniques for IIR discrete time filters have adopted ideas.
FILTER DESIGN Ideal Filter Magnitude Response NumericLogaritmic.
DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,
Digital Signal Processing Lecture 6 Frequency Selective Filters
What is filter ? A filter is a circuit that passes certain frequencies and rejects all others. The passband is the range of frequencies allowed through.
Lecture 09b Finite Impulse Response (FIR) Filters
Finite Impulse Response Filtering EMU-E&E Engineering Erhan A. Ince Dec 2015.
 What is Filter ? A Filter is an electrical network that can transmit signal within a specified frequency range. This Frequency range is called PASS BAND.
Professor A G Constantinides 1 Digital Filter Specifications We discuss in this course only the magnitude approximation problem There are four basic types.
Digital Signal Processing
IIR Filter design (cf. Shenoi, 2006)
Figure 8.1 (p. 615) Time-domain condition for distortionless transmission of a signal through a linear time-invariant system. Signals and Systems, 2/E.
UNIT - 5 IIR FILTER DESIGN.
Lecture: IIR Filter Design
EEE422 Signals and Systems Laboratory
IIR Filters FIR vs. IIR IIR filter design procedure
Linear Prediction Simple first- and second-order systems
Infinite Impulse Response (IIR) Filters
Signals and Systems (Lab) Resource Person : Hafiz Muhammad Ijaz
EE Audio Signals and Systems
Chapter 8 Design of Infinite Impulse Response (IIR) Digital Filter
LINEAR-PHASE FIR FILTERS DESIGN
3.4 Frequency-domain Filters
Quick Review of LTI Systems
MMSE Optimal Design: The Least Squares method
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
Usıng the impulse sampling method Prepared by: Dr. Erhan A. INCE
Chapter 6 Discrete-Time System
Chapter 7 Finite Impulse Response(FIR) Filter Design
Chapter 7 Finite Impulse Response(FIR) Filter Design
Lec.6:Discrete Fourier Transform and Signal Spectrum
IIR Digital Filter Design
Presentation transcript:

Speech Signal Processing Problem 1 Speech Signal Processing

Solution Filter length estimation: from transition band width ∆ 𝑓 1 = 𝑓 𝑠𝑡𝑜𝑝 − 𝑓 𝑝𝑎𝑠𝑠 𝑓 𝑠 𝑎𝑛𝑑 𝑁= 3.3 ∆𝑓 We select N = 25 for the number of filter coefficients and using the Hamming window method. we next obtain from the transition band central frequency 𝑓 𝑐 = 𝑓 𝑝𝑎𝑠𝑠 +𝑠𝑡𝑜𝑝 2 The normalized lower and upper cutoff frequencies are calculated as: and 𝑁=2 𝑀+1=25 𝑀=12

Design using MATLAB

w : Window coefficients h: filter transfer function coefficients b: filter coefficients

Filter Coefficients

Original speech and processed speech using the band-pass filter. The band-pass frequency components contain a small portion of speech energy

Spectral comparison of the original speech and processed speech using the ban-dpass filter. low and high frequencies are removed by the band-pass filter. Low scale amplitude

Problem 2 1. Calculate the filter coefficients for a 5-tap FIR band-pass filter with a lower cutoff frequency of 1,000 Hz and an upper cutoff frequency of 1,500 Hz and a sampling rate of 5,000 Hz. 2. Determine the transfer function and plot the frequency responses with MATLAB. 3. apply the hamming window function to obtain windowed coefficients; 4. plot the impulse response ℎ(𝑛).and windowed impulse response ℎ 𝑤 (𝑛). Hamming window

Solution Calculating the normalized cutoff frequencies leads to Ω 𝐿 = 2𝜋 𝑓 𝐿 𝑓 𝑠 = 2𝜋 1000 5000 =0.4 𝜋 𝑟𝑎𝑑𝑖𝑎𝑛𝑠 Ω 𝐻 = 2𝜋 𝑓 𝐻 𝑓 𝑠 = 2𝜋 1500 5000 =0.6 𝜋 𝑟𝑎𝑑𝑖𝑎𝑛𝑠 Since 2M +1= 5 in this case, using the equation in Table ℎ 𝑛 = Ω 𝐻 − Ω 𝐿 𝜋 𝑛=0 sin⁡(Ω 𝐻 𝑛) 𝑛𝜋 − sin⁡(Ω 𝐿 𝑛) 𝑛𝜋 𝑛≠0 𝑎𝑛𝑑−2≤𝑛≤2 Calculations for non-causal FIR coefficients are listed as ℎ 0 = Ω 𝐻 − Ω 𝐿 𝜋 = 0.6𝜋−0.4𝜋 𝜋 =0.2 ℎ 1 = sin⁡(Ω 𝐻 𝑛) 𝑛𝜋 − sin⁡(Ω 𝐿 𝑛) 𝑛𝜋 = sin 0.6𝜋 ×1 1×𝜋 − sin 0.4𝜋 ×1 1×𝜋 =0.0035 ℎ 2 = sin⁡(Ω 𝐻 𝑛) 𝑛𝜋 − sin⁡(Ω 𝐿 𝑛) 𝑛𝜋 = sin 0.6𝜋 ×2 2×𝜋 − sin 0.4𝜋 ×2 2×𝜋 =0.0035

Problem 3 Let us design a first-order digital low-pass filter with a 3-dB cutoff frequency of 𝜔 𝑐 =0.25 𝜋 by applying the bilinear transformation to the analog Butterworth filter: 𝐻 𝑎𝑝 (𝑠)= 1 1+ 𝑠 Ω 𝑐

1. Frequency Warping (mapping digital frequency to analog frequency) Solution 1. Frequency Warping (mapping digital frequency to analog frequency) Because the 3-dB cutoff frequency of the Butterworth filter is Ω 𝑐 for a cutoff frequency 𝜔 𝑐 =0.25 𝜋 in the digital filter, we must have: Ω 𝑐 = 2 𝑇 𝑠 𝑡𝑎𝑛 0.25𝜋 2 = 0.828 𝑇 𝑠 2. Prototype Transformation (From Prototype analog LPF to desired analog filter) Therefore, the system function of the analog filter is (we use directly the given analog Butterworth filter ): 𝐻 𝑎 𝑠 = 1 1+ 𝑠 Ω 𝑐 = 1 1+ 𝑠𝑇 𝑠 0.828 3. Bilinear Transformation (From analog filter transfer function to digital filter Transfer Function) Applying the bilinear transformation to the analog filter gives 𝐻 𝑎 𝑧 = 𝐻 𝑎 𝑠 𝑠= 2 𝑇 𝑠 1− 𝑧 −1 1+ 𝑧 −1 = 1 1+ 2 0.828 1− 𝑧 −1 1+ 𝑧 −1 =0.292 1+ 𝑧 −1 1−0.4159 𝑧 −1 Note that the parameter 𝑇 𝑠 , does not enter into the design.

Matlab %- freqz returns the frequency response based on the current filter coefficients b=[0.292 0.292]; a=[1 -0.4159]; [hz,f]=freqz(b,a); % 512 nb of data plot %- angle(hz)returns the phase angles in radians, phi = 180*unwrap(angle(hz))/pi; %- unwrap Correct phase angles to produce smoother phase plots subplot(2,1,1), plot(f, abs(hz)),grid; %axis([0 fs/2 0 1]); %xlabel('Frequency (Hz)'); ylabel('Magnitude Response') subplot(2,1,2), plot(f, phi); grid; %axis([0 fs/2 -100 0]); %xlabel('Frequency (Hz)'); ylabel('Phase (degrees)')

Problem 4 Illustrating the simple pole-zero method of calculating filter coefficients a band-pass digital filter is required to meet the following specifications: Assuming a sampling frequency of 500 Hz, obtain 1. The transfer function of the filter by suitably placing z-plane poles and zeros. 2. its difference equations. 3. Block diagram representation of filter.

Solution Since a complete rejection is required at zero and 250Hz we need to: place zeros at the corresponding points on the z-plane. These are at angles of 0° and 360×250/500=180° on the unit circle. place zeros at : 𝜃= 𝑓 𝑓 𝑠 360 ° = 0 500 360 ° = 0 ° and 𝜃= 250 500 360 ° = 18 0 ° 𝑧 1 =1 𝑎𝑛𝑑 𝑧 2 =−1 To have the pass-band centered at 125Hz requires us to place poles at ±360×125/500=±90°. place poles at : 𝑝 1 =𝑟 𝑒 𝑗 𝜋 2 𝑎𝑛𝑑 𝑝 2 =𝑟 𝑒 −𝑗 𝜋 2 To ensure that the coefficients are real , it is necessary to have complex conjugate pole pair. The radius of the poles is determined by the desired bandwidth. An approximate relationship between r, for r > 0.9 , and bandwidth bw is: 𝑟~1− 10 500 3.14=0.937 for our specifications bw =10Hz and Fs = 500Hz . This leads to an r value of r = 0.937 The difference equation is

𝑓 𝑠 /2 Pole-zero dıagram Block diagram representation of filter

Matlab f0 = 125 ; bw = 10; fs= 500; r=1-(bw/fs)*pi; % magnitude of the pole theta=(f0/fs)*360; % angle of the pole k=((1-r)*sqrt(1-2*r*cos(2*theta*(pi/180))+r^2))/(2*abs(sin(theta*(pi/180)))); % the filter transfer function b=[k 0 -k];a=[1 -2*r*cos(theta*(pi/180)) r^2]; %- freqz returns the frequency response based on the current filter coefficients [hz,f]=freqz(b,a,512,fs); % 512 nb of data plot %- angle(hz)returns the phase angles in radians, phi = 180*unwrap(angle(hz))/pi; %- unwrap Correct phase angles to produce smoother phase plots subplot(2,1,1), plot(f, abs(hz)),grid; axis([0 fs/2 0 1.5]); xlabel('Frequency (Hz)'); ylabel('Magnitude Response') subplot(2,1,2), plot(f, phi); grid; axis([0 fs/2 -180 180]); xlabel('Frequency (Hz)'); ylabel('Phase (degrees)')