Compute the fft of the record of my voice
    16 次查看(过去 30 天)
  
       显示 更早的评论
    
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 个评论
回答(2 个)
  richard onipede
 2019-12-10
         a=audiorecorder(8000,8,1);
 record(a)
 % recording for some seconds, don't remember how many...
 stop(a)
 data=getaudiodata(a);
 plot(data)
0 个评论
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Measurements and Spatial Audio 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




