Quick summary
Get secure, temporary access to the original audio from . Use it to play back recordings in your app, verify notes against the conversation, or save files for compliance.
Audio streaming & download API is supported by: APIs, Headless Web SDK
Overview
Audio streaming & download API lets you stream or download the raw recording of the conversation from an ambient session. That recording is the original audio that was captured during the visit. Those sessions already produce , notes, and ; this API adds the source recording so you can play it back in your app, verify AI-generated notes against the conversation, or store it for compliance. Use this capability when you need to:- Let physicians listen back: Add a playback feature so providers can review the conversation.
- Verify AI output: Let providers compare a note to the actual conversation when they question it.
- Meet compliance needs: Save audio files for legal or regulatory requirements.
Benefits
Stream for Playback
Stream audio in your app. Supports seeking and scrubbing so users can jump to any part of the recording.
Download for Storage
Download the full audio file when you need to keep it for archival or compliance.
Works for All Sessions
Available for both real-time streamed sessions and sessions where audio was uploaded after the visit.
Time-Limited Access
Streaming URLs last 15 minutes for short sessions, or session length plus 10 minutes for long sessions. Download URLs last 1 hour.
7-Day Availability
Recordings are available for 7 days after the session. After that, they are no longer accessible.
Access Logging
Each access is logged for compliance and security.
WAV Format
Recordings are returned in WAV format, ready for playback in standard media players.
How it works
- Finish an ambient session: Create a session, stream or upload audio, and end it. The recording is ready once the session is complete.
- Request a recording URL: Call the recording API with your
session ID. Choose streaming (for playback) or download (for saving the file). Some sessions may return multiple recordings; use the one you need. - Use the URL: Stream or download the audio in WAV format. If the response indicates streaming is not supported, use download mode instead. If the URL expires while someone is listening, request a new one.
Workflow
How to use the Download API
Complete an Ambient session
Create an ambient session, stream or upload audio, and end the session. The recording is available after the session is complete.Use the Create ambient session API to create an ambient session.
Request the Recording URL
Call the Recording API endpoint with your ambient
session ID. Use the download parameter: false for streaming (playback) or true for full file download.Stream or Download
Use the returned URL to stream or download the audio (WAV format).
How long recordings are kept?7 days from the session date. After that, the recording is no longer available.
Response structure for Download API
When the request succeeds, the API returns arecordings array. Each item in the array represents one recording chunk for the session.
List of recordings for the session. Each item contains a presigned URL and metadata.
Whether the returned URLs support streaming with Range requests. If
false, use download=true to get a download URL instead.Best practices
FAQs
What is the difference between streaming and download?
What is the difference between streaming and download?
| Mode | Use case | URL expires |
|---|---|---|
| Streaming | Play audio in your app with seeking and scrubbing | 15 min for short sessions; session length plus 10 min for long sessions |
| Download | Save the full file for archival or compliance | 1 hour |
Why does the streaming URL last longer for long sessions?
Why does the streaming URL last longer for long sessions?
For sessions longer than 15 minutes, the streaming URL is valid for the full session length plus 10 minutes. This lets you play the entire recording without the URL expiring mid-playback.
What audio format is returned?
What audio format is returned?
Recordings are returned in WAV format. Use them in standard media players or HTML5 audio elements for playback.
Can a session have multiple recordings?
Can a session have multiple recordings?
Yes. Some sessions may return multiple recordings. The API returns a list; use the recording that matches your needs. If the response indicates streaming is not supported for a recording, use download mode instead.
How long are recordings available?
How long are recordings available?
Recordings are available for 7 days from the session date. After that, the recording is no longer accessible. If you need to keep the audio longer, download it within the 7-day window and store it in your own system.
What if I get 404 when requesting a recording?
What if I get 404 when requesting a recording?
For sessions where audio was uploaded (not streamed in real time), the recording may still be processing. Wait a moment and try again. If the session is older than 7 days, you will get 410 instead, which means the recording is permanently unavailable.