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:
-
GeneratedAssetFormat Automatic the format of the result GeneratedAssetLocation $GeneratedAssetLocation the location of the result MaxDuration ∞ maximum duration of recording - 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 allclose allBasic Examples (1)
Scope (3)
Create an input stream and start recording from a specific device:
Start the recording of an existing AudioStream:
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:
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