Installation
Install the Stream Inworld plugin withExample
Check out our Inworld example to see a working code sample using the plugin, or read on for some key details.Initialisation
The Inworld plugin for Stream exists in the form of theTTS class:
Parameters
These are the parameters available in the Inworld TTS plugin for you to customise:| Name | Type | Default | Description |
|---|---|---|---|
api_key | str or None | None | Your Inworld AI API key. If not provided, the plugin will look for the INWORLD_API_KEY environment variable. |
voice_id | str | "Dennis" | The voice ID to use for synthesis. Available voices can be found in the Inworld Portal. |
model_id | str | "inworld-tts-1" | The model ID to use for synthesis. Options: "inworld-tts-1", "inworld-tts-1-max". |
temperature | float | 1.1 | Determines the degree of randomness when sampling audio tokens. Accepts values between 0 and 2. |
Functionality
Send text to convert to speech
Thesend() method sends the text passed in for the service to synthesize.
The resulting audio is then played through the configured output track.
The Inworld TTS API supports text inputs up to 2,000 characters per request.
Getting Started
- Get your Inworld AI API key from the Inworld Portal
- Set the
INWORLD_API_KEYenvironment variable: - Use the plugin in your Vision Agents application

