33.4.1 Recording

The following methods control the recording process.

record (recorder)
record (recorder, length)

Record audio without blocking using the audiorecorder object recorder until stopped or paused by the stop or pause method.

Given the optional argument length, record for length seconds.

recordblocking (recorder, length)

Record audio with blocking (synchronous I/O).

The length of the recording in seconds (length) must be specified.

pause (recorder)

Pause recording with audiorecorder object recorder.

resume (recorder)

Resume recording with the paused audiorecorder object recorder.

stop (recorder)

Stop the audiorecorder object recorder and clean up any audio streams.

isrecording (recorder)

Return true if the audiorecorder object recorder is currently recording audio and false otherwise.

© 1996–2020 John W. Eaton
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
https://octave.org/doc/v5.2.0/Recording.html