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

6 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

Geoff Hayes
Geoff Hayes el 11 de En. de 2022
@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

Más respuestas (1)

Star Strider
Star Strider el 11 de En. de 2022
The audiorecorder , recordblocking and audioplayer functions could be helpful.
.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by