For real-time playback or low-latency scenarios, use the Streaming API or WebSocket API. See the latency best practices for details.
Code Examples
Node.js SDK
Use
generate() from the @inworld/tts SDK — handles chunking, retries, and encoding automatically.JavaScript
View our JavaScript implementation example
Python SDK
Use
generate() from the inworld-tts SDK — handles chunking, retries, and encoding automatically.API Reference
Synthesize Speech
View the complete API specification
Next Steps
Voice Cloning Best Practices
Learn best practices for producing high-quality voice clones.
Speech Generation Best Practices
Learn best practices for synthesizing high-quality speech.
API Examples
Explore Python and JavaScript code examples for TTS integration.