Prerequisites
Before you begin, make sure you have:- An API key from kugelaudio.com
- Python 3.9+ or Node.js 18+
Installation
- Python
- JavaScript/TypeScript
Install the Python SDK using pip or uv:Or with uv (recommended):
Basic Usage
Initialize the Client
- Python
- JavaScript
Generate Speech
- Python
- JavaScript
Stream Audio
For lower latency, stream audio chunks as they’re generated:- Python
- JavaScript
Working with Voices
List Available Voices
- Python
- JavaScript
Use a Specific Voice
- Python
- JavaScript