record audio data from a microphone to an audio data object
Record(duration, component, opts)
duration of time to record
(optional) string; name of the Microphone component to use.
options, described below
The sample rate with which to record. When set to auto, the sample rate associated with the Microphone component is used. If no units are specified, values are presumed to be in hertz (Hz).
The Record command records audio data of a specified duration from a Microphone component and returns an Audio object containing the recorded data.
If the component parameter is not specified, the default component name Microphone0 will be used.
In order to record, open the Components Palette and insert a microphone component.
Record from the microphone for 1.5 seconds.
audio1 ≔ Record⁡1.5,Microphone0
Record from the microphone for 2500 milliseconds (2.5 s) at CD quality (44.1 kHz).
audio2 ≔ Record⁡2500⁢ms,Microphone0,rate=44.1⁢kHz
The AudioTools[Record] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
Download Help Document
What kind of issue would you like to report? (Optional)