# Rime (/en/ai/models/tts/rime)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

> Documentation: Conversational AI.
> Documentation version: Main.
> This document describes only this version. [Version index](/llms/doc-versions-convoai-guides-v1.txt).


Rime provides high-quality text-to-speech (TTS) with low latency, supporting multiple speakers and models.

### Sample configuration

The following examples show how to configure Rime TTS when starting a conversational AI agent.

**Python SDK**

```python
from agora_agent import Agent
from agora_agent.agentkit.vendors import RimeTTS

# client is your configured Agora client
agent = (
    Agent(client)
    .with_stt(...)  # configure your STT vendor
    .with_llm(...)  # configure your LLM vendor
    .with_tts(RimeTTS(
        key='your-rime-key',
        speaker='cove',
        model_id='mistv2',
    ))
)
```

**TypeScript SDK**

```typescript
import { Agent, RimeTTS } from 'agora-agents';

// client is your configured Agora client
const agent = new Agent({ client })
  .withStt(/* configure your STT vendor */)
  .withLlm(/* configure your LLM vendor */)
  .withTts(new RimeTTS({
    key: 'your-rime-key',
    speaker: 'cove',
    modelId: 'mistv2',
  }));
```

**Go SDK**

```go
import (
    "github.com/AgoraIO/agora-agents-go/v2/agentkit"
    "github.com/AgoraIO/agora-agents-go/v2/agentkit/vendors"
)

// client is your configured Agora client
agent := agentkit.NewAgent(client).WithStt(/* configure your STT vendor */).
  WithLlm(/* configure your LLM vendor */).
  WithTts(
    vendors.NewRimeTTS(vendors.RimeTTSOptions{
        Key:     "your-rime-key",
        Speaker: "cove",
        ModelID: "mistv2",
    }),
)
```

**REST API**

Use the following `tts` configuration in your request:

```json
"tts": {
  "vendor": "rime",
  "params": {
    "api_key": "<rime_key>",
    "speaker": "cove",
    "modelId": "mistv2",
    "base_url": "wss://users.rime.ai/ws2"
  }
}
```

### Key parameters

**params required**

**`api_key` (string) required**

The Rime API key used to authenticate requests. You must provide a valid key for the service to function.

**`speaker` (string) required**

The speaker voice to use for TTS output. For example, `cove`.

**`modelId` (string) required**

The Rime TTS model to use. For example, `mistv2`. Different models provide different voice qualities and capabilities.

**`base_url` (string) optional**

The WebSocket URL for the Rime streaming API. For example, `wss://users.rime.ai/ws2`.

> **Caution**
>
> The parameters listed on this page are validated for use with Conversational AI Engine. Required parameters must be provided as documented. Any additional parameters are passed through directly to the underlying vendor without validation. For a full list of supported options, refer to the Rime documentation for [Arcana](https://docs.rime.ai/api-reference/arcana/streaming-pcm) and [Mist v2](https://docs.rime.ai/api-reference/endpoint/streaming-pcm).

This integration is fully supported for use with Conversational AI Engine. While it has completed functional validation, it is newer to the platform, and additional provider-specific edge cases may be identified as usage scales across a broader range of applications and workloads.
