Skip to main content
If your application already has a WAV recording of the encounter, you can upload that file directly to Suki instead of streaming live audio for transcription. This is useful when a telehealth platform archives the call as a WAV, a telephony system stores the audio after the visit, or a test harness reuses the same fixture file every run. Ambient and Form filling APIs both support this input method. Suki runs speech recognition on the uploaded file and generates the corresponding clinical note or structured form data.

When to use audio file as an input type

Choose audio_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/stream connection for that session.
If you still need to capture audio while the clinician is speaking, use one of the other input types:
  • 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.
Refer to Session input types for a comparison of all three options.

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.
After the upload succeeds:
  • 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.
Do not interchange session IDs for Ambient and Form filling.

What to include in the upload

Request a one-time presigned upload URL, then PUT the WAV to presigned_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:
  • 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/wave and x-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 with input_type: "transcript" if you need to submit text.
  • No audio streaming: Do not open a WebSocket connection to /ws/stream for 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 with input_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.

Next steps

Upload Ambient pre-recorded audio - Create an Ambient session, upload one WAV, and retrieve the generated note. Upload Form filling pre-recorded audio - Create a Form filling session, upload one WAV, and retrieve structured form data. Get audio file upload URL - Presigned URL response fields, signed headers, and endpoint errors. Session input types - Compare live streaming, WAV uploads, and finished transcript input.
Last modified on November 24, 2026