How to simply record a string of sound from the computer microphone?

2 ビュー (過去 30 日間)
John
John 2022 年 1 月 11 日
回答済み: Star Strider 2022 年 1 月 11 日
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.

採用された回答

Geoff Hayes
Geoff Hayes 2022 年 1 月 11 日
@John - try using the audiorecorder. One of the (simple) examples from here is
recObj = audiorecorder; % create the object
recordblocking(recObj,5); % record for five seconds
play(recObj); % playback the recording
y = getaudiodata(recObj); % get the audio data

その他の回答 (1 件)

Star Strider
Star Strider 2022 年 1 月 11 日
The audiorecorder , recordblocking and audioplayer functions could be helpful.
.

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by