> ## 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](/docs/pipecat) or [LiveKit](/docs/livekit)). 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; 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; `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. To pick the voice with the assistant first, use the [`build_voice_agent`](/mcp-reference/prompts) starter prompt.

## Related

* [Pipecat integration guide](/docs/pipecat)
* [LiveKit integration guide](/docs/livekit) and the [LiveKit quickstart](/docs/quickstart-livekit)
