Skip to navigation

Bakbak TTS features & capabilities

Explore all features of Bakbak TTS API
View as Markdown

Bakbak TTS provides a comprehensive set of features for text-to-speech conversion.

Multiple Voice Options

Choose from a variety of voices, each optimized for specific languages and use cases. Each voice has a unique ID that you can use in your requests.

Each voice belongs to a specific model (standard or m1). When generating speech, set the model field to match the voice’s model. A standard voice ID will not work with "model": "m1", and an m1 voice ID will not work with "model": "standard". Use GET /v1/voices to see which model each voice supports.

Available Models:

  • standard — Default synthesis model
  • m1 — Alternative synthesis model with its own voice set

Available Languages:

  • Hindi (hi) - हिंदी
  • Marathi (mr) - मराठी
  • Telugu (te) - తెలుగు
  • Kannada (kn) - ಕನ್ನಡ
  • Bengali (bn) - বাংলা
  • Assamese (as) - অসমীয়া
  • Gujarati (gu) - ગુજરાતી
  • Nepali (ne) - नेपाली
  • Malayalam (ml) - മലയാളം
  • Tamil (ta) - தமிழ்
  • Indian English (en-in)
  • US English (en-us)

Languages by model (voices decide what works; GET /v1/voices is the source of truth):

ModelLanguages with voices
standardAll of the above
m1Hindi (hi), English (en), Kannada (kn)

m1 voices use en for English; standard voices use en-in or en-us.

More languages are coming soon!

Audio Formats

Generate audio in multiple formats to suit your needs:

  • WAV - Uncompressed, high-quality audio (default)
  • PCM - Raw audio, as 32-bit float or 16-bit integer samples
  • MP3 - Compressed audio format
  • μ-law and A-law - G.711 telephony formats

Choose the encoding, container and sample rate with the output_format object. It works on both endpoints, so the stream can also deliver 16-bit PCM, μ-law or A-law instead of 32-bit float. See Output Formats.

Flexible Delivery Options

Non-Streaming Endpoint

  • Get complete audio files for batch processing
  • Best for: Content creation, media production, offline applications
  • Returns: Complete binary audio file

Streaming Endpoint

  • Real-time audio generation using Server-Sent Events (SSE)
  • Best for: Voice assistants, real-time applications, low-latency use cases
  • Returns: Base64-encoded audio chunks streamed in real-time (32-bit float PCM by default, or 16-bit PCM, μ-law or A-law with output_format)

Customizable Parameters

Sample Rates

Choose the appropriate sample rate for your use case with output_format.sample_rate:

  • 8000 Hz - Telephony quality, low bandwidth
  • 16000 Hz - Standard quality
  • 22050 Hz - Good quality
  • 24000 Hz - High quality (default)

Speech Speed

Adjust speech speed from 0.5x to 1.5x with speed:

  • 0.5x - Slow, clear speech
  • 1.0x - Normal speed (default)
  • 1.5x - Fast speech

Speed applies to standard voices. m1 voices accept the field and speak at their own pace.

Voice Selection

Select the perfect voice for your application based on:

  • Model compatibility — match model to the voice’s model (standard or m1)
  • Language support
  • Voice characteristics
  • Use case requirements

Security & Authentication

  • API key authentication via X-API-Key header
  • HTTPS-only endpoints
  • Secure credential management

Response Formats

Non-Streaming Response

  • Binary audio file
  • Content-Type: audio/wav, audio/pcm, audio/mpeg, audio/basic, or application/octet-stream (raw A-law)
  • Content-Disposition header with filename
  • X-Audio-Format, X-Audio-Sample-Rate and X-Audio-Channels headers when you send output_format

Streaming Response

  • Server-Sent Events (SSE) format
  • Base64-encoded audio chunks: PCM F32LE by default, or the encoding you set in output_format
  • Real-time delivery with status updates

Language Support

Currently supports 10 Indian languages plus Indian and US English, with more coming soon. Each language has multiple voice options optimized for different use cases.

Hindi script: Hindi (hi) must be provided in Devanagari. Romanized Hindi is not supported.

Indic names in English: When using English (en-in, en-us), write Indic named entities in Devanagari — for example, राहुल instead of Rahul. If an LLM generates your text, prompt it to output Indic names in Devanagari; this drastically improves named-entity pronunciation.

Performance

  • Low latency for streaming endpoints
  • High-quality neural voice synthesis
  • Scalable infrastructure
  • Reliable uptime