> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rime.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# generate_integration

> Generate ready-to-run Pipecat or LiveKit voice-agent code wired to Rime TTS via the MCP server.

Generate a ready-to-run code snippet for wiring Rime TTS into a voice-agent framework ([Pipecat](https://docs.rime.ai/docs/pipecat.md) or [LiveKit](https://docs.rime.ai/docs/livekit.md)). Returns install commands, working code, and `.env` notes. The tool runs entirely on Rime's MCP server, so it makes no call to the Rime API and consumes no credits.

**API key:** Not required.

## Parameters

| Parameter | Type | Required | Default | Description |
| - | - | - | - | - |
| `framework` | string | Yes | None | `pipecat` or `livekit` |
| `language` | string | No | `python` | `python` or `node`. Only affects LiveKit, because Pipecat is Python-only |
| `model` | string | No | `coda` | Rime model ID for the generated config |
| `speaker` | string | No | `lyra` | Rime speaker name for the generated config |
| `mode` | string | No | `plugin` | LiveKit only: `plugin` uses your own Rime key, while `inference` runs on LiveKit Cloud with no Rime key |

## Example

Ask your assistant:

```
Generate LiveKit starter code for a voice agent using the coda model and the astra voice.
```

The assistant emits a complete, runnable agent. The request doesn't name a language or mode, so the code uses the defaults: Python with the LiveKit plugin and your own Rime key. To pick the voice with the assistant first, use the [`build_voice_agent`](https://docs.rime.ai/mcp-reference/prompts) starter prompt.

## Related

* [Pipecat integration guide](https://docs.rime.ai/docs/pipecat.md)
* [LiveKit integration guide](https://docs.rime.ai/docs/livekit.md) and the [LiveKit quickstart](https://docs.rime.ai/docs/quickstart-livekit.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.