tts slot.
Setup
Set your Sarvam AI API key in the worker environment. Generate a key from the Sarvam AI dashboard:Usage
Import the plugin and pass it to the pipeline’stts slot.
Parameters
Constructor parameters forSarvamAITTS. The Python and Node JS SDKs share these field names.
The synthesized audio is streamed back to the caller as the final stage of the
pipeline.
Inference models
These SarvamAI models also run through the Inference Gateway on your Zero Runtime auth token, with no SarvamAI API key. Pass the model id to the same class imported fromzeroruntime.inference (Python) or @zeroruntime/js-sdk/inference (Node JS).