FUNCTION REFERENCE
audiorecorder.recordblocking
Record audio for a fixed duration on an audiorecorder object and wait until finished.
Record audio for a fixed duration on an audiorecorder object and wait until finished.
Syntax
recordblocking(r, seconds)Syntax
r.recordblocking(seconds)Records from the default audio input device for the given number of seconds, blocking until capture finishes.
Example
r = audiorecorder(8000, 16, 1); if isobject(r); try, r.recordblocking(0.05); catch, end; endDifferences from MATLAB: Requires an available audio input device.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.