> ## Documentation Index
> Fetch the complete documentation index at: https://developer.suki.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Provide a Pre-Recorded Audio File

> Upload an existing WAV recording to Ambient or Form filling APIs instead of streaming live audio

Quick summary

Use audio file input when your application already has a WAV recording of the visit and does not need to capture live audio over the Partner WebSocket.

Create an Ambient or Form filling session with `input_type` set to `audio_file`, get a short-lived upload URL, PUT one WAV with the signed headers, then wait for processing. You do not need to end the session.

Last updated:
November 2026

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](https://developer.suki.ai/documentation/concepts/ambient-clinical-notes/session-input-types.md) 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.

> [!WARNING]
>
> 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:

| Header | Required value |
| :- | :- |
| `Content-Type` | `audio/wave` |
| `x-goog-if-generation-match` | `0` |

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](https://developer.suki.ai/api-reference/ambient-sessions/file-uploadurl.md) 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.

| Session type | Result | Recording |
| :- | :- | :- |
| Ambient | Clinical note content, optional transcript, and related structured data | Available for the uploaded file |
| Form filling | Structured form data generated for the templates or schemas provided during session setup | Retrieve structured form data for the session |

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:

> [accordion] 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/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.

| Implementation step | Ambient APIs | Form filling APIs |
| :- | :- | :- |
| Create session | Create an Ambient session with `input_type: "audio_file"`. | Create a Form filling session with `input_type: "audio_file"`. |
| Provide context | Supply Ambient visit context, such as patient information and sections. | Supply Form filling template IDs and/or partner schemas. |
| Upload audio | Use the shared file-uploadurl endpoint with the Ambient session ID, then PUT one WAV. | Use the same endpoints with the Form filling session ID. |
| Retrieve output | Retrieve the clinical note, transcript, and related structured data. | Retrieve the structured form data. |

## Next steps

&#x20;**[Upload Ambient pre-recorded audio](https://developer.suki.ai/documentation/how-to/ambient-clinical-notes/upload-prerecorded-audio-ambient.md)** - Create an Ambient session, upload one WAV, and retrieve the generated note.

&#x20;**[Upload Form filling pre-recorded audio](https://developer.suki.ai/documentation/how-to/form-filling/upload-prerecorded-audio.md)** - Create a Form filling session, upload one WAV, and retrieve structured form data.

&#x20;**[Get audio file upload URL](https://developer.suki.ai/api-reference/ambient-sessions/file-uploadurl.md)** - Presigned URL response fields, signed headers, and endpoint errors.

&#x20;**[Session input types](https://developer.suki.ai/documentation/concepts/ambient-clinical-notes/session-input-types.md)** - Compare live streaming, WAV uploads, and finished transcript input.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.