For real-time playback or low-latency scenarios, use the Streaming API or WebSocket API. See the latency best practices for details.
Code Examples
JavaScript
View our JavaScript implementation example
Python
View our Python implementation example
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.