<Record> element records audio from the call and returns the URL of the recording file. Use it for voicemail, call logging, or quality monitoring.
Basic Usage
Attributes
Basic Settings
Timing
Session Recording
Transcription
Callbacks
Voicemail
Record Entire Session
Record the complete call in the background:- Recording starts immediately and continues until the call ends
timeout,finishOnKey, andplayBeepare ignored- Recording is sent to
callbackUrlwhen complete
Record Dial Conversation
Record both parties after the dial connects:Stereo vs Mono Recording
Stereo (default): Each party on separate audio channels - useful for call analytics. Mono: Both parties on single channel - smaller file size.With Transcription
Get automatic speech-to-text:- English only
- Duration: 500ms to 4 hours
- File size: under 2GB
Action URL Parameters
Sent when recording completes:
Note: When
recordSession or startOnDialAnswer is true, duration values are -1 in the initial request. Final values are sent to callbackUrl.
Callback URL Parameters
Sent when recording file is ready:Transcription URL Parameters
Best Practices
- Inform callers - Always notify that the call is being recorded (legal requirement in many jurisdictions)
- Set appropriate limits - Use
maxLengthto prevent very long recordings - Use callbacks - Use
callbackUrlfor reliable notification when recording is ready - Choose format wisely - MP3 for smaller files, WAV for highest quality
- Handle storage - Download recordings from Plivo; they’re deleted after 30 days
Related
- Conference - Record conference calls
- Recordings API - Manage recordings
- Play - Play recorded audio