LiveKit docs › Build Agents › Models › STT › Additional models › Gnani

---

# Gnani STT plugin guide

> How to use the Gnani STT plugin for LiveKit Agents.

Available in:
- [ ] Node.js
- [x] Python

## Overview

This plugin allows you to use [Gnani](https://gnani.ai/) as an STT provider for your voice agents. Gnani provides high-accuracy speech recognition for Indian languages, including multilingual and code-switching scenarios, with both batch recognition and realtime WebSocket streaming.

### Installation

Install the plugin from PyPI:

```shell
uv add "livekit-agents[gnani]~=1.8"

```

### Authentication

The Gnani plugin requires a [Gnani API key](https://app.gnani.ai/).

Set `GNANI_API_KEY` in your `.env` file:

```shell
GNANI_API_KEY=<your-gnani-api-key>

```

### Usage

Use Gnani STT in an `AgentSession` or as a standalone transcription service. For example, you can use this STT in the [Voice AI quickstart](https://docs.livekit.io/agents/start/voice-ai.md).

```python
from livekit.agents import AgentSession
from livekit.plugins import gnani

session = AgentSession(
   stt=gnani.STT(
      language="en-IN",
      sample_rate=16000,
   ),
   # ... llm, tts, etc.
)

```

### Parameters

This section describes some of the available parameters. See the [plugin reference](https://docs.livekit.io/reference/python/livekit/plugins/gnani/index.html.md#livekit.plugins.gnani.STT) for a complete list of all available parameters.

- **`language`** _(string)_ (optional) - Default: `en-IN`: [Language code](https://docs.livekit.io/agents/models/stt.md#language-codes) for the input audio. You can override it per call with `recognize(language=...)` or `stream(language=...)`. Supported languages vary by mode:

- **Streaming (WebSocket)**: `bn-IN`, `en-IN`, `gu-IN`, `hi-IN`, `kn-IN`, `ml-IN`, `mr-IN`, `pa-IN`, `ta-IN`, `te-IN`.
- **Batch (REST)**: All streaming languages, plus `en-IN,hi-IN` for English-Hindi bilingual transcription.
For the authoritative list, see [Supported languages](https://docs.gnani.ai/api/STT/stt-websocket#supported-languages) in the Gnani docs.

- **`sample_rate`** _(integer)_ (optional) - Default: `16000`: Input audio sample rate in Hz. Supported values: `8000`, `16000`, `44100`, and `48000`.

- **`use_streaming`** _(boolean)_ (optional) - Default: `true`: Use WebSocket streaming when `true` (the default), or REST recognition when `false`. REST mode requires a VAD in the pipeline; LiveKit wraps the STT with `StreamAdapter` automatically.

- **`format`** _(string)_ (optional) - Default: `verbatim`: Output transcript format, applied to both batch and streaming modes:

- `verbatim`: the raw transcript, with spoken words written out as they're said (for example, "twenty five dollars on may third").
- `transcribe`: enables inverse text normalization (ITN), which converts spoken-form numbers, dates, times, and currency into their conventional written form (for example, "$25 on May 3").
Set `itn_native_numerals` to render digits in the language's native script when `format` is `transcribe`.

- **`preferred_language`** _(string)_ (optional) - Default: `None`: Bias results toward a single language in multilingual scenarios by passing a language code (for example, `hi-IN`). Applies to batch recognition.

- **`itn_native_numerals`** _(boolean)_ (optional) - Default: `false`: Render digits in the native script of the detected language instead of Arabic numerals. Applies when `format` is `transcribe`.

## Additional resources

The following resources provide more information about using Gnani with LiveKit Agents.

- **[Python package](https://pypi.org/project/livekit-plugins-gnani/)**: The `livekit-plugins-gnani` package on PyPI.

- **[Plugin reference](https://docs.livekit.io/reference/python/livekit/plugins/gnani/index.html.md#livekit.plugins.gnani.STT)**: Reference for the Gnani STT plugin.

- **[GitHub repo](https://github.com/livekit/agents/tree/main/livekit-plugins/livekit-plugins-gnani)**: View the source or contribute to the LiveKit Gnani STT plugin.

- **[Gnani site](https://gnani.ai/)**: Gnani's official site and product documentation.

- **[PCM specification](https://docs.gnani.ai/api/STT/stt-websocket#pcm-specification)**: Realtime streaming PCM audio specification for Gnani STT.

- **[Voice AI quickstart](https://docs.livekit.io/agents/start/voice-ai.md)**: Get started with LiveKit Agents and Gnani.

- **[Gnani TTS](https://docs.livekit.io/agents/models/tts/gnani.md)**: Guide to the Gnani TTS plugin with LiveKit Agents.

---

This document was rendered at 2026-11-14T14:50:00.414Z.
For the latest version of this document, see [https://docs.livekit.io/agents/models/stt/gnani.md](https://docs.livekit.io/agents/models/stt/gnani.md).

To explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).