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.
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.
- The following options can be given:
-
- AudioRecord records until the stream is paused or stopped. Use MaxDuration->dur to record for the specified duration dur.
- By default, the recorded audio is placed under the "Audio" directory in $WolframDocumentsDirectory .
Examples
open all close allBasic Examples (1)
Create an input stream and start recording:
Stop the recording:
Create an audio object from the recorded stream:
Scope (3)
Create an input stream and start recording from a specific device:
Stop the recording:
Start the recording of an existing AudioStream :
Stop the recording:
AudioPause keeps the information about the recording position and the data:
AudioStop resets the recording:
Options (2)
MaxDuration (1)
Use MaxDuration to set the maximum duration of the recording:
GeneratedAssetLocation (1)
Use the GeneratedAssetLocation option to control the storage location for the recording:
Properties & Relations (1)
Unlike AudioCapture , AudioRecord does not block the kernel:
Possible Issues (1)
Only a single stream can record from a specific device at any time:
Stop the first recording and try again:
Related Guides
Text
Wolfram Research (2018), AudioRecord, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioRecord.html (updated 2021).
CMS
Wolfram Language. 2018. "AudioRecord." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/AudioRecord.html.
APA
Wolfram Language. (2018). AudioRecord. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioRecord.html
BibTeX
@misc{reference.wolfram_2025_audiorecord, author="Wolfram Research", title="{AudioRecord}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/AudioRecord.html}", note=[Accessed: 04-January-2026]}
BibLaTeX
@online{reference.wolfram_2025_audiorecord, organization={Wolfram Research}, title={AudioRecord}, year={2021}, url={https://reference.wolfram.com/language/ref/AudioRecord.html}, note=[Accessed: 04-January-2026]}