/ Модель

Характеристики

Лицензия
Apache 2.0
Архитектура
gnani-vachana · dense
Опубликована
9 июл 2026

gnani

Распознавание речиАудио → текст
42скачиваний за 30 дней1лайквеса обновлены13 авг 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Русское описание этой модели ещё готовится. Пока можно заглянуть в карточку модели от автора ниже.

Публичные бенчмарки1

Результаты из открытых лидербордов в сравнении с лидерами каталога на 1 декабря 2026

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

gnani/gnani

License

Hugging Face Transformers pipeline for Gnani — high-accuracy Speech-to-Text (Prisma) and low-latency Text-to-Speech (Timbre) 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.

Hosted inference only — no model weights shipped. All STT and TTS run on Gnani's servers. Authenticate with an API key and call the pipeline via transformers.pipeline().

Installation

pip install gnani-vachana transformers

This installs the gnani-vachana (>= 0.7.7) core SDK. The Python import package name is gnani.

Prerequisites

You need a Gnani API key. Gnani APIs have this.

Set your credentials as environment variables:

export GNANI_API_KEY="your-api-key"

Environment variables

VariablePurpose
GNANI_API_KEYAPI key for Gnani Vachana STT and TTS

Quick Start — Pipeline snippet

The snippet below shows core transformers.pipeline() wiring for Gnani WebSocket STT and Timbre v2.5 TTS.

import os

os.environ["GNANI_API_KEY"] = "your-api-key"

from transformers import pipeline

# Speech-to-Text (Prisma v2.5) — WebSocket streaming
stt = pipeline(
    "automatic-speech-recognition",
    model="gnani/gnani",
    trust_remote_code=True,
)
transcript = stt("audio.wav", language_code="en-IN", use_streaming=True)
print(transcript["text"])

# Text-to-Speech (Timbre v2.5) — WebSocket streaming
tts = pipeline(
    "text-to-speech",
    model="gnani/gnani",
    trust_remote_code=True,
)
result = tts(
    "Hello, how can I help you today?",
    voice="Nalini",
    model="timbre-v2.5",
    language="en-IN",
    tts_mode="realtime",
    sample_rate=16000,
    container="wav",
    encoding="linear_pcm",
)
with open("output.wav", "wb") as f:
    f.write(result["audio"])

Swap use_streaming or tts_mode for REST variants — see below. WebSocket STT + TTS is recommended for lowest latency.

Service Construction

Speech-to-Text (REST)

from transformers import pipeline

stt = pipeline(
    "automatic-speech-recognition",
    model="gnani/gnani",
    trust_remote_code=True,
)
result = stt("audio.wav", language_code="hi-IN")
print(result["text"])

Speech-to-Text (Streaming WebSocket)

from transformers import pipeline

stt = pipeline(
    "automatic-speech-recognition",
    model="gnani/gnani",
    trust_remote_code=True,
)
result = stt("audio.wav", language_code="hi-IN", use_streaming=True)
print(result["text"])

Text-to-Speech (REST)

from transformers import pipeline

tts = pipeline(
    "text-to-speech",
    model="gnani/gnani",
    trust_remote_code=True,
)
result = tts(
    "नमस्ते, आप कैसे हैं?",
    voice="Pranav",
    model="timbre-v2.0",
    tts_mode="rest",
    sample_rate=22050,
    container="wav",
    encoding="linear_pcm",
)

Text-to-Speech (SSE Streaming)

from transformers import pipeline

tts = pipeline(
    "text-to-speech",
    model="gnani/gnani",
    trust_remote_code=True,
)
result = tts(
    "Hello, how are you?",
    voice="Kaveri",
    model="timbre-v2.0",
    tts_mode="sse",
    sample_rate=22050,
    container="wav",
    encoding="linear_pcm",
)

Text-to-Speech (WebSocket Streaming)

from transformers import pipeline

tts = pipeline(
    "text-to-speech",
    model="gnani/gnani",
    trust_remote_code=True,
)
result = tts(
    "Hello, how are you?",
    voice="Nalini",
    model="timbre-v2.5",
    language="en-IN",
    tts_mode="realtime",
    sample_rate=16000,
    container="wav",
    encoding="linear_pcm",
)

Services

STT

ModeParameterTransportDescription
RESTuse_streaming=False (default)POST /stt/v3File/buffer transcription.
WebSocketuse_streaming=Truewss://api.vachana.ai/stt/v3/streamReal-time streaming with VAD.

Streaming PCM Specification

All streaming audio must be sent as raw PCM binary frames — no container format (WAV, MP3) mid-stream.

Property16 kHz8 kHz
EncodingPCM signed 16-bit little-endianPCM signed 16-bit little-endian
Sample Rate16,000 Hz8,000 Hz
Channels1 (mono)1 (mono)
Samples per chunk512512
Bytes per frame1,024 bytes (512 samples × 2 bytes)1,024 bytes (512 samples × 2 bytes)
Frame duration32 ms64 ms

Frames must be sent at real-time cadence. See STT Realtime — PCM Specification for full details.

TTS

Use tts_mode to select the transport:

ModeParameterTransportDescription
RESTtts_mode="rest" (default)POST /api/v1/tts/inferenceSingle-request batch synthesis.
SSEtts_mode="sse"POST /api/v1/tts/sseChunked synthesis via Server-Sent Events.
WebSockettts_mode="realtime"wss://api.vachana.ai/api/v1/ttsLowest latency for live agents.

For backward compatibility, use_streaming=True without an explicit tts_mode maps to "realtime".

Full Pipeline Parameter Reference

STT — Pipeline kwargs

ParameterDefaultDescription
language_code"hi-IN"BCP-47 locale (e.g. hi-IN, en-IN, ta-IN)
format"verbatim"Output format ("verbatim" or "formatted")
use_streamingFalseUse WebSocket streaming instead of REST

TTS — Pipeline kwargs

ParameterDefaultDescription
voice"Pranav"Timbre voice ID
model"timbre-v2.0""timbre-v2.0" (4 voices) or "timbre-v2.5" (42 voices)
languageNoneBCP-47 locale — timbre-v2.5 only (e.g. "hi-IN", "en-IN")
sample_rate22050Output sample rate (also: 8000, 16000, 44100)
container"wav"Audio container ("wav", "raw", "mp3", "mulaw", "ogg")
encoding"linear_pcm"Audio encoding ("linear_pcm" or "oggopus")
tts_mode"rest"Transport: "rest", "sse", or "realtime"
use_streamingFalseLegacy flag; maps to tts_mode="realtime" when True

Config defaults (GnaniVachanaConfig)

Set defaults when loading the pipeline:

from transformers import pipeline

stt = pipeline(
    "automatic-speech-recognition",
    model="gnani/gnani",
    trust_remote_code=True,
    default_language_code="en-IN",
)

tts = pipeline(
    "text-to-speech",
    model="gnani/gnani",
    trust_remote_code=True,
    default_voice="Nalini",
    default_tts_model="timbre-v2.5",
    default_tts_language="en-IN",
    default_sample_rate=16000,
)

Supported Languages

STT Languages (Prisma)

STT uses BCP-47 locale codes (e.g. hi-IN, bn-IN).

For the full list of supported languages, see:

TTS Languages (Timbre)

The optional language parameter is supported for timbre-v2.5 only. For the full list, see TTS — Supported Languages.

Migration: The former model name vachana-voice-v3 has been renamed to timbre-v2.0. Update any model="vachana-voice-v3" calls to model="timbre-v2.0" (or omit model to use the default).

Available Voices

See the official voice list for the latest supported voices.

timbre-v2.0 (4 voices)

VoiceIDGenderDescription
PranavPranavMaleBold, Trustworthy
KaveriKaveriFemaleConfident, Bright
ShubhraShubhraFemaleGentle, Expressive
DeepakDeepakMaleGrounded, Conversational

timbre-v2.5 (42 voices)

The expanded catalog includes voices across Hindi, English, Tamil, Telugu, Kannada, Malayalam, Marathi, Bengali, Gujarati, Punjabi, and Hinglish. Use model="timbre-v2.5" with an optional language parameter (e.g. language="hi-IN").

from transformers import pipeline

tts = pipeline(
    "text-to-speech",
    model="gnani/gnani",
    trust_remote_code=True,
)
result = tts(
    "नमस्ते",
    voice="Nalini",
    model="timbre-v2.5",
    language="hi-IN",
)

Architecture

gnani-vachana (>=0.7.7)  ← Core SDK on PyPI (import as `gnani`)
        ↑
gnani/gnani                ← This Hugging Face repo (Transformers adapter)
  ├── STT: REST + WebSocket
  └── TTS: REST + SSE + WebSocket

This repo wraps the gnani-vachana SDK into Hugging Face's Pipeline API. It uses the Prisma model for speech-to-text and the Timbre model for text-to-speech. Voice lists, language constants, and model definitions are shared with the core SDK. Authentication uses a single API key via the GNANI_API_KEY environment variable.

Documentation

Performance

Gnani Prisma v2.5 delivers 10–20% lower Word Error Rate compared to leading alternatives on Indic language benchmarks, with the gap widening on noisy audio — call center recordings, field environments, and telephony captures where background noise and channel distortion are typical.

Key specs:

  • STT latency: P95 < 200ms (streaming)
  • Languages: 10 Indian languages + Hinglish code-mixed and Latin-script variants
  • Audio input: optimized for both broadband and 8kHz telephony

Intended Use

Gnani Prisma v2.5 and Timbre are built for production speech applications in Indian language contexts:

  • Contact center and IVR automation — optimized for telephony-grade audio (8kHz, PSTN/VoIP)
  • Conversational AI and voice agents — real-time streaming STT/TTS with Hinglish code-switching support
  • Field and mobile applications — robust to ambient noise, low-quality microphones, and regional accent variation
  • Multilingual transcription pipelines — batch or streaming transcription across 10 Indian languages

Out-of-Scope Use

  • Languages outside the supported 10 Indian languages and Hinglish variants
  • Offline or on-device inference — all inference runs on Gnani's hosted infrastructure
  • Applications requiring model fine-tuning, weight access, or custom vocabulary injection
  • Medical, legal, or safety-critical transcription without human review

Compatibility

Tested with transformers >= 4.38 and gnani-vachana v0.7.7.

License

Apache 2.0 — see LICENSE.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Не удалось определить, чем загружать веса модели (нет library_name и architectures).

Ревизия весов
f082ccb

0 моделей