Pre-recorded audio upload is supported by: Ambient APIs, Form filling APIs
/ws/stream, you ask Suki for a one-time upload URL, PUT the WAV once, and wait. When the upload finishes, Suki starts processing. Do not call end session for this flow.
Ambient and Form filling share the upload URL endpoint under /api/v1/ambient/.... Pass the Ambient ambient_session_id for Ambient, or the Form filling ambient_session_id for Form filling. Do not mix those IDs. For when to choose upload versus live streaming or finished transcript text, refer to Session input types and Provide a pre-recorded audio file.
Shared rules
- Create with
input_typeaudio_filebefore you mint the upload URL. - Mint with GET
/api/v1/ambient/audio/file-uploadurl/{ambient_session_id}, then PUT one WAV topresigned_url_response.url. - Required PUT headers:
Content-Type: audio/waveandx-goog-if-generation-match: 0. - One WAV per session, at most 500 MB. Do not call end session. Do not open
/ws/stream. - Wrong option for the session returns
ING_SDK_005. A second submit returnsING_SDK_006. Option disabled returns 403.
Flow
The shared upload path is the same on Ambient and Form filling. Product-specific create, context, and retrieve steps live in the how-tos below.Build the shared upload flow
These steps are the same on Ambient and Form filling. Open the product how-to for create, context, and retrieve details.1
Create the Session with Audio File Input
Create on Ambient or Form filling with
input_type set to audio_file. Store the returned ambient_session_id for that product.2
Seed Session Context
Seed visit context for Ambient, or seed at least one template or schema for Form filling, before you mint the upload URL when your product needs those fields.
3
Get the Upload URL
Call GET Get audio file upload URL with the session id from create.Read
presigned_url_response.url and finish the upload before the URL expires.4
PUT the WAV File
Upload one WAV with both signed headers:
5
Wait for Processing, Then Retrieve Outputs
Poll status or wait for your webhook on the same product. Retrieve Ambient note content or Form filling structured data when status is
completed.Pick your product how-to
Ambient APIs
Ambient create, visit context, WAV upload, then note content.
Form Filling APIs
Form filling create, template context, WAV upload, then structured data.
Troubleshooting
Shared upload usually fails when the session was not created asaudio_file, when you mix Ambient and Form filling session IDs, or when you treat a second mint or overwrite PUT as a retry.
ING_SDK_005 When Minting the Upload URL
ING_SDK_005 When Minting the Upload URL
The session was not created with
input_type audio_file. Create a new session with that value on the same product, then mint again.ING_SDK_006 or HTTP 412 on a Second Upload
ING_SDK_006 or HTTP 412 on a Second Upload
Input was already submitted for this session, or you tried to overwrite the uploaded object. Upload one WAV per session. Create a new session for another file.
403 Audio File Modality Is Not Enabled
403 Audio File Modality Is Not Enabled
Audio file upload is disabled for the environment. Contact support if you need the path enabled.
Wrong ambient_session_id
Wrong ambient_session_id
Pass the Ambient id for Ambient flows, or the Form filling id for Form filling flows. Do not mix those identifiers on the shared upload endpoint.