SLIDE 1 Pitch (in speech)
Pouyan Ebrahimbabaie Laboratory for Signal and Image Exploitation (INTELSIG)
- Dept. of Electrical Engineering and Computer Science
University of Liège Liège, Belgium Applied digital signal processing (ELEN0071-1) 27 Mars 2019
MATLAB tutorial series (Part 2.2)
SLIDE 2
Speech production mechanism
SLIDE 3
Speech production mechanism
SLIDE 4
Speech production mechanism
SLIDE 5
Speech production mechanism Pitch of a person’s voice reflects the fundamental frequency which the vocal folds are vibrating.
SLIDE 6 “Pitch” in psychology of voice
- Males voice pitch: 85 to 180 Hz
- Females voice pitch: 165 to 255 Hz
- Vocal folds are ticker and larger in males
(Adam’s apple in males)
- Larynx size partly controlled by testosterone
- Voice pitch may dramatically influence our
judgment about the speakers
- Male with low-pitched voice tend to be
perceived as more,
- Attractive
- Physically stronger
- Dominant (respected & commanding)
- Aggressive (very low-pitched)
SLIDE 7 “Pitch” in psychology of voice
- Female with high-pitched voice tend to be
perceived as more,
- Attractive
- Female with low-pitched voice tend to be
perceived as more,
- Dominant
- Researches on many elections showed that
females and males preferred low-pitched candidates
SLIDE 8 “Pitch” in psychology of voice
- Female with high-pitched voice tend to be
perceived as more,
- Attractive
- Female with low-pitched voice tend to be
perceived as more,
- Dominant
- Researches on many elections showed that
females and males preferred low-pitched candidates Simple test: which one you will vote for?
SLIDE 9 “Pitch” in psychology of voice
- Female with high-pitched voice tend to be
perceived as more,
- Attractive
- Female with low-pitched voice tend to be
perceived as more,
- Dominant
- Researches on many elections showed that
females and males preferred low-pitched candidates Simple test: which one you will vote for?
SLIDE 10
Application: speech recognition
SLIDE 11
Application: speech recognition
SLIDE 12
MATLAB: Pitch
MATLAB R2018b: [f0,loc]=pitch(audioIn,fs)
SLIDE 13
MATLAB: Pitch
MATLAB R2018b: [f0,loc]=pitch(audioIn,fs)
Methods: NCF – Normalized Correlation Function PEF – Pitch Estimation Filter …
SLIDE 14
MATLAB: Pitch
SLIDE 15
Example 2.6: Pitch 1 % Read audio file [y,fs] = audioread('TNS_Pitch1.mp3'); % Play the sound sound(y,fs) % Time vector t=0:1/fs:(length(y)-1)/fs; % Plot the sound figure(1) plot(t,y,'LineWidth',1) ylabel('Amplitude') xlabel('Time (second)')
SLIDE 16
Example 2.6: Pitch 1 % Extract pitces and their corresponding indexes [f0,idx] = pitch(y,fs); % Plot pitches figure(2) plot(idx,f0,'LineWidth',2) ylabel('Pitch (Hz)') xlabel('Sample Number')
SLIDE 17
Example 2.6: Pitch 1 % Find trend (using Moving Average fillter) n=700; wts = [1/n;repmat(1/n,n-1,1);1/n]; f0S = conv(f0,wts,'valid'); % Plot trend figure(3) plot(f0S,'LineWidth',2)
SLIDE 18
Example 2.7: Pitch 2 % Read audio file [y] = audioread('TNS_Pitch2_A.mp3'); % Pick a channel yA=y(:,1); % Read audio file [y,fs] = audioread('TNS_Pitch2_B.mp3'); % Pick a channel yB=y(:,1); % Pitch A [f0A,idxA] = pitch(yA,fs); % Pitch B [f0B,idxB] = pitch(yB,fs);
SLIDE 19
Example 2.7: Pitch 2 % Find trends (using Moving Average fillter) n=700; wts = [1/n;repmat(1/n,n-1,1);1/n]; f0SA = conv(f0A,wts,'valid'); f0SB = conv(f0B,wts,'valid'); % Plot trend figure(1) plot(f0SA,'LineWidth',2) Pause() … plot(f0SB,'LineWidth',2) …
SLIDE 20
It is popular among some politicians, actors and singers to lower their pitch ~ - 40 Hz
SLIDE 21 Useful links
- https://nl.mathworks.com/help/audio/ref/pitch.html
- https://nl.mathworks.com/help/econ/moving-average-
trend-estimation.html
- https://www.researchgate.net/publication/314580952_
Psychology_of_Voice
- https://nl.mathworks.com/help/econ/moving-average-
trend-estimation.html
- https://www.americanscientist.org/article/how-voice-
pitch-influences-our-choice-of-leaders
- https://www.ncbi.nlm.nih.gov/pmc/articles/PMC335071
3/