Skip to main content Switch to mobile version pipecat-gnani 0.6.1 Pipecat service integration for Gnani speech AI — STT & TTS for Indian languages
pip install pipecat-gnani==0.6.1 Copy PIP instructions
Pipecat service integration for Gnani — high-accuracy Speech-to-Text and low-latency Text-to-Speech for Indian languages.
Gnani is a production-ready speech AI platform supporting 10+ Indian languages, real-time streaming, and multilingual transcription.
This integration is maintained by Gnani.ai.
pip install pipecat-gnani Or with uv:
uv add pipecat-gnani This will also install the gnani-vachana (>= 0.9.0) core SDK as a dependency. Requires Python 3.11+ and Pipecat 1.5 or newer (1.x). The Python import package name remains gnani.
The WebRTC quickstart below needs the example extra (Pipecat runner, Silero VAD, WebRTC stack, and Groq LLM):
pip install "pipecat-gnani[example]" # or: uv add "pipecat-gnani[example]" From source:
git clone https://github.com/Gnani-AI-Mintlify/pipecat-gnani.git cd pipecat-gnani uv pip install -e ".[example]" Prerequisites
You need a Gnani API key. Gnani APIs have this.
Set your credentials as environment variables:
export GNANI_API_KEY="your-api-key" Quickstart example
The example lives in this repository's examples/foundational/ directory (not in the PyPI wheel). Clone the repo, then run a small WebRTC bot: Gnani WebSocket STT/TTS, Groq LLM, and the Pipecat runner CLI.
Copy examples/foundational/env.example to examples/foundational/.env and set GNANI_API_KEY and GROQ_API_KEY.
With the example extra installed (see Install), from the clone root:
cd examples/foundational python agent.py -t webrtc If you use uv in a git checkout, from the repository root:
uv sync --extra example cd examples/foundational uv run --extra example python agent.py -t webrtc Open the Pipecat playground at http://localhost:7860/client, connect, and speak.
Quick Start — Pipeline snippet
The snippet below shows the core Pipeline([...]) wiring used in the foundational example. See examples/foundational/agent.py for the full runnable version.
import os from pipecat.audio.vad.silero import SileroVADAnalyzer from pipecat.pipeline.pipeline import Pipeline from pipecat.pipeline.task import PipelineParams, PipelineTask from pipecat.processors.aggregators.llm_context import LLMContext from pipecat.processors.aggregators.llm_response_universal import ( LLMContextAggregatorPair, LLMUserAggregatorParams, ) from pipecat.services.groq.llm import GroqLLMService from pipecat.transcriptions.language import Language from pipecat_gnani import GnaniSTTService, GnaniTTSService # transport = ... # WebRTC — see examples/foundational/agent.py stt = GnaniSTTService( api_key=os.environ["GNANI_API_KEY"], settings=GnaniSTTService.Settings(language=Language.HI_IN), ) tts = GnaniTTSService( api_key=os.environ["GNANI_API_KEY"], settings=GnaniTTSService.Settings(voice="Pranav"), ) llm = GroqLLMService( api_key=os.environ["GROQ_API_KEY"], settings=GroqLLMService.Settings( model="llama-3.1-8b-instant", ), ) context = LLMContext() aggregators = LLMContextAggregatorPair( context, user_params=LLMUserAggregatorParams(vad_analyzer=SileroVADAnalyzer()), ) pipeline = Pipeline( [ transport.input(), stt, aggregators.user(), llm, tts, transport.output(), aggregators.assistant(), ] ) task = PipelineTask( pipeline, params=PipelineParams(enable_metrics=True), ) Swap service classes in agent.py for REST or SSE variants — see the file for options (WebSocket STT + TTS is the default for lowest latency and interruption support).
from pipecat_gnani import GnaniHttpSTTService from pipecat.transcriptions.language import Language stt = GnaniHttpSTTService( api_key="your-api-key", aiohttp_session=session, settings=GnaniHttpSTTService.Settings( language=Language.HI_IN, ), ) Speech-to-Text (Streaming WebSocket)
from pipecat_gnani import GnaniSTTService from pipecat.transcriptions.language import Language stt = GnaniSTTService( api_key="your-api-key", settings=GnaniSTTService.Settings( language=Language.HI_IN, ), ) Text-to-Speech (REST)
from pipecat_gnani import GnaniSSETTSService tts = GnaniSSETTSService( api_key="your-api-key", aiohttp_session=session, settings=GnaniSSETTSService.Settings( voice="Pranav", ), ) Text-to-Speech (WebSocket Streaming)
from pipecat_gnani import GnaniTTSService tts = GnaniTTSService( api_key="your-api-key", settings=GnaniTTSService.Settings( voice="Pranav", ), ) Models
timbre-v2.0 has been retired and is rejected.
Pass settings through the service's Settings class, for example GnaniSTTService.Settings(language=Language.HI_IN). Invalid values raise ValueError when the service is created (and when settings are updated at runtime), before any request is sent.
Changing language, format, model, candidates or keywords on a running WebSocket STT service reconnects it with the new values. All validation rules come from the gnani-vachana SDK.
Automatic language detection
from pipecat_gnani import INDIC_AUTO_LANGUAGE_CODE, GnaniSTTService stt = GnaniSTTService( api_key=os.environ["GNANI_API_KEY"], settings=GnaniSTTService.Settings( model="prisma-v3.0", language=INDIC_AUTO_LANGUAGE_CODE, # same as "indic-auto" language_candidates=[Language.HI_IN, Language.EN_IN], # recommended keywords=["Gnani", "Vachana"], ), ) Each TranscriptionFrame.language carries the language the API detected (falling back to the configured one), so downstream processors can react to it.
Tip: pass language_candidates when you use "indic-auto". Bare "indic-auto" on short utterances followed by silence can mis-detect the language (for example English audio reported as Telugu on the REST endpoint). Candidates, or a fixed language, are more reliable.
Audio is always 16-bit PCM, which is what Pipecat plays. The encoding and container settings only accept linear_pcm and wav / raw; other formats (mp3, ogg, mulaw, alaw) raise ValueError. Telephony transports convert to mulaw/alaw themselves.
Deprecated: the sample_width and bitrate TTS settings, and the SUPPORTED_ENCODINGS, SUPPORTED_CONTAINERS and SUPPORTED_BITRATES exports, are ignored or misleading and will be removed in a future release. They currently log a DeprecationWarning.
Streaming PCM Specification
All streaming audio must be sent as raw PCM binary frames — no container format (WAV, MP3) mid-stream.
Frames must be sent at real-time cadence. See STT Realtime — PCM Specification for full details.
STT Languages (Speech-to-Text)
STT uses BCP-47 locale codes with the -IN suffix: bn-IN, en-IN, gu-IN, hi-IN, kn-IN, ml-IN, mr-IN, pa-IN, ta-IN, te-IN. "indic-auto" (prisma-v3.0) detects the language automatically.
For the full list of supported languages, see STT — Supported Languages.
TTS Languages (Text-to-Speech)
TTS uses the same -IN locale codes as STT (hi-IN, en-IN, ...), plus auto. Pipecat Language values are converted for you; languages Gnani TTS does not support (for example or-IN) raise ValueError.
The full catalog, with gender and style, is in the official voice list. Every voice belongs to one model:
timbre-v2.5: 42 voices, for example Pranav (default), Kaveri, Nalini, Asmita, Deepak.
timbre-v3.0: 13 voices: Avinash, Chetana, Devansh, Harshad, Kalpana, Lakshmi, Prakash, Riyaa, Shivani, Shubham, Tarika, Vasudha, Yashraj.
The lists are available in code as pipecat_gnani.TIMBRE_V25_VOICES and pipecat_gnani.TIMBRE_V30_VOICES.
gnani-vachana (>=0.9.0) ← Core SDK on PyPI (import as `gnani`) ↑ pipecat-gnani ← This package (Pipecat service adapters) ├── STT: REST + WebSocket └── TTS: REST + SSE + WebSocket The gnani SDK supplies the model catalog, voices, languages and validation rules; this package makes the API calls and adapts them to Pipecat's SegmentedSTTService, STTService, TTSService, and InterruptibleTTSService base classes.
Supports Pipecat 1.5 and newer 1.x releases (pipecat-ai>=1.5.0,<2.0). Tested on 1.5.0 and 1.15.0.
BSD 2-Clause — see LICENSE.
Both files in this release have provenance metadata.
BSD-2-Clause View SPDX License List
conversational-ai gnani indian-languages indic multilingual pipecat pipecat-ai speech-to-text streaming stt text-to-speech tts vachana voice-agent websocket
Development Status 4 - Beta
Intended Audience Developers
License OSI Approved :: BSD License
Operating System OS Independent
Programming Language Python :: 3
Topic Multimedia :: Sound/Audio
Multimedia :: Sound/Audio :: Speech
Scientific/Engineering :: Artificial Intelligence
Release files for pipecat-gnani 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 60.5 kB
Release files / pipecat_gnani-0.6.1.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Release files / pipecat_gnani-0.6.1-py3-none-any.whl
Security for pipecat-gnani 0.6.1
Both files in this release have been uploaded with provenance metadata.
With provenance pipecat_gnani-0.6.1.tar.gz Nov 19, 2026
With provenance pipecat_gnani-0.6.1-py3-none-any.whl Nov 19, 2026
Attestation for pipecat_gnani-0.6.1.tar.gz
Attestation for pipecat_gnani-0.6.1-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 19, 2026 2 release files Full provenance
Oct 30, 2026 2 release files Full provenance
Aug 17, 2026 2 release files Full provenance
Jul 21, 2026 2 release files Full provenance
Jul 17, 2026 2 release files Full provenance
Jul 16, 2026 2 release files Full provenance
Jul 15, 2026 2 release files Full provenance
Jul 14, 2026 2 release files Full provenance
Jul 2, 2026 2 release files Full provenance
Jun 15, 2026 2 release files Full provenance
Jun 9, 2026 2 release files Full provenance
May 13, 2026 2 release files Full provenance
May 12, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




