record@v1
Record raw audio.
| Version | record@v1 |
| Runs in | inbound-call and your own branches |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
maxLength | integer | 30 | 5..300 · accepts ${{ }} | |
beep | boolean | true | accepts ${{ }} | |
timeout | integer | 5 | 0..10 · accepts ${{ }} | |
finishOnAnyKey | boolean | true | accepts ${{ }} |
Every parameter that accepts ${{ }} can be computed from an expression.
How it works
The recording is stopped automatically after 5 seconds of silence, or when the user presses a digit.
Examples
Short example
- action: record@v1
result: $recordThe result contains the name of the temporary file
You can play it back with playRecordingFile@v1:
- action: playRecordingFile@v1
params:
file: ${{ $record }}You can also create a permanent Recording object
- action: saveRecordingFile@v1
params:
file: ${{ $record }}Full example with defaults
- action: record@v1
params:
beep: true
timeout: 5 # (0..10) seconds stops the recording after silence
maxLength: 30 # (5..300) seconds
finishOnAnyKey: true # if false, only # is accepted
result: $recordResult
Set result: $myVariable to keep it. Name of the temporary recording file, to use with playRecordingFile@v1 or saveRecordingFile@v1
Type: string
"2fd4e1c67a2d28fced849ee1bb76e7391b93eb12"Updated about 3 hours ago
Did this page help you?
