Record
Record the caller, for example to take a voicemail message.
Record the caller, for example to take a voicemail message.
record records the caller from this point until they hang up, press the finish key, stay silent for timeout seconds or reach maxLength seconds. To record both sides of a connected call, use the record option on dial.
Making a recording is free. Recordings use your storage.
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | No | URL that Sautikit calls when the recording ends. |
method | string | No | HTTP method for action: POST (default) or GET. |
timeout | integer | No | Seconds of silence after which recording stops. |
maxLength | integer | No | Longest recording, in seconds. |
finishOnKey | string | No | The key that stops the recording early. |
transcribe | boolean | No | Ask for a text transcript of the recording. |
transcribeCallback | string | No | URL that is called when the transcript is ready. |
import { sauti } from "@sautikit/node";
res.json(sauti.record({ maxLength: 60, finishOnKey: "#", transcribe: true }));{
"actions": [
{
"record": {
"maxLength": 60,
"finishOnKey": "#",
"transcribe": true
}
}
]
}<Record maxLength="60" finishOnKey="#" transcribe="true" />Record and stream to S3 shows how to fetch the audio.