Speech Analysis
This commit is contained in:
parent
ef0438e760
commit
f24766cebb
|
|
@ -2,3 +2,23 @@
|
||||||
% Date: 24/03/2023
|
% Date: 24/03/2023
|
||||||
% Description: Signal Processing Lab 2
|
% Description: Signal Processing Lab 2
|
||||||
|
|
||||||
|
pkg load signal
|
||||||
|
|
||||||
|
filename = "modulator22.wav";
|
||||||
|
[y,fs] = audioread(filename);
|
||||||
|
|
||||||
|
%TEMPORAL ANALYSIS
|
||||||
|
t = [1:1:size(y)];
|
||||||
|
plot(t,y);
|
||||||
|
title ("Temporal analysis");
|
||||||
|
|
||||||
|
%PERFORMING DFT
|
||||||
|
%%[power, duration] = frequencySpectrum(y,fs,false);
|
||||||
|
%PERFORMING FFT
|
||||||
|
%%[power2, duration2] = frequencySpectrum(y,fs,true);
|
||||||
|
%%duration
|
||||||
|
%%duration2
|
||||||
|
|
||||||
|
%SPECTOGRAM
|
||||||
|
spectrogram(y,fs,5,30);
|
||||||
|
spectrogram(y,fs,5,5);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue