Speech Analysis

This commit is contained in:
Adrien COMBE 2023-03-24 09:54:48 +01:00
parent ef0438e760
commit f24766cebb
1 changed files with 20 additions and 0 deletions

View File

@ -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);