> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bakbak.si/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bakbak.si/_mcp/server.

# Build with Bakbak

Ask your coding assistant to integrate Bakbak and it reads the documentation
through `read_docs` and `search_docs` before it writes code. It gets the SDK
methods, the audio format your platform needs and the error handling right, and
takes real voice ids from `list_voices` instead of inventing them. The pages ship
inside the server, so they match its release, need no network and use no credits.

* "Add Bakbak TTS to my LiveKit agent, in Hindi."
* "Our Twilio voice bot uses another TTS; switch it to Bakbak and handle barge-in."
* "Stream Bakbak audio to the browser from my Next.js app without exposing the key."
* "Write a Go function that streams Bakbak audio over SSE."
* "Why does my Bakbak audio sound like static?"

## Documentation pages

The documentation covers:

| Page                                                           | What it covers                                                                      |
| -------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| `start-here`                                                   | Which SDK, plugin or API fits each platform, and the facts every integration needs  |
| `best-practices`                                               | Text, voices, transports, latency, formats, retries, concurrency, billing, security |
| `livekit`                                                      | LiveKit Agents with `livekit-plugins-bakbak`                                        |
| `pipecat`                                                      | A Pipecat TTS service on the Python SDK                                             |
| `telephony`                                                    | Twilio, Plivo, Exotel, Vonage and SIP: formats, playing and clearing audio          |
| `voice-agents`                                                 | Your own speech-to-text → LLM → speech loop, with barge-in                          |
| `web`                                                          | Browsers, Next.js, FastAPI, serverless and mobile apps                              |
| `long-form`                                                    | Text over 5,000 characters, batch jobs and caching                                  |
| `raw-api`                                                      | HTTP, SSE and WebSocket from any language, with a Go client                         |
| `troubleshooting`                                              | Symptoms, causes and fixes                                                          |
| `python-sdk`, `javascript-sdk`, `livekit-plugin`, `examples/…` | The SDK and plugin references and their runnable examples                           |
| `websocket-api`, `errors`, `output-formats`, `client-behavior` | The API references and the client contract                                          |

Every page is also an MCP resource, `bakbak://docs/<page>`, for clients that let you
attach resources (in Claude Code, type `@bakbak:`).

## Prompts

The server also offers three prompts. In Claude Code they are slash commands, for
example `/mcp__bakbak__integrate_bakbak twilio`:

| Prompt                      | What it does                                                                                                              |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `integrate_bakbak`          | Adds Bakbak to the open project for a platform you name (optional): reads the right guide, picks a voice, writes the code |
| `review_bakbak_integration` | Reviews the project's Bakbak code against the best practices                                                              |
| `choose_voice`              | Lists voices for a language, lets you hear a few, and gives the `voice_id` and `model` to use                             |