FUNCTION REFERENCE

audiorecorder.record

Start asynchronous audio recording on an audiorecorder object.

Start asynchronous audio recording on an audiorecorder object.

Syntax

record(r)

Syntax

r.record()

Syntax

record(r, seconds)

Starts recording from the default audio input device into r and returns immediately; call stop(r) to end recording.

Example

r = audiorecorder(8000, 16, 1); if isobject(r); try, r.record(0.05); r.stop(); catch, end; end

Differences from MATLAB: Requires an available audio input device; ongoing recordings stop when the sample buffer limit is reached.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.