record speech and process during recording

3 vues (au cours des 30 derniers jours)
Vic Lee
Vic Lee le 8 Oct 2015
I am new with Matlab. I want to record speech and process the recorded data while recording. I need to process for every 10ms (can have a little delay, say process speech for every 50ms). The processing continues and accumulates while recording.
I saw there is some information about using audiorecorder, and use callback: TimerFcn. I tried this method (following the question: "plotting the recorded sound while recording"
I got error: Cannot retrieve audio data while recording is in progress. Could you please help me with this problem? Thanks, Vic

Réponses (1)

Dinesh Iyer
Dinesh Iyer le 9 Oct 2015
Hi Vic,
For this workflow, you need to use the dsp.AudioPlayer/dsp.AudioRecorder system objects and not the audioplayer/audiorecorder. The system objects also allow you greater control over latency.


En savoir plus sur Audio Processing Algorithm Design dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by