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

조회 수: 9 (최근 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 CenterFile Exchange에서 Audio 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