Record to a file from the channel's input media stream.
Record is used to record voice messages, such as in a voicemail system.
Record to file specified by given path in the format that the file's extension specifies. See 2. File Formats below for specifics.
|If only filename is given the it will be saved to channel variable |
|(optional) The maximum duration of the recording in seconds.|
TODO Is there a default?
|(optional) The energy level below which is considered silence.|
TODO What is the default?
|(optional) The number of seconds of audio below ||3 seconds|
2. File Formats
The file extension in
<path> determines the recorded file's format.
Use the console command
show file to display available formats in
fs_cli or type
fs_cli -x 'show file' in the terminal of your operating system.
will produce a GSM encoded voice file which is raw data and is not in any container (e.g. wav, ogg, etc.). The sampling rate can not be influenced by the filename.
will produce an MP3 file if
3. How to stop the recordings?
Either by hanging up, or setting the
After recording stops, the record app sets the following read-only channel variables:
record_ms— duration of most recently recorded file in milliseconds
record_samples— number of recorded samples
playback_terminator_used— TouchTone digit used to terminate recording
The record app sets no record status. TODO What does this mean?
5. Recording-related channel variables