returns a new AudioStream object and starts to record from the default input audio device.


records from the input audio device inputdev.


starts recording an AudioStream object astream that is connected to an input device.

Details and Options

  • AudioRecord can be used to perform programmatic audio capture from any input audio device.
  • The inputdev can be any device available in $AudioInputDevices.
  • With multiple streams connected to the same device, only one stream can record at a given time.
  • Use AudioPause or AudioStop to pause or stop the recording.
  • Audio[astream] returns an Audio object including all the captured data available in astream.
  • The following options can be given:
  • MaxDurationmaximum duration of recording
    MethodAutomaticmethod settings to use
  • AudioRecord records until the stream is paused or stopped. Use MaxDuration->dur to record for the specified duration dur.
  • Use Method->{"StorageLocation"->loc} to specify the location of the generated signal. Possible settings for loc include:
  • Automatican audio object linking to a file with automatically generated name
    filean audio object linking to file
    "Memory"an in-memory audio object


open all close all

Basic Examples  (1)

Create an input stream and start recording:

Click for copyable input

Stop the recording and create an audio object:

Click for copyable input
Click for copyable input

Scope  (3)

Options  (2)

Properties & Relations  (1)

Possible Issues  (1)

Introduced in 2018