Getting started with Bakbak TTS
This guide will help you get up and running with Bakbak TTS API in minutes.
Prerequisites
- An API key (contact your administrator)
- HTTP client (cURL, Postman, or your preferred tool)
- Basic understanding of REST APIs
Step 1: List Available Voices
First, discover which voices are available for your use case:
Each voice is tied to a specific model (standard or m1). When you generate speech, pass the matching model value — standard voices do not work with "model": "m1", and m1 voices do not work with "model": "standard".
Response:
Step 2: Generate Speech (Non-Streaming)
Generate a complete audio file:
The Hindi example above uses Devanagari script, which is required for language: "hi". Romanized Hindi (for example, namaste) is not supported. See Best Practices for tips on Indic named entities in English text.
The response will be a binary audio file. Save it to a file:
Step 3: Generate Speech (Streaming)
For real-time applications, use the streaming endpoint:
The response uses Server-Sent Events (SSE) format. Each chunk event carries base64-encoded audio in the encoding you asked for, here 16-bit PCM at 24 kHz. For a phone line, ask for 8 kHz μ-law instead:
See Output Formats for every option.
Next Steps
- Explore Features & Capabilities
- Check out Use Cases
- Review Best Practices
- Browse the API Reference

