HCS / ACN 6389 Speech Perception Lab
|
|
- Heather Erika Neal
- 6 years ago
- Views:
Transcription
1 HCS / ACN 6389 Speech Perception Lab Course Requirements Matlab problems & lab assignments (40%) Oral presentations (10%) Term project paper (50%) Dr. Peter Assmann Fall Term project: important dates Sep 7: Submit project topics (title only) Sep 21: Submit project outline Sep 28: Present project idea in class Nov 16 / Nov 30: Project presentations Dec 14: Final project paper due Interactive MATLAB Tutorial (requires login) Start Matlab doc Matlab Click on Getting Started with Matlab This launches a video in your browser 4 Command Window enter commands at the prompt >> Create some numeric variables: >> x = 5; % 1x1 scalar >> y = 1:12; % 1x12 vector >> z = rand(4,4); % 4x4 matrix 5 Create character variables by enclosing text in single quotes: >> a = 'c'; % 1x1 character >> b=dir('*.m'); % directory listing >> b=char(b.name); % character array The semicolon tells Matlab not to echo the contents of the variable on the screen. This is important for large vectors (e.g. 10 seconds of speech). 6 1
2 Concatenate variables using square brackets >> a = [ ]; >> b = [ ]; >> c = [a b]; >> disp(c) c = Concatenate character variables using square brackets >> a = 'Matlab is fun! '; >> b = 'Speech perception is interesting.'; >> c = [a b]; >> disp(c) c = Matlab is fun! Speech perception is interesting. 8 Concatenate character variables using square brackets Horizontal concatenation: [a b] Vertical concatenation: [a; b] Combined: [a b; c d] Note: a=1; b=2; c=3; d=4; [a b; c d] ans = a=1; b=2; c=3; d=4; [a b; c] Error using vertcat Dimensions of matrices being concatenated are not consistent. 9 Matlab workspace: variables and data created in the current session Type who to find out what variables exist in the workspace; whos provides details about those variables. >> whos 10 >> whos Name Size Bytes Class Attributes a 1x1 2 char b 16x char x 1x1 8 double y 1x12 96 double z 4x4 128 double Type cd to list the current directory >> cd C:\Users\assmann\Documents\MATLAB Use cd <path> to change to another directory: >> cd C:\Users\assmann\Documents
3 Digital representations of signals Digital representations of signals amplitude time Sampling frequency (e.g khz) Nyquist frequency Effects of discrete-time sampling on bandwidth Quantization rate (16 bits) 16 bits =2 16 quantization steps Effects of discrete-level quantization on dynamic range sampling quantization Vector representation of speech In Matlab speech signals are represented as row or column vectors (e.g., N rows x 1 columns, where N is the number of samples in the waveform). First, download or record a.wav file and store it in the current directory (e.g., wheel.wav on the course web page). Check to make sure the file is in the current directory: >> dir wheel.wav 'wheel.wav' not found. 15 Vector representation of speech In Matlab speech signals are represented as row or column vectors (e.g., N rows x 1 columns, where N is the number of samples in the waveform). First, download (or record) a.wav file and put it in the current directory. >> [y, fs]=audioread('wheel.wav'); % load waveform audioread.m is a Matlab function to read data from.wav files Left side = output variables; right side = input variables The variable y contains the speech signal. The variable fs contains the sample rate in Hz. 16 Vector representation of speech > [y, fs]=audioread('wheel.wav'); % load waveform >> size( y ) ans = Vector representation of speech Load the waveform and plot it: >> [y,fs]=audioread('wheel.wav'); % load waveform >> t=(1:length(y) )./ (fs/1000); % set up time axis >> plot( t, y ); % use plot command >> size( fs ) ans = 1 1 The variable y has 3200 rows x 1 column (row vector). The variable fs has 1 row x 1 column (scalar)
4 Annotating plots >> axis( [ ] ); % set axis limits >> xlabel('time (ms)'); % x-axis label >> ylabel('amplitude'); % y-axis label >> title('waveform plot'); % axis title Try this: >> axis tight >> axis auto Max range Time (x) axis in milliseconds (1000 ms = 1 second) Amplitude (y) axis ~ sound pressure level quantized to 16 bits and range set to ±1. 19 Exercise1 Use built-in Matlab functions to find various properties of the waveform:» length ( y ) % vector length» min ( y ) % minimum value» max ( y ) % maximum value» mean ( y ) % mean value» std ( y ) % standard deviation» plot ( y ) % plot waveform» sound ( y, fs ) % listen to waveform Spectral analysis in Matlab Fourier spectrum of a vector: >> X= fft (y); >> help fft FFT Discrete Fourier transform. FFT(X) is the discrete Fourier transform (DFT) of vector X. If the length of X is a power of two, a fast radix-2 fast- Fourier transform algorithm is used. If the length of X is not a power of two, a slower non-power-of-two algorithm is employed. For matrices, the FFT operation is applied to each column. FFT(X,N) is the N-point FFT, padded with zeros if X has less than N points and truncated if it has more.» soundsc ( y, fs ) % safe version of sound Spectral analysis in Matlab Log magnitude (amplitude) spectrum: >> X= fft (y); >> m = 20 * log10 ( abs ( X ) ); >> help abs ABS Absolute value. ABS(X) is the absolute value of the elements of X. When X is complex, ABS(X) is the complex modulus (magnitude) of the elements of X. Spectral analysis in Matlab Log magnitude (amplitude) spectrum: >> plot(20*log10(abs(fft(y))))
5 » help fp Plotting amplitude spectra FP: function to compute & plot amplitude spectrum Usage: [a,f]=fp(y,fs,window); y: input waveform fs: sample rate in Hz (default Hz) window options: 'hann', 'hamm', 'kais', or 'rect' (default=hamming) [a,f]: log magnitude (db re:1), frequency (Hz) Plotting amplitude spectra» [a,f]=fp(y,fs,window);» [a,f]=fp(y,fs,'hann'); Amplitude (db) p Frequency (khz) Source properties In voiced sounds the glottal source spectrum contains a series of lines called harmonics. The lowest one is called the fundamental frequency (F 0). F 0 Source properties: Pitch Fundamental frequency (F 0) is determined by the rate of vocal fold vibration, and is responsible for the perceived voice pitch. Relative Amplitude (db) Frequency (Hz) Harmonicity and Periodicity Period: regularly repeating pattern in the waveform Period duration T0 = 6 ms Waveform Source-filter independence Effects of F0 changes Harmonics are integer multiples of F 0 and are evenly spaced in frequency Amplitude (db) F 0 = 1000 / 6 = 166 Hz Amplitude Spectrum F 0 = 1 / T Frequency (khz)
6 Effects of formant frequency changes Source-filter independence Exercise: Harmonics in recorded vowels Use Matlab s audiorecorder function to record a vowel, plot the spectrum and inspect the harmonic structure. Produce sustained vowel, /a/ (as in hot ) Exercise: Harmonics in recorded vowels >> fs = 10000; % set sampling rate >> nbits=16; % amplitude quantization (bits) >> nchan = 1; % single channel (mono) >> recobj = audiorecorder(fs, nbits, nchan); >> recordblocking(recobj, 3); % 3 seconds Exercise: Harmonics in recorded vowels >> play(recobj); % listen to the recording >> y = getaudiodata(recobj); % vector of recorded samples with 16-bit double precision >> audiowrite('ah.wav',y,fs); % option: save to file Exercise: Harmonics in recorded vowels Plot amplitude spectrum of your recording >> fp( y, fs ); What is the fundamental frequency (approximately)? What frequency is the strongest harmonic? Frequency axis is in khz (1 khz =1000 Hz)
7 Uniform tube model (schwa) Vocal tract model / ə / Quarter-wave resonator: Fn = ( 2n 1 ) c / 4 L Fn is the frequency of formant n in Hz c is the velocity of sound (about cm/sec) L is the length of the vocal tract (17.5 for adult male) Vocal tract model Acoustic vowel space 3000 Quarter-wave resonator: i heed Fn = ( 2n 1 ) c / 4 L F 1 = (2(1) 1)*35000/(4*17.5) = 500 Hz F 2 = (2(2) 1)*35000/(4*17.5) = 1500 Hz F 3 = (2(3) 1)*35000/(4*17.5) = 2500 Hz Second formant, F2 frequency (Hz) u who d Ə 600 ɑ hod First formant, F1 frequency (Hz) 40 Spectral analysis Amplitude spectrum: sound pressure levels associated with different frequency components of a signal Power or intensity Amplitude or magnitude Log units and decibels (db) Phase spectrum: relative phases associated with different frequency components Degrees or radians Frequency domain representation Why perform spectral analyses of speech? The ear+brain carry out a form of frequency analysis The relevant features of speech are more readily visible in the amplitude spectrum than in the raw waveform BUT: the ear is not a Fourier analyzer. Fourier analysis provides amplitude and phase spectrum; speech cues have been mainly associated with the amplitude spectrum. However, the ear is not "phase-deaf"; many phase changes are clearly audible. Frequency selectivity is greatest for frequencies below 1 khz and declines at higher frequencies
8 » help fp Plotting amplitude spectra FP: function to compute & plot amplitude spectrum Usage: [a,f]=fp (y, fs, window); wave: input waveform rate: sample rate in Hz (default Hz) window options: 'hann', 'hamm', 'kais', or 'rect' (default=hanning) Output: a = log magnitude, f=frequency Plotting amplitude spectra» [a,f]=fp( y, fs, 'hann'); Exercise1 Step 3: Find vowel midpoint; define a range of sample points to extract from the waveform.» nfft = 512;» start = ( length (y) / 2 ) (nfft/2 1);» stop = ( length (y) / 2 ) + nfft/2; % y ( start : stop ) Exercise1 Step 4: Use the function fp.m to compute and plot the amplitude spectrum of the vowel segment:» fp ( y( start : stop ), fs, 'Hamm' ); input vector (waveform segment) input arguments sample rate type of window function 47 Function M-file: fp.m There are two types of M-files: scripts and functions. To display the contents of an M-file, type the following:» type fp.m Function M-files start with a function statement (see next page) and a series of comment lines. The comment lines are included to provide online help and are optional (but very useful!). The next five slides illustrate and explain the contents of the function fp.m 48 8
9 Function M-file: fp.m % FP: function to compute & plot amplitude spectrum % Usage: [a,f]=fp(wave,rate,window); comment lines % wave: input waveform % rate: sample rate in Hz (default Hz) % window options: 'hann', 'hamm', 'kais', 'rect' (default=hanning) % [a,f]: log magnitude, frequency function [ a, f ] = fp ( x, rate, window ) ; optional output arguments a=log magnitude spectrum f=corresponding frequencies function statemen t 49 Function M-file: fp.m % set reasonable defaults for optional variables if ~exist ( 'rate', 'var' ), rate=10000; set defaults end; if ~exist ( 'window', 'var' ), window = 'hamm' ; end; 50 Function M-file: fp.m x = x ( : ) ; n = length ( x ) ; % convert x to column vector % length of data vector Variables defined inside a function are local. In other words, they are not accessible on the command line, outside the function itself. 51 Function M-file: fp.m % illustration of if-else statements: window=lower(window); % window must be lower case if window=='rect', % rectangular window = [ ] x=x.*ones(n,1); % multiplying x by 1 does nothing! elseif window=='hamm', x=x.*hamming(n); % multiply x by Hamming window elseif window=='hann', x=x.*hanning(n); % multiply x by Hanning window else, x=x.*hamming(n); % default case: Hamming window end; 52 Function M-file: fp.m Function M-file: fp.m m=fft(x,n); % Fast Fourier Transform (fastest if n = power of 2) no2=round(n/2); % n/2 samples: FFT is symmetrical a=20*log10( abs ( m ) / n); % convert linear magnitude to db f=rate/n*(0:no2)/1000; % frequency scale: DC = 0 to fs/2 freq = f (1:no2); % retain only the first n/2 samples amp = a (1:no2); % retain only the first n/2 samples % plot amplitude spectrum: frequency vs. amplitude plot ( freq, amp ) ; % frequency = x-axis, amplitude=y-axis axis( [ 0 rate/2000 -Inf Inf ] ) ; % axis range: [ xl xh yl yh ] % ****** End of function fp.m ******
10 Exercise1 Annotate graph: >> xlabel ( 'Frequency (khz)' ); % x-axis label >> ylabel ( 'Amplitude (db)' ); % y-axis label >> title ( filenames ( i, : ) ); % graph title Turn off the axis labels by inserting an empty string: Exercise: modify fp.m % modify fp.m to compute phase spectrum phase = unwrap ( angle (m) ) ; p = 180 / phase; % convert from radians to degrees % plot phase spectrum: frequency vs. phase plot ( freq, phase ) ; % frequency = x-axis, phase=y-axis axis( [ 0 rate/ ] ) ; >> ylabel ( ' ' ); % null axis label Annotations >> xlabel ( 'Frequency (khz)' ); % x-axis label >> ylabel ( 'Amplitude (db)' ); % y-axis label >> title ( filenames ( i, : ) ); % graph title Modifying axes properties Modify default axes properties: >> gca % get current axes = axes handle >> set ( gca, 'XLim', [ 0 4 ] ); % x-axis range >> set ( gca, 'YLim', [ ] ); % y-axis range >> set ( gca, 'TickDir', 'Out' ); % tick mark dir Amplitude spectrum Phase spectrum Amplitude (db) Frequency (khz) 59 Phase (deg) Frequency (khz) 60 10
11 Speech spectrograms What is a speech spectrogram? Display of amplitude spectrum at successive instants in time ("running spectra") How can 3 dimensions be represented on a twodimensional display? Gray-scale spectrogram Waterfall plots Animation Why are speech spectrograms useful? Shows dynamic properties of speech Includes frequency analysis Speech spectrograms in Matlab» help specgram SPECGRAM Calculate spectrogram from signal. B = SPECGRAM(A,NFFT,Fs,WINDOW,NOVERLAP) calculates the spectrogram for the signal in vector A. SPECGRAM splits the signal into overlapping segments, windows each with the WINDOW vector and forms the columns of B with their zero-padded, length NFFT discrete Fourier transforms Speech spectrograms in Matlab» help sp sp: create gray-scale spectrogram Usage: h=sp(wave,rate,nfft,nsampf,nhop,pre,drng); wave: input waveform rate: sample rate in Hz (default 8000 Hz) nfft: FFT window length (default: 256 samples) nsampf: number of samples per frame (default: 60) nhop: number of samples to hop to next frame (default: 5 samples) pre: preemphasis factor (0-1) (default: 1) drng: dynamic range in db (default: 80) title: title for graph (default: none) Making spectrograms >> [y,fs] = audioread)( wheel.wav ); % Load waveform >> sp (wheel, 8000); % Use defaults for other variables >> colormap(copper.*hot); % determines color scheme waveform waveform spectrogram spectrogram F4 F3 F2 F
12 F1 American English vowel space Advancement F2 front center back i heed u who d high ɩ hid ʊ hood Assignment 1 Part 1: (Matlab code, plots, brief summary) Make a set of digital recordings (WAV files) of the 12 vowels of American English: e hayed mid ɛ head Ə schwa o hoed ɔ hawed Height "heed" "hid" "hayed" "head" "had" "hud" "hod" "hawed" low ʌ hut "hoed" "hood" "who d" "herd" æ had ɑ hod Assignment 1 Load waveforms into Matlab; make 12 subplots of the amplitude spectra of the vowels, sampled near the midpoint. Assignment 1 Plot the amplitude spectra of the vowels. Place all 12 plots in a single figure window using the subplot command:» [ y, fs ] = wavread ('heed.wav');» subplot (4,3,1);» start = ( length (y) / 2 ) - 256;» stop = ( length (y) / 2 ) + 256;» fp ( y ( start : stop ), 512, fs, 'heed.wav', 'Hamming'); >> subplot ( 3, 4, 1); >> plot ( x, y ); >> subplot ( 3, 4, 2); >> plot ( x, y ); / / "heed" / / "hid" / / "hayed" / / "head" / / "had" / / "hud" / / "hod" / / "hawed" / / "hoed" / / "hood" / / "who d" / / "herd" Assignment 1 Step 1: Make a list of the filenames as a character array: >> filenames = char ( 'heed', 'hid', 'hayed', 'head', 'had', 'hud', 'herd', 'hod', 'hawed', 'hoed', 'hood', 'whod' ) ; >> deblank ( filenames ( 3, : ) ) Assignment 1 Step 2: Load the waveform of each vowel from the disk: >> for i=1:12, >> [ y, rate ] = audioread ( deblank ( filenames ( i, : ) ) ); >> y = y * 2^15; % scale signal to 16-bit range (±2 15 ) >> end; ans = hayed
13 TrackDraw: a graphical speech synthesizer Fundamental Frequency (F0) window Amplitude of voicing (AV) window TrackDraw: finished tracks Saving, printing and re-loading tracks >> specsynth; % when finished tracking click on exit button >> savetr % save tracks in file; enter name xxheedtr % savetr will append the.mat extension >> load xxheedtr.mat % To re-load track files and run statistics >> plottracks >> print -Pljhd Fourier analysis and synthesis D.P.W. Ellis (2009). An introduction to signal processing for speech. In The Handbook of Phonetic Science, 2 nd edition, edited by Hardcastle, Laver, and Gibbon. chapter 22, pp , Blackwell
14 Ellis (2009, p. 12) 14
Project 0: Part 2 A second hands-on lab on Speech Processing Frequency-domain processing
Project : Part 2 A second hands-on lab on Speech Processing Frequency-domain processing February 24, 217 During this lab, you will have a first contact on frequency domain analysis of speech signals. You
More informationLinguistic Phonetics. Spectral Analysis
24.963 Linguistic Phonetics Spectral Analysis 4 4 Frequency (Hz) 1 Reading for next week: Liljencrants & Lindblom 1972. Assignment: Lip-rounding assignment, due 1/15. 2 Spectral analysis techniques There
More informationINTRODUCTION TO ACOUSTIC PHONETICS 2 Hilary Term, week 6 22 February 2006
1. Resonators and Filters INTRODUCTION TO ACOUSTIC PHONETICS 2 Hilary Term, week 6 22 February 2006 Different vibrating objects are tuned to specific frequencies; these frequencies at which a particular
More informationExperiment 1 Introduction to MATLAB and Simulink
Experiment 1 Introduction to MATLAB and Simulink INTRODUCTION MATLAB s Simulink is a powerful modeling tool capable of simulating complex digital communications systems under realistic conditions. It includes
More informationTHE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series
THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering EIE2106 Signal and System Analysis Lab 2 Fourier series 1. Objective The goal of this laboratory exercise is to
More informationSPEECH AND SPECTRAL ANALYSIS
SPEECH AND SPECTRAL ANALYSIS 1 Sound waves: production in general: acoustic interference vibration (carried by some propagation medium) variations in air pressure speech: actions of the articulatory organs
More informationSignal Processing First Lab 20: Extracting Frequencies of Musical Tones
Signal Processing First Lab 20: Extracting Frequencies of Musical Tones Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises in
More informationSpeech Processing. Undergraduate course code: LASC10061 Postgraduate course code: LASC11065
Speech Processing Undergraduate course code: LASC10061 Postgraduate course code: LASC11065 All course materials and handouts are the same for both versions. Differences: credits (20 for UG, 10 for PG);
More informationReading: Johnson Ch , Ch.5.5 (today); Liljencrants & Lindblom; Stevens (Tues) reminder: no class on Thursday.
L105/205 Phonetics Scarborough Handout 7 10/18/05 Reading: Johnson Ch.2.3.3-2.3.6, Ch.5.5 (today); Liljencrants & Lindblom; Stevens (Tues) reminder: no class on Thursday Spectral Analysis 1. There are
More informationCS 188: Artificial Intelligence Spring Speech in an Hour
CS 188: Artificial Intelligence Spring 2006 Lecture 19: Speech Recognition 3/23/2006 Dan Klein UC Berkeley Many slides from Dan Jurafsky Speech in an Hour Speech input is an acoustic wave form s p ee ch
More informationFourier Series and Gibbs Phenomenon
Fourier Series and Gibbs Phenomenon University Of Washington, Department of Electrical Engineering This work is produced by The Connexions Project and licensed under the Creative Commons Attribution License
More informationSource-Filter Theory 1
Source-Filter Theory 1 Vocal tract as sound production device Sound production by the vocal tract can be understood by analogy to a wind or brass instrument. sound generation sound shaping (or filtering)
More informationUniversity of Bahrain
University of Bahrain College of Engineering Dept of Electrical and Electronics Engineering Experiment 5 EEG 453 Multimedia Audio processing Objectives This experiment demonstrates different Audio processing
More informationLAB 2 Machine Perception of Music Computer Science 395, Winter Quarter 2005
1.0 Lab overview and objectives This lab will introduce you to displaying and analyzing sounds with spectrograms, with an emphasis on getting a feel for the relationship between harmonicity, pitch, and
More informationPrinceton ELE 201, Spring 2014 Laboratory No. 2 Shazam
Princeton ELE 201, Spring 2014 Laboratory No. 2 Shazam 1 Background In this lab we will begin to code a Shazam-like program to identify a short clip of music using a database of songs. The basic procedure
More informationHomework 4. Installing Praat Download Praat from Paul Boersma's website at Follow the instructions there.
Homework 4 Part One: Using Praat to find vowel formants This part of the assignment is to use the Praat computer program to measure F1 and F2 of your English vowels. Installing Praat Download Praat from
More informationSignal Analysis. Young Won Lim 2/10/18
Signal Analysis Copyright (c) 2016 2018 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later
More informationDSP First. Laboratory Exercise #11. Extracting Frequencies of Musical Tones
DSP First Laboratory Exercise #11 Extracting Frequencies of Musical Tones This lab is built around a single project that involves the implementation of a system for automatically writing a musical score
More informationDiscrete Fourier Transform (DFT)
Amplitude Amplitude Discrete Fourier Transform (DFT) DFT transforms the time domain signal samples to the frequency domain components. DFT Signal Spectrum Time Frequency DFT is often used to do frequency
More informationSound synthesis with Pure Data
Sound synthesis with Pure Data 1. Start Pure Data from the programs menu in classroom TC307. You should get the following window: The DSP check box switches sound output on and off. Getting sound out First,
More informationLab 4 Fourier Series and the Gibbs Phenomenon
Lab 4 Fourier Series and the Gibbs Phenomenon EE 235: Continuous-Time Linear Systems Department of Electrical Engineering University of Washington This work 1 was written by Amittai Axelrod, Jayson Bowen,
More informationStructure of Speech. Physical acoustics Time-domain representation Frequency domain representation Sound shaping
Structure of Speech Physical acoustics Time-domain representation Frequency domain representation Sound shaping Speech acoustics Source-Filter Theory Speech Source characteristics Speech Filter characteristics
More informationLab 3 FFT based Spectrum Analyzer
ECEn 487 Digital Signal Processing Laboratory Lab 3 FFT based Spectrum Analyzer Due Dates This is a three week lab. All TA check off must be completed prior to the beginning of class on the lab book submission
More informationProblem Set 1 (Solutions are due Mon )
ECEN 242 Wireless Electronics for Communication Spring 212 1-23-12 P. Mathys Problem Set 1 (Solutions are due Mon. 1-3-12) 1 Introduction The goals of this problem set are to use Matlab to generate and
More informationBiomedical Signals. Signals and Images in Medicine Dr Nabeel Anwar
Biomedical Signals Signals and Images in Medicine Dr Nabeel Anwar Noise Removal: Time Domain Techniques 1. Synchronized Averaging (covered in lecture 1) 2. Moving Average Filters (today s topic) 3. Derivative
More informationWaveSurfer. Basic acoustics part 2 Spectrograms, resonance, vowels. Spectrogram. See Rogers chapter 7 8
WaveSurfer. Basic acoustics part 2 Spectrograms, resonance, vowels See Rogers chapter 7 8 Allows us to see Waveform Spectrogram (color or gray) Spectral section short-time spectrum = spectrum of a brief
More informationAcoustic Phonetics. How speech sounds are physically represented. Chapters 12 and 13
Acoustic Phonetics How speech sounds are physically represented Chapters 12 and 13 1 Sound Energy Travels through a medium to reach the ear Compression waves 2 Information from Phonetics for Dummies. William
More informationElectrical & Computer Engineering Technology
Electrical & Computer Engineering Technology EET 419C Digital Signal Processing Laboratory Experiments by Masood Ejaz Experiment # 1 Quantization of Analog Signals and Calculation of Quantized noise Objective:
More informationLab 8. ANALYSIS OF COMPLEX SOUNDS AND SPEECH ANALYSIS Amplitude, loudness, and decibels
Lab 8. ANALYSIS OF COMPLEX SOUNDS AND SPEECH ANALYSIS Amplitude, loudness, and decibels A complex sound with particular frequency can be analyzed and quantified by its Fourier spectrum: the relative amplitudes
More informationSignal Analysis. Young Won Lim 2/9/18
Signal Analysis Copyright (c) 2016 2018 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later
More informationDFT: Discrete Fourier Transform & Linear Signal Processing
DFT: Discrete Fourier Transform & Linear Signal Processing 2 nd Year Electronics Lab IMPERIAL COLLEGE LONDON Table of Contents Equipment... 2 Aims... 2 Objectives... 2 Recommended Textbooks... 3 Recommended
More informationEE 422G - Signals and Systems Laboratory
EE 422G - Signals and Systems Laboratory Lab 3 FIR Filters Written by Kevin D. Donohue Department of Electrical and Computer Engineering University of Kentucky Lexington, KY 40506 September 19, 2015 Objectives:
More informationDSP First Lab 03: AM and FM Sinusoidal Signals. We have spent a lot of time learning about the properties of sinusoidal waveforms of the form: k=1
DSP First Lab 03: AM and FM Sinusoidal Signals Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises in the Pre-Lab section before
More informationLab P-4: AM and FM Sinusoidal Signals. We have spent a lot of time learning about the properties of sinusoidal waveforms of the form: ) X
DSP First, 2e Signal Processing First Lab P-4: AM and FM Sinusoidal Signals Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises
More informationECEn 487 Digital Signal Processing Laboratory. Lab 3 FFT-based Spectrum Analyzer
ECEn 487 Digital Signal Processing Laboratory Lab 3 FFT-based Spectrum Analyzer Due Dates This is a three week lab. All TA check off must be completed by Friday, March 14, at 3 PM or the lab will be marked
More informationArmstrong Atlantic State University Engineering Studies MATLAB Marina Sound Processing Primer
Armstrong Atlantic State University Engineering Studies MATLAB Marina Sound Processing Primer Prerequisites The Sound Processing Primer assumes knowledge of the MATLAB IDE, MATLAB help, arithmetic operations,
More informationEE 422G - Signals and Systems Laboratory
EE 422G - Signals and Systems Laboratory Lab 5 Filter Applications Kevin D. Donohue Department of Electrical and Computer Engineering University of Kentucky Lexington, KY 40506 February 18, 2014 Objectives:
More informationHST.582J / 6.555J / J Biomedical Signal and Image Processing Spring 2007
MIT OpenCourseWare http://ocw.mit.edu HST.582J / 6.555J / 16.456J Biomedical Signal and Image Processing Spring 2007 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
More informationLab S-8: Spectrograms: Harmonic Lines & Chirp Aliasing
DSP First, 2e Signal Processing First Lab S-8: Spectrograms: Harmonic Lines & Chirp Aliasing Pre-Lab: Read the Pre-Lab and do all the exercises in the Pre-Lab section prior to attending lab. Verification:
More informationGE U111 HTT&TL, Lab 1: The Speed of Sound in Air, Acoustic Distance Measurement & Basic Concepts in MATLAB
GE U111 HTT&TL, Lab 1: The Speed of Sound in Air, Acoustic Distance Measurement & Basic Concepts in MATLAB Contents 1 Preview: Programming & Experiments Goals 2 2 Homework Assignment 3 3 Measuring The
More informationQuantification of glottal and voiced speech harmonicsto-noise ratios using cepstral-based estimation
Quantification of glottal and voiced speech harmonicsto-noise ratios using cepstral-based estimation Peter J. Murphy and Olatunji O. Akande, Department of Electronic and Computer Engineering University
More informationDigital Signal Processing
Digital Signal Processing Lab 1: FFT, Spectral Leakage, Zero Padding Moslem Amiri, Václav Přenosil Embedded Systems Laboratory Faculty of Informatics, Masaryk University Brno, Czech Republic amiri@mail.muni.cz
More informationUNIVERSITY OF WARWICK
UNIVERSITY OF WARWICK School of Engineering ES905 MSc Signal Processing Module (2004) ASSIGNMENT 1 In this assignment, you will use the MATLAB package. In Part (A) you will design some FIR filters and
More informationAdvanced Lab LAB 6: Signal Acquisition & Spectrum Analysis Using VirtualBench DSA Equipment: Objectives:
Advanced Lab LAB 6: Signal Acquisition & Spectrum Analysis Using VirtualBench DSA Equipment: Pentium PC with National Instruments PCI-MIO-16E-4 data-acquisition board (12-bit resolution; software-controlled
More informationMAE143A Signals & Systems - Homework 9, Winter 2015 due by the end of class Friday March 13, 2015.
MAEA Signals & Systems - Homework 9, Winter due by the end of class Friday March,. Question Three audio files have been placed on the class website: Waits.wav, WaitsAliased.wav, WaitsDecimated.wav. These
More informationELEC3104: Digital Signal Processing Session 1, 2013
ELEC3104: Digital Signal Processing Session 1, 2013 The University of New South Wales School of Electrical Engineering and Telecommunications LABORATORY 1: INTRODUCTION TO TIMS AND MATLAB INTRODUCTION
More informationDiscrete Fourier Transform
6 The Discrete Fourier Transform Lab Objective: The analysis of periodic functions has many applications in pure and applied mathematics, especially in settings dealing with sound waves. The Fourier transform
More informationME scope Application Note 01 The FFT, Leakage, and Windowing
INTRODUCTION ME scope Application Note 01 The FFT, Leakage, and Windowing NOTE: The steps in this Application Note can be duplicated using any Package that includes the VES-3600 Advanced Signal Processing
More information2/2/17. Amplitude. several ways of looking at it, depending on what we want to capture. Amplitude of pure tones
Amplitude several ways of looking at it, depending on what we want to capture Amplitude of pure tones Peak amplitude: distance from a to a OR from c to c Peak-to-peak amplitude: distance from a to c Source:
More informationExperiment 8: Sampling
Prepared By: 1 Experiment 8: Sampling Objective The objective of this Lab is to understand concepts and observe the effects of periodically sampling a continuous signal at different sampling rates, changing
More informationUNIVERSITY OF WARWICK
UNIVERSITY OF WARWICK School of Engineering ES905 MSc Signal Processing Module (2010) AM SIGNALS AND FILTERING EXERCISE Deadline: This is NOT for credit. It is best done before the first assignment. You
More informationGEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING
GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL and COMPUTER ENGINEERING ECE 2026 Summer 2018 Lab #3: Synthesizing of Sinusoidal Signals: Music and DTMF Synthesis Date: 7 June. 2018 Pre-Lab: You should
More informationSGN Audio and Speech Processing
Introduction 1 Course goals Introduction 2 SGN 14006 Audio and Speech Processing Lectures, Fall 2014 Anssi Klapuri Tampere University of Technology! Learn basics of audio signal processing Basic operations
More informationZRE 01- Introductory Lab JanČernocký,ValentinaHubeika,FITBUTBrno
ZRE 01- Introductory Lab JanČernocký,ValentinaHubeika,FITBUTBrno Thegoalofthelabistointroducebasicoperationswithasoundsignal,mainlyusingMatlab.Thislab(aswell asallfollowinglabs)willberununderlinux.althoughmatlabisavailableunderwindowsosaswell,someofthe
More informationAnnouncements. Today. Speech and Language. State Path Trellis. HMMs: MLE Queries. Introduction to Artificial Intelligence. V22.
Introduction to Artificial Intelligence Announcements V22.0472-001 Fall 2009 Lecture 19: Speech Recognition & Viterbi Decoding Rob Fergus Dept of Computer Science, Courant Institute, NYU Slides from John
More informationCommunications Theory and Engineering
Communications Theory and Engineering Master's Degree in Electronic Engineering Sapienza University of Rome A.A. 2018-2019 Speech and telephone speech Based on a voice production model Parametric representation
More informationDCSP-10: DFT and PSD. Jianfeng Feng. Department of Computer Science Warwick Univ., UK
DCSP-10: DFT and PSD Jianfeng Feng Department of Computer Science Warwick Univ., UK Jianfeng.feng@warwick.ac.uk http://www.dcs.warwick.ac.uk/~feng/dcsp.html DFT Definition: The discrete Fourier transform
More informationENEE408G Multimedia Signal Processing
ENEE408G Multimedia Signal Processing Design Project on Digital Speech Processing Goals: 1. Learn how to use the linear predictive model for speech analysis and synthesis. 2. Implement a linear predictive
More informationComputer Programming ECIV 2303 Chapter 5 Two-Dimensional Plots Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering
Computer Programming ECIV 2303 Chapter 5 Two-Dimensional Plots Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering 1 Introduction Plots are a very useful tool for presenting information.
More informationECE 5650/4650 MATLAB Project 1
This project is to be treated as a take-home exam, meaning each student is to due his/her own work. The project due date is 4:30 PM Tuesday, October 18, 2011. To work the project you will need access to
More informationINTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATION ENGINEERING & TECHNOLOGY (IJECET)
INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATION ENGINEERING & TECHNOLOGY (IJECET) Proceedings of the 2 nd International Conference on Current Trends in Engineering and Management ICCTEM -214 ISSN
More informationAcoustic Phonetics. Chapter 8
Acoustic Phonetics Chapter 8 1 1. Sound waves Vocal folds/cords: Frequency: 300 Hz 0 0 0.01 0.02 0.03 2 1.1 Sound waves: The parts of waves We will be considering the parts of a wave with the wave represented
More information8A. ANALYSIS OF COMPLEX SOUNDS. Amplitude, loudness, and decibels
8A. ANALYSIS OF COMPLEX SOUNDS Amplitude, loudness, and decibels Last week we found that we could synthesize complex sounds with a particular frequency, f, by adding together sine waves from the harmonic
More informationLABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS
LABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS INTRODUCTION The objective of this lab is to explore many issues involved in sampling and reconstructing signals, including analysis of the frequency
More informationspeech signal S(n). This involves a transformation of S(n) into another signal or a set of signals
16 3. SPEECH ANALYSIS 3.1 INTRODUCTION TO SPEECH ANALYSIS Many speech processing [22] applications exploits speech production and perception to accomplish speech analysis. By speech analysis we extract
More informationLocation of sound source and transfer functions
Location of sound source and transfer functions Sounds produced with source at the larynx either voiced or voiceless (aspiration) sound is filtered by entire vocal tract Transfer function is well modeled
More informationType pwd on Unix did on Windows (followed by Return) at the Octave prompt to see the full path of Octave's working directory.
MUSC 208 Winter 2014 John Ellinger, Carleton College Lab 2 Octave: Octave Function Files Setup Open /Applications/Octave The Working Directory Type pwd on Unix did on Windows (followed by Return) at the
More informationEE 464 Short-Time Fourier Transform Fall and Spectrogram. Many signals of importance have spectral content that
EE 464 Short-Time Fourier Transform Fall 2018 Read Text, Chapter 4.9. and Spectrogram Many signals of importance have spectral content that changes with time. Let xx(nn), nn = 0, 1,, NN 1 1 be a discrete-time
More informationBioacoustics Lab- Spring 2011 BRING LAPTOP & HEADPHONES
Bioacoustics Lab- Spring 2011 BRING LAPTOP & HEADPHONES Lab Preparation: Bring your Laptop to the class. If don t have one you can use one of the COH s laptops for the duration of the Lab. Before coming
More information6.S02 MRI Lab Acquire MR signals. 2.1 Free Induction decay (FID)
6.S02 MRI Lab 1 2. Acquire MR signals Connecting to the scanner Connect to VMware on the Lab Macs. Download and extract the following zip file in the MRI Lab dropbox folder: https://www.dropbox.com/s/ga8ga4a0sxwe62e/mit_download.zip
More informationLog Booklet for EE2 Experiments
Log Booklet for EE2 Experiments Vasil Zlatanov DFT experiment Exercise 1 Code for sinegen.m function y = sinegen(fsamp, fsig, nsamp) tsamp = 1/fsamp; t = 0 : tsamp : (nsamp-1)*tsamp; y = sin(2*pi*fsig*t);
More informationCOMP 546, Winter 2017 lecture 20 - sound 2
Today we will examine two types of sounds that are of great interest: music and speech. We will see how a frequency domain analysis is fundamental to both. Musical sounds Let s begin by briefly considering
More informationLaboratory Assignment 4. Fourier Sound Synthesis
Laboratory Assignment 4 Fourier Sound Synthesis PURPOSE This lab investigates how to use a computer to evaluate the Fourier series for periodic signals and to synthesize audio signals from Fourier series
More informationLaboratory Assignment 2 Signal Sampling, Manipulation, and Playback
Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback PURPOSE This lab will introduce you to the laboratory equipment and the software that allows you to link your computer to the hardware.
More informationThe source-filter model of speech production"
24.915/24.963! Linguistic Phonetics! The source-filter model of speech production" Glottal airflow Output from lips 400 200 0.1 0.2 0.3 Time (in secs) 30 20 10 0 0 1000 2000 3000 Frequency (Hz) Source
More informationECE 2713 Homework 7 DUE: 05/1/2018, 11:59 PM
Spring 2018 What to Turn In: ECE 2713 Homework 7 DUE: 05/1/2018, 11:59 PM Dr. Havlicek Submit your solution for this assignment electronically on Canvas by uploading a file to ECE-2713-001 > Assignments
More informationSignal Analysis. Peak Detection. Envelope Follower (Amplitude detection) Music 270a: Signal Analysis
Signal Analysis Music 27a: Signal Analysis Tamara Smyth, trsmyth@ucsd.edu Department of Music, University of California, San Diego (UCSD November 23, 215 Some tools we may want to use to automate analysis
More informationData Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity)
Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity) Importing Data into MATLAB Change your Current Folder to the folder where your data is located. Import
More informationEXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY
EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY NAME:. STUDENT ID:.. ROOM: INTRODUCTION TO AMPLITUDE MODULATION Purpose: The objectives of this laboratory are:. To introduce the spectrum
More informationSet-up. Equipment required: Your issued Laptop MATLAB ( if you don t already have it on your laptop)
All signals found in nature are analog they re smooth and continuously varying, from the sound of an orchestra to the acceleration of your car to the clouds moving through the sky. An excerpt from http://www.netguru.net/ntc/ntcc5.htm
More informationSignal Processing for Speech Applications - Part 2-1. Signal Processing For Speech Applications - Part 2
Signal Processing for Speech Applications - Part 2-1 Signal Processing For Speech Applications - Part 2 May 14, 2013 Signal Processing for Speech Applications - Part 2-2 References Huang et al., Chapter
More informationChapter 1: Introduction to audio signal processing
Chapter 1: Introduction to audio signal processing KH WONG, Rm 907, SHB, CSE Dept. CUHK, Email: khwong@cse.cuhk.edu.hk http://www.cse.cuhk.edu.hk/~khwong/cmsc5707 Audio signal proce ssing Ch1, v.3c 1 Reference
More informationDigital Signal Processing ETI
2012 Digital Signal Processing ETI265 2012 Introduction In the course we have 2 laboratory works for 2012. Each laboratory work is a 3 hours lesson. We will use MATLAB for illustrate some features in digital
More informationHoole, Akustik für Fortgeschrittene, WiSe0809
Hoole, Akustik für Fortgeschrittene, WiSe0809 Exercise with Praat. Acoustic analysis of fricatives using spectral moment measures Log on to the matlab account. cd to directory akustikfort/fricatives/cip
More informationAdditive Synthesis OBJECTIVES BACKGROUND
Additive Synthesis SIGNALS & SYSTEMS IN MUSIC CREATED BY P. MEASE, 2011 OBJECTIVES In this lab, you will construct your very first synthesizer using only pure sinusoids! This will give you firsthand experience
More informationInternational Journal of Modern Trends in Engineering and Research e-issn No.: , Date: 2-4 July, 2015
International Journal of Modern Trends in Engineering and Research www.ijmter.com e-issn No.:2349-9745, Date: 2-4 July, 2015 Analysis of Speech Signal Using Graphic User Interface Solly Joy 1, Savitha
More informationLAB 2 SPECTRUM ANALYSIS OF PERIODIC SIGNALS
Eastern Mediterranean University Faculty of Engineering Department of Electrical and Electronic Engineering EENG 360 Communication System I Laboratory LAB 2 SPECTRUM ANALYSIS OF PERIODIC SIGNALS General
More informationPROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.
PROBLEM SET 6 Issued: 2/32/19 Due: 3/1/19 Reading: During the past week we discussed change of discrete-time sampling rate, introducing the techniques of decimation and interpolation, which is covered
More informationBIOE 198MI Biomedical Data Analysis. Spring Semester Lab6: Signal processing and filter design
BIOE 198MI Biomedical Data Analysis. Spring Semester 2018. Lab6: Signal processing and filter design Problem Statement: In this lab, we are considering the problem of designing a window-based digital filter
More informationSignal segmentation and waveform characterization. Biosignal processing, S Autumn 2012
Signal segmentation and waveform characterization Biosignal processing, 5173S Autumn 01 Short-time analysis of signals Signal statistics may vary in time: nonstationary how to compute signal characterizations?
More informationSGN Audio and Speech Processing
SGN 14006 Audio and Speech Processing Introduction 1 Course goals Introduction 2! Learn basics of audio signal processing Basic operations and their underlying ideas and principles Give basic skills although
More informationFrom Fourier Series to Analysis of Non-stationary Signals - VII
From Fourier Series to Analysis of Non-stationary Signals - VII prof. Miroslav Vlcek November 23, 2010 Contents Short Time Fourier Transform 1 Short Time Fourier Transform 2 Contents Short Time Fourier
More informationHere are some of Matlab s complex number operators: conj Complex conjugate abs Magnitude. Angle (or phase) in radians
Lab #2: Complex Exponentials Adding Sinusoids Warm-Up/Pre-Lab (section 2): You may do these warm-up exercises at the start of the lab period, or you may do them in advance before coming to the lab. You
More informationL A B 3 : G E N E R A T I N G S I N U S O I D S
L A B 3 : G E N E R A T I N G S I N U S O I D S NAME: DATE OF EXPERIMENT: DATE REPORT SUBMITTED: 1/7 1 THEORY DIGITAL SIGNAL PROCESSING LABORATORY 1.1 GENERATION OF DISCRETE TIME SINUSOIDAL SIGNALS IN
More informationSpeech Synthesis; Pitch Detection and Vocoders
Speech Synthesis; Pitch Detection and Vocoders Tai-Shih Chi ( 冀泰石 ) Department of Communication Engineering National Chiao Tung University May. 29, 2008 Speech Synthesis Basic components of the text-to-speech
More informationMusical Acoustics, C. Bertulani. Musical Acoustics. Lecture 14 Timbre / Tone quality II
1 Musical Acoustics Lecture 14 Timbre / Tone quality II Odd vs Even Harmonics and Symmetry Sines are Anti-symmetric about mid-point If you mirror around the middle you get the same shape but upside down
More informationFourier Signal Analysis
Part 1B Experimental Engineering Integrated Coursework Location: Baker Building South Wing Mechanics Lab Experiment A4 Signal Processing Fourier Signal Analysis Please bring the lab sheet from 1A experiment
More informationMATLAB for time series analysis! e.g. M/EEG, ERP, ECG, EMG, fmri or anything else that shows variation over time! Written by!
MATLAB for time series analysis e.g. M/EEG, ERP, ECG, EMG, fmri or anything else that shows variation over time Written by Joe Bathelt, MSc PhD candidate Developmental Cognitive Neuroscience Unit UCL Institute
More informationUniversity of Pennsylvania Department of Electrical and Systems Engineering Digital Audio Basics
University of Pennsylvania Department of Electrical and Systems Engineering Digital Audio Basics ESE250 Spring 2013 Lab 4: Time and Frequency Representation Friday, February 1, 2013 For Lab Session: Thursday,
More informationBrief review of the concept and practice of third octave spectrum analysis
Low frequency analyzers based on digital signal processing - especially the Fast Fourier Transform algorithm - are rapidly replacing older analog spectrum analyzers for a variety of measurement tasks.
More information