record

Record audio to audiorecorder object.

📝 Syntax

  • record(recorderObj)

  • record(recorderObj, length)

📥 Input argument

  • recorderObj - audiorecorder object: audio recorder object created by audiorecorder.

  • length - double: duration of recording in seconds.

📄 Description

record(recorderObj) starts recording audio from an input device using the specified audiorecorder object.

record(recorderObj, length) records audio for the specified number of seconds.

The audiorecorder object defines the sample rate, bit depth, and other properties of the recording.

💡 Example

Record 5 seconds of your speech with a microphone

🔗 See also

audiorecorder, play, recordblocking, pausearrow-up-right, resume, stop.

🕔 History

Version
📄 Description

1.16.0

initial version

Last updated

Was this helpful?