Next: Audio Data Processing, Previous: Audio Player, Up: Audio Processing [Contents][Index]

### 33.4 Audio Recorder

The following methods are used to create and use audiorecorder objects. These objects can be used to record audio data from various devices available to the system. You can use convenient methods to retrieve that data or audioplayer objects created from that data. Methods for blocking and non-blocking recording, pausing and resuming recording and much more is available.

: recorder = audiorecorder ()
: recorder = audiorecorder (fs, nbits, channels)
: recorder = audiorecorder (fs, nbits, channels, id)

  Create an audiorecorder object recording 8 bit mono audio at 8000 Hz sample rate.

  The optional arguments fs, nbits, channels, and id specify the sample rate, bit depth, number of channels and recording device id, respectively. Device IDs may be found using the audiodevinfo function.