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

# ConvoZen Ragini Text-to-Speech

> ConvozenHttpTTSService streams TTS from ConvoZen's Ragini 2.0 model in English, Hindi, Kannada, Tamil and Telugu at 48 kHz.

> [!NOTE]
>
> **Community-maintained integration.** This service is built and
> maintained by
> [ConvoZen](https://convozen.ai/)
> . Pipecat does not test or officially support it. Please report issues and
> request changes on the
> [source repository](https://github.com/ConvoZenAI/pipecat-convozen)
> . Learn more about
> [community integrations](https://docs.pipecat.ai/api-reference/server/services/community-integrations.md)
> .

## Overview

ConvoZen's Ragini 2.0 model synthesizes speech in English, Hindi, Kannada,
Tamil and Telugu. `ConvozenHttpTTSService` streams audio back as it is
generated, which keeps time-to-first-audio down in a conversation.

> [card] [Source Repository](https://github.com/ConvoZenAI/pipecat-convozen)
>
> Source code, examples, and issues for the ConvoZen integration

> [card] [PyPI Package](https://pypi.org/project/pipecat-convozen/)
>
> The `pipecat-convozen` package on PyPI

> [card] [API Keys](https://app.convozen.ai/developers/models)
>
> Create and manage your ConvoZen API keys

> [card] [Ragini Research](https://convozen.ai/research/article/ragini)
>
> How the Ragini speech synthesis models work

## Installation

This is a community-maintained package distributed separately from `pipecat-ai`:

```bash theme={null}
uv add pipecat-convozen
```

## Prerequisites

### ConvoZen Account Setup

Before using ConvoZen TTS, you need:

1. **ConvoZen Account**: Sign up at [ConvoZen](https://convozen.ai/)
2. **API Key**: Generate an API key from your [account dashboard](https://app.convozen.ai/developers/models)

### Required Environment Variables

* `CONVOZEN_API_KEY`: Your ConvoZen API key for authentication

## Configuration

**api\_key** `str` *required*

ConvoZen API key for authentication.

**aiohttp\_session** `aiohttp.ClientSession` *required*

The bot's shared aiohttp session, used for every request to ConvoZen. Create
one per bot with `async with aiohttp.ClientSession() as session:` and pass the
same session to each HTTP service, so connections are pooled and closed once.

**model** `str` (default: ragini-v2)

Ragini model to use. `"ragini-v2"` (Ragini 2.0) is currently the only
supported model.

**base\_url** `str` (default: [https://voice.convozen.ai/sdk-models/developer-api/api](https://voice.convozen.ai/sdk-models/developer-api/api))

API base URL. Override to reach a self-hosted deployment.

**sample\_rate** `int` (default: None)

Output sample rate in Hz. `None` uses the pipeline's output rate. Audio is
resampled from Ragini 2.0's native 48000 Hz.

**settings** `ConvozenHttpTTSService.Settings` (default: None)

Runtime-configurable settings for the TTS service. See [Settings](#settings)
below.

### Settings

Runtime-configurable settings passed via the `settings` constructor argument using `ConvozenHttpTTSService.Settings(...)`. These can be updated mid-conversation with `TTSUpdateSettingsFrame`. See [Service Settings](https://docs.pipecat.ai/pipecat/fundamentals/service-settings.md) for details.

| Parameter | Type | Default | Description |
| - | - | - | - |
| `model` | `str` | `None` | TTS model identifier. *(Inherited from base TTS settings.)* |
| `voice` | `str` | `"shrajay"` | Voice identifier. *(Inherited from base TTS settings.)* |
| `language` | `Language \| str` | `None` | Language for synthesis. *(Inherited from base TTS settings.)* |

## Usage

### Basic Setup

```python theme={null}
import os

import aiohttp
from pipecat_convozen import ConvozenHttpTTSService
from pipecat.transcriptions.language import Language

async with aiohttp.ClientSession() as session:
    tts = ConvozenHttpTTSService(
        api_key=os.getenv("CONVOZEN_API_KEY"),
        aiohttp_session=session,
    )
```

### With Voice and Language

```python theme={null}
tts = ConvozenHttpTTSService(
    api_key=os.getenv("CONVOZEN_API_KEY"),
    aiohttp_session=session,
    settings=ConvozenHttpTTSService.Settings(
        voice="sherin",
        language=Language.HI,
    ),
)
```

See the [source repository](https://github.com/ConvoZenAI/pipecat-convozen) for a
complete runnable example wiring a transport → STT → LLM → TTS.

## Notes

* **Supported models**: `ragini-v2` (Ragini 2.0, 48000 Hz).
* **Supported languages**: English (en), Hindi (hi), Kannada (kn), Tamil (ta), and Telugu (te). Regional variants such as `hi-IN` map to their base code; other languages are rejected by the API.
* **Voices**: for `en` and `hi`: `shrajay` (default), `siddharth`, `parmi`, `sherin`, `bhavya`, `shreya`. For `kn`, `ta` and `te`: `amaya`, `parmi`, `roohi`, `bhavya`, `shrajay`, `siddharth`. An unknown voice name is not an error — the API returns an arbitrary voice — so check the spelling.
* **Speaking rate**: Ragini 2.0 does not support speed control.
* **Output format**: Ragini returns 48 kHz WAV. The service streams the response, strips the container header, and resamples to the pipeline's rate.

## Compatibility

Built and verified against Pipecat v1.16.0. Check the [source
repository](https://github.com/ConvoZenAI/pipecat-convozen) for the latest tested
version and changelog.


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