
dsp.AudioRecorder
Publicado por Israel (28 intervenciones) el 04/08/2017 19:38:41
Hola. Alguien podría ayudarme porfavor como grabar audio mediante dsp.Audiorecorder.
Valora esta pregunta


0
recObj = audiorecorder;
disp('grabación iniciada')
recordblocking(recObj, 5);
disp('Grabación terminada.');
play(recObj);
AR = dsp.AudioRecorder('OutputNumOverrunSamples',true);
AFW = dsp.AudioFileWriter('myspeech.wav','FileFormat', 'WAV');
disp('Speak into microphone now');
tic;
while toc < 10,
[audioIn,nOverrun] = step(AR);
step(AFW,audioIn);
if nOverrun > 0
fprintf('Audio recorder queue was overrun by %d samples\n'...
,nOverrun);
end
end
release(AR);
release(AFW);
disp('Recording complete');