For example, I can get call ID: eec53027
# office-hours
n
For example, I can get call ID: eec53027-2a59-4c6b-b563-e8fe84bd56ba after ending the certain call. Then how can I get call audio file using api for this call?
s
When a call ends in VAPI, the audio recording is stored and its URL is accessible through the
call.artifact.recordingUrl
(mono recording) and
call.artifact.stereoRecordingUrl
(stereo recording) properties. To access these recordings for a specific call: 1. Use the
/call/{id}
GET endpoint with your call ID to retrieve the call details:
Copy code
GET /call/eec53027-2a59-4c6b-b563-e8fe84bd56ba
2. In the response, look for: -
artifact.recordingUrl
- URL to the mono recording -
artifact.stereoRecordingUrl
- URL to the stereo recording 3. Once you have these URLs, you can directly download the audio files (they are stored as WAV files with 'audio/wav' content type). Important notes: 1. Recordings are only available if
recordingEnabled
was set to
true
in the assistant's
artifactPlan
. 2. For HIPAA or PCI-compliant calls, you need to have provided appropriate storage credentials (S3, GCP, Cloudflare, Azure, or Supabase). 3. The audio files are stored as WAV files. 4. The URLs will point to the storage location where VAPI uploaded the recordings. If you need to process the audio programmatically, you can download it using the URL and then apply your custom processing logic to the audio file.
n
Oh, thanks.
Why didn't I catch that content in the doc? It exists originally. šŸ˜† Sorry for my poor skimming the doc.
2 Views