When to use audio file as an input type
Chooseaudio_file as an input_type when:
- Your application already has one WAV recording for the visit.
- You want Suki to run speech recognition on that file and generate an Ambient note or Form filling output.
- You do not need a live
/ws/streamconnection for that session.
stream: Capture live encounter audio through a WebSocket connection.transcript: Submit finished transcript text when you already have the conversation as text and do not need Suki to run speech recognition.
How audio file input works
Audio file input uses a single-upload workflow. Unlike live audio streaming, you do not establish an audio connection or explicitly end the session.1
Create a Session
Create an Ambient or Form filling session with
input_type set to audio_file.2
Provide Session Context
Include the context required by your workflow, such as patient information, Ambient sections, Form filling template IDs, or partner schemas.
3
Get an Upload URL
Call the shared file-uploadurl endpoint with the session ID returned at create.
4
Upload One WAV
PUT one WAV file to the returned URL. Include both signed headers required by the upload contract.
5
Wait for Processing
Suki starts processing after the upload succeeds. Poll the session status or use a webhook to track progress.
6
Retrieve the Result
Retrieve the clinical note, transcript, structured data, or Form filling output after processing completes.
- Suki starts processing the uploaded WAV and runs speech recognition.
- You do not need to call the end-session endpoint.
- You do not need to establish a connection to
/ws/stream. - Recording retrieval is available for the uploaded file on Ambient sessions.
Endpoint and session ID
Ambient and Form filling use the same file-uploadurl endpoint under/api/v1/ambient/.... Pass the session ID returned when creating the corresponding session. Use the Ambient session ID for Ambient workflows and the Form filling session ID for Form filling workflows.
What to include in the upload
Request a one-time presigned upload URL, then PUT the WAV topresigned_url_response.url before the URL expires. The response includes presigned_url_response.expiry_in_minutes. For example, the URL may expire after 15 minutes.
Include both signed headers in the PUT request:
Upload exactly one WAV file per session. Other audio formats are not supported. The file must not exceed 500 MB.
Refer to Get audio file upload URL for the response fields, signed headers, and validation errors.
What happens after upload
Once Suki accepts the WAV, it starts processing the file. The output depends on the type of session you created.
Use the session status endpoint or webhook notifications to determine when processing is complete. Retrieve the output using the retrieval flow for the corresponding product.
The webhook notification structure remains unchanged. The resources returned by the
_links values still depend on the output generated by the session.
Known limitations
Keep the following limitations in mind when implementing audio file as an input type:See all limitations
See all limitations
- One WAV per session: Upload exactly one WAV file. Other audio formats are not supported.
- Maximum file size: The WAV file must not exceed 500 MB.
- Upload before expiry: Complete the PUT before the presigned URL expires. For example, the URL may expire after 15 minutes.
- Required PUT headers: Include
Content-Type: audio/waveandx-goog-if-generation-match: 0. - No second upload: A second upload on the same session fails. Create a new session if you need to submit another file.
- No transcript submit: Do not submit finished transcript text to a session created with
input_type: "audio_file". Create a separate session withinput_type: "transcript"if you need to submit text. - No audio streaming: Do not open a WebSocket connection to
/ws/streamfor an audio file session. - No end-session call: Do not call the end-session endpoint after uploading the WAV. The successful upload starts processing.
- API-only support: Audio file input is currently supported through the Partner APIs. The Web SDK, Mobile SDK, Headless Web SDK, and Form filling SDK continue to capture live audio.
Differences for audio file as an input type for Ambient and Form filling
Both products use the same upload contract: create a session withinput_type: "audio_file", mint a shared upload URL, and PUT one WAV.
The differences are in session creation, the context you provide, and the output you retrieve.