Compute the fft of the record of my voice
    18 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
This is my starting code:
 a=audiorecorder(8000,8,1);
 record(a)
 % recording for some seconds, don't remember how many...
 stop(a)
 data=getaudiodata(a);
 plot(data)

I obtained this.
How can I know the duration of the recording (because on the x-axis there are not the seconds...)?
Onother question: how can I compute the fft and find the frequency spectrum of this signal?
Thank you!
0 Kommentare
Antworten (2)
  Rick Rosson
    
 am 15 Mär. 2016
        N = length(data);
Fs = 8000;
dt = 1/Fs;
t = dt*(0:N-1)';
figure;
plot(t,data);
1 Kommentar
  richard onipede
 am 10 Dez. 2019
         a=audiorecorder(8000,8,1);
 record(a)
 % recording for some seconds, don't remember how many...
 stop(a)
 data=getaudiodata(a);
 plot(data)
0 Kommentare
Siehe auch
Kategorien
				Mehr zu Measurements and Spatial Audio finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

