How to simply record a string of sound from the computer microphone?
9 次查看(过去 30 天)
显示 更早的评论
There is an example of continuous fft, but what I want is simply record a string of sound wave from the microphone for future analysis, say one second or 2 seconds of sound.
Thanks.
0 个评论
采纳的回答
Geoff Hayes
2022-1-11
recObj = audiorecorder; % create the object
recordblocking(recObj,5); % record for five seconds
play(recObj); % playback the recording
y = getaudiodata(recObj); % get the audio data
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!