Usage guide
Setup, environment variables, and Python/JavaScript/Go usage examples.
InworldAITTS
Text-to-speech with Inworld AI voices, streamed over WebSocket for low latency. Good for expressive, character-style voices. Authenticates with INWORLD_API_KEY from your environment, or an explicitapi_key.
Fields
Voice model to synthesize with, e.g. “inworld-tts-1” or “inworld-tts-1.5-max”. Defaults to ‘inworld-tts-1’.
Sampling temperature, 0.0 to 2.0. Higher sounds more varied and expressive. Defaults to 0.8.
Stream over a bidirectional WebSocket. Turn off to use HTTP streaming requests instead. Defaults to True.
Let Inworld decide when to flush buffered text for lowest latency. WebSocket only; best when text arrives as full sentences. Defaults to True.
Longest time in milliseconds Inworld waits before flushing buffered text. WebSocket only; unset means no limit. Defaults to None (not set).
Number of buffered characters that triggers a flush, up to 1000. WebSocket only. Defaults to None (not set).
“ON” expands text like “Dr.” or dates into spoken words, “OFF” reads it as written. Unset lets Inworld decide. Defaults to None (not set).
Speaking rate multiplier, 0.5 to 1.5. Unset uses the voice’s natural rate. Defaults to None (not set).