From df9f821f8a9f9d3965338a84c568fa0bf28deb0a Mon Sep 17 00:00:00 2001 From: Loic Delattre Date: Fri, 24 Mar 2023 08:47:58 +0100 Subject: [PATCH] plotting sound wave --- sound/output.wav | Bin 98312 -> 98312 bytes speech_analysis.m | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sound/output.wav b/sound/output.wav index b00d743181d8c9e85274adf97c7e61c0bb90b132..e1ea9637bfb0a07dac2763890515ea69e66561c4 100644 GIT binary patch delta 23 ecmeBZVC!gLn;^mNvW9`7BZ9F}eycp=%X$D;PzQPd delta 23 ecmeBZVC!gLn;^k1sLjBj6vogfzg3>`Wjz2%;|5&- diff --git a/speech_analysis.m b/speech_analysis.m index 22e26dd..31d868e 100644 --- a/speech_analysis.m +++ b/speech_analysis.m @@ -3,4 +3,9 @@ close all clc [y, fs] = audioread("sound/modulator22.wav"); -audiowrite("sound/output.wav", y, fs/2); \ No newline at end of file +t = [0:1/fs:(length(y)-1)/fs];%%in seconds +plot(t, y); +title ("Sound Wave"); +xlabel ("time (s)"); +ylabel ("Amplitude (u)"); +%audiowrite("sound/output.wav", y, fs*2); \ No newline at end of file