79632209

Date: 2025-05-21 14:39:33
Score: 0.5
Natty:
Report link

MATLAB has function audiorecorder ready to use :

Fs = 44100;                      % [Hz] sampling freq
nBits = 16; 
nChannels = 2; 
ID = -1;                                                               % default audio input device 
recObj = audiorecorder(Fs,nBits,nChannels,ID);

disp("start recording")

recDuration = 15;                                                 % record for 15 seconds
recordblocking(recObj,recDuration);
disp("stop recording")

play(recObj);

MATLAB home edition is really cheap, have a look :

https://www.mathworks.com/products/matlab-home.html

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: John Bofarull Guix