> ## 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.

# GMI Cloud Text-to-Speech

> GmicloudHttpTTSService streams speech from GMI Cloud's multimodal inference engine (Inworld, MiniMax, Chatterbox) within Pipecat pipelines.

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

## Overview

`GmicloudHttpTTSService` streams speech from [GMI Cloud](https://www.gmicloud.ai)'s
multimodal inference engine. One service covers the TTS models in GMI Cloud's
catalog: Inworld Realtime TTS, MiniMax speech synthesis, and Resemble AI's
Chatterbox, behind a single request-queue API. The adapter speaks each model
family's request shape and resolves both synchronous and queued responses.

> [card] [Source Repository](https://github.com/Jayanng/pipecat-gmicloud)
>
> Source code, examples, and issues for the GMI Cloud integration

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

> [card] [GMI Cloud Console](https://console.gmicloud.ai/)
>
> Create an API key and browse GMI Cloud's speech models

> [card] [Demo Video](https://github.com/Jayanng/pipecat-gmicloud/blob/main/assets/demo.mp4)
>
> 30-second screen recording: tests, live synthesis, interruption handling

## Installation

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

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

## Prerequisites

### GMI Cloud Account Setup

1. **GMI Cloud account**: sign up at [GMI Cloud](https://www.gmicloud.ai/)
2. **API key**: create a key in the [GMI Cloud console](https://console.gmicloud.ai/)

### Required Environment Variables

* `GMI_CLOUD_API_KEY`: your GMI Cloud API key, passed to the `api_key` constructor argument.

## Configuration

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

GMI Cloud API key for authentication.

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

HTTP client session used for GMI Cloud API requests.

**url** `str` (default: [https://console.gmicloud.ai](https://console.gmicloud.ai))

GMI Cloud console API base URL.

**audio\_format** `str` (default: WAV)

Output container requested from the API. PCM-bearing formats stream into Pipecat.

**poll\_interval\_secs** `float` (default: 2.0)

Seconds between status polls for queued generations.

**poll\_attempts** `int` (default: 15)

Maximum status polls (about 30 seconds) before giving up.

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

Runtime-configurable synthesis settings. See [Settings](#settings) below.

### Settings

Runtime-configurable settings passed via the `settings` constructor argument
using `GmicloudHttpTTSService.Settings(...)`.

| Setting | Default | Description |
| - | - | - |
| `model` | `"inworld-tts-2"` | Any GMI Cloud audio model id. |
| `voice` | per family | Inworld: `Dennis` (282 voices); MiniMax: `English_expressive_narrator`; Chatterbox: your Resemble `voice_uuid` (required). |
| `language` | `Language.EN` | Language hint (voices define the spoken language). |
| `speed` | `1.0` | Speaking-rate multiplier, mapped to each family's rate field. |
| `temperature` | model default | Randomness (Inworld family only). |
| `timestamp_type` | unset | Optional alignment request, e.g. `WORD` (Inworld family only). |
| `extra_payload` | `{}` | Provider-specific fields merged into the request unchanged. |

> [!NOTE]
>
> GMI Cloud models do not share a single request shape, so the service maps each
> model family's fields (Inworld, MiniMax, Chatterbox) automatically. See the
> [source repository](https://github.com/Jayanng/pipecat-gmicloud) for the full
> model table and live verification results.

## Usage

```python theme={null}
import os
import aiohttp
from pipecat_gmicloud import GmicloudHttpTTSService

async with aiohttp.ClientSession() as session:
    tts = GmicloudHttpTTSService(
        api_key=os.environ["GMI_CLOUD_API_KEY"],
        aiohttp_session=session,
        settings=GmicloudHttpTTSService.Settings(
            model="inworld-tts-2",
            voice="Dennis",
        ),
    )
    # Drop into any Pipecat pipeline:
    # Pipeline([tts, transport.output()])
```

## Compatibility

Tested with Pipecat v1.16.0 (`pipecat-ai`). Check the [source
repository](https://github.com/Jayanng/pipecat-gmicloud) for the latest tested
version and changelog.


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