Deploy Speech-to-Text (Saaras v3)
Deploy Speech-to-Text (Saaras v3)
Deploy Saaras v3 as a SageMaker endpoint in your own account. This guide covers a real-time endpoint end to end with boto3, then streaming for longer audio. The full, runnable notebook lives in sarvamai/amazon-sagemaker-examples.
Model identifier. In API requests you pass model: saaras:v3. The Marketplace package is versioned saaras:v3.1 — that’s the package revision you subscribe to, not the value you send in a request. See the API reference.
Saaras v3 self-hosted supports real-time (audio up to 30 seconds) and streaming (WebSocket, for longer/continuous audio). Batch transform is not currently supported for Saaras v3 — use the streaming endpoint for long recordings.
Prerequisites
Complete Get started on SageMaker first: subscribe to the listing, copy your model package ARN, and have an execution role ARN ready. Read the endpoint’s API reference carefully before you integrate — the request contract is enforced by the container.
1. Configure
2. Deploy a real-time endpoint
3. Invoke it
Send audio as multipart/form-data (the only accepted content type — see the API reference). Choose an output mode with the mode field (transcribe, translate, verbatim, translit, codemix).
See the full request and response schema in the Speech-to-Text API reference.
The real-time REST path accepts audio up to 30 seconds. For longer or continuous audio, use the streaming endpoint below — batch transform is not supported for Saaras v3.
Streaming (live audio)
For continuous, low-latency transcription, deploy the model and invoke the bidirectional streaming operation InvokeEndpointWithBidirectionalStream — a two-way SigV4 HTTP/2 stream on port 8443. The message protocol and parameters (language-code, sample_rate, vad_signals) are documented in the API reference.
Clean up
GPU endpoints bill by the hour. Delete resources you’re not using: