Skip to main content

Pipecat service integration for Gnani Vachana speech AI — STT & TTS for Indian languages

Project description

pipecat-gnani

PyPI License

Pipecat service integration for Gnani Vachana — high-accuracy Speech-to-Text and low-latency Text-to-Speech for Indian languages.

Vachana is a production-ready speech AI platform by Gnani.ai supporting 10+ Indian languages with real-time streaming, multilingual transcription, and code-switching capabilities.

Installation

pip install pipecat-gnani

This will also install the gnani-vachana core SDK as a dependency.

Prerequisites

You need a Gnani API key. Email speechstack@gnani.ai to get started — all new accounts receive free credits, no credit card required.

export GNANI_API_KEY="your-api-key"

Quick Start

Speech-to-Text (Streaming)

from pipecat_gnani import GnaniSTTService

stt = GnaniSTTService(
    api_key="your-api-key",
    settings=GnaniSTTService.Settings(
        language=Language.HI_IN,
    ),
)

Text-to-Speech (REST)

from pipecat_gnani import GnaniHttpTTSService

tts = GnaniHttpTTSService(
    api_key="your-api-key",
    aiohttp_session=session,
    settings=GnaniHttpTTSService.Settings(
        voice="sia",
        language="hi-IN",
    ),
)

Text-to-Speech (Streaming WebSocket)

from pipecat_gnani import GnaniTTSService

tts = GnaniTTSService(
    api_key="your-api-key",
    settings=GnaniTTSService.Settings(
        voice="sia",
        language="IND-IN",
    ),
)

Services

GnaniSTTService

Real-time streaming speech-to-text via WebSocket with VAD (Voice Activity Detection) support.

  • Connects to wss://api.vachana.ai/stt/v3/stream
  • Sends raw PCM audio in 1024-byte chunks
  • Receives transcription events with segment metadata
  • Supports 8 kHz and 16 kHz sample rates

GnaniHttpTTSService

REST-based text-to-speech for non-streaming use cases.

  • Uses POST /api/v1/tts/inference
  • Returns complete audio in a single response
  • Suitable for batch synthesis

GnaniTTSService

WebSocket-based streaming text-to-speech with interruption handling.

  • Connects to wss://api.vachana.ai/api/v1/tts
  • Streams audio chunks in real-time
  • Extends InterruptibleTTSService for proper interruption support
  • Ideal for conversational voice agents

Supported Languages

Language Code
Bengali bn-IN
English (India) en-IN
Gujarati gu-IN
Hindi hi-IN
Kannada kn-IN
Malayalam ml-IN
Marathi mr-IN
Punjabi pa-IN
Tamil ta-IN
Telugu te-IN

Available Voices

Voice ID
Sia sia
Raju raju
Kanika kanika
Nikita nikita
Ravan ravan
Simran simran
Karan karan
Neha neha

Architecture

gnani-vachana      ← Core SDK (REST, WebSocket, SSE clients)
    ↑
pipecat-gnani      ← This package (Pipecat service adapter)

This package is a thin adapter that wraps the gnani-vachana SDK into Pipecat's STTService, TTSService, and InterruptibleTTSService base classes. All connection logic, authentication, and audio format handling lives in the core SDK.

Documentation

License

BSD 2-Clause — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipecat_gnani-0.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipecat_gnani-0.1.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file pipecat_gnani-0.1.0.tar.gz.

File metadata

  • Download URL: pipecat_gnani-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pipecat_gnani-0.1.0.tar.gz
Algorithm Hash digest
SHA256 19beed19825de2fd6b692c16a36cdb6f0d9416a9da4f2facc291adf26ceb2fe4
MD5 f4915e05819a0fe13b57d60693ff748e
BLAKE2b-256 c60527d6b025d9e55745029edcba13bf8936a08d545f6a5203075b2ae04559b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipecat_gnani-0.1.0.tar.gz:

Publisher: workflow.yml on Gnani-AI-Mintlify/pipecat-gnani

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pipecat_gnani-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pipecat_gnani-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pipecat_gnani-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7da6c0255d1c6834459f58829694b43ae414c76a00dcbec5ff0dc83178dd09e2
MD5 17ef14699d40a22d827e6eb71c5fbd19
BLAKE2b-256 a68cef8851bfc20822b2ebe4a8dfe74d28113a61c4ecd4e7114a8b332250a885

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipecat_gnani-0.1.0-py3-none-any.whl:

Publisher: workflow.yml on Gnani-AI-Mintlify/pipecat-gnani

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page