% Display and analyze speech spectrograms
load speech
%
siganalysis(agb, Fs);
%
% Narrowband spectrogram
%
figure(1);
specgram(agb,512,Fs);
[Sn,Fn,Tn]=specgram(agb,512,Fs);
figure;scs_fric = gcf;
Tn(30)
semilogy(Fn,abs(Sn(:,30))); % Voiced fricative
figure;scs_vowel = gcf;
Tn(56)
semilogy(Fn,abs(Sn(:,56))); % Vowel
%
% Wideband spectrogram
%
specgram(agb,128,Fs);
[Sw,Fw,Tw]=specgram(agb,128,Fs);
figure(scs_fric);hold on
Tw(117)
semilogy(Fw,abs(Sw(:,117)),'r'); % Voiced fricative
figure(scs_vowel);hold on
Tw(220)
semilogy(Fw,abs(Sw(:,220)),'r'); % Vowel
