AudioRecord

AudioRecord[]

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

AudioRecord[inputdev]

records from the input audio device inputdev.

AudioRecord[astream]

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.
  • 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

Examples

open allclose all

Basic Examples  (1)

Create an input stream and start recording:

In[1]:=
Click for copyable input
Out[1]=

Stop the recording and create an audio object:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Scope  (3)

Options  (2)

Possible Issues  (1)

See Also

AudioPause  AudioStop  Audio  AudioCapture  AudioStream  AudioPlay  NetworkPacketRecording

Introduced in 2018
(11.3)