Bakbak

v1.0.0-rc.3
io.github.raya-voice-ai/bakbak-mcp Checked 11 hours ago Published 9 days ago

Text to speech in Hindi, other Indian languages and English, with the Bakbak API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

text_to_speech Text to speech

Convert text to natural speech with Bakbak and save it as an audio file on this computer. Uses Bakbak credits for every character, so call it once per text and do not retry a success. Pick a voice for the language with list_voices first and pass its id as voice_id and its model as model (a voice works only with its own model). Hindi text must be in Devanagari script. Text up to 50,000 characters; long text is split at sentence boundaries and joined into one file.

ParameterTypeDescription
language *Language of the text: hi, mr, te, kn, bn, as, gu, ne, ml, ta, pa, en, en-in or en-us. English m1 voices use en; standard English voices use en-in or en-us.
text *stringThe text to speak, up to 50,000 characters. Hindi must be in Devanagari script; Indian names in English text are best written in Devanagari.
include_audiobooleanAlso return the audio inline as an audio content block. Only for audio up to 1 MB (about 20 s of the default WAV).
modelstandard or m1. Must be the voice's model; if omitted, the chosen voice's own model is used.
output_formatobjectThe API output_format object. Default {"container":"wav","encoding":"pcm_s16le","sample_rate":24000}.
output_pathstringWhere to save the file: an absolute path, or a path relative to the output directory. Its directory must exist and its extension must match the format. Default: a new file in the output directory.
overwritebooleanReplace output_path if it already exists. Without it, an existing file is never touched.
speednumberSpeaking rate from 0.5 to 1.5 (default 1.0). Standard voices only; m1 voices ignore it.
voice_idstringA voice id from list_voices. If omitted, the first voice for the language (and model, if given) is used.

list_voices List voices

List Bakbak voices, optionally filtered by language, model and a name substring. Free: uses no credits. Each voice has an id (pass it to text_to_speech as voice_id), a name, a language and a model (pass it as model).

ParameterTypeDescription
languageOnly voices for this language, e.g. hi.
limitintegerMaximum number of voices to return (default 50).
modelOnly voices of this model: standard or m1.
querystringOnly voices whose name contains this text (case-insensitive).

search_docs Search Bakbak docs

Search Bakbak's developer documentation: the Python and JavaScript SDKs, the LiveKit Agents plugin, the HTTP, SSE and WebSocket API, error codes, audio formats, and integration guides for LiveKit, Pipecat, telephony (Twilio, Plivo, Exotel, Vonage, SIP), web and mobile apps, long texts, and other languages. Use it before writing, reviewing or debugging code that calls Bakbak, instead of guessing method names, parameters or behaviour. Returns matching sections with their page id; read a whole page or section with read_docs. Free; needs no API key.

ParameterTypeDescription
query *stringWhat to look for, in words or identifiers, e.g. "cancel on barge-in", "send_stream with OpenAI", "twilio mulaw", "429 concurrency".
limitintegerMost sections to return (1–10).

read_docs Read Bakbak docs

Read a page of the Bakbak developer documentation, or one section of it. Without `page`, returns the index of every page. Start with page 'start-here' to choose between the SDKs, the LiveKit plugin and the raw API for a platform; 'best-practices' before finishing an integration; 'troubleshooting' when something fails. Free; needs no API key.

ParameterTypeDescription
pagestringA page id from the index or a search result, e.g. 'start-here', 'livekit', 'python-sdk', 'examples/python/llm_streaming.py'. Omit for the index.
sectionstringA heading of the page, to read only that section and its subsections.