record@v1

Record raw audio.

Versionrecord@v1
Runs ininbound-call and your own branches

Parameters

NameTypeRequiredDefaultDescription
maxLengthinteger305..300 · accepts ${{ }}
beepbooleantrueaccepts ${{ }}
timeoutinteger50..10 · accepts ${{ }}
finishOnAnyKeybooleantrueaccepts ${{ }}

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: $record

The 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: $record

Result

Set result: $myVariable to keep it. Name of the temporary recording file, to use with playRecordingFile@v1 or saveRecordingFile@v1

Type: string

"2fd4e1c67a2d28fced849ee1bb76e7391b93eb12"

Did this page help you?