AudioTools
Record
record audio data from a microphone to an audio data object
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Record(duration, component, opts)
duration
-
duration of time to record
component
(optional) string; name of the Microphone component to use.
opts
options, described below
rate =
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.
with⁡AudioTools:
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⁢Unit⁡ms,Microphone0,rate=44.1⁢Unit⁡kHz
The AudioTools[Record] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
MicrophoneComponent
Download Help Document