Vaani-Benchmark-V1.0
13+0,20 ко второму месту
Один прогон · ниже — лучше
Поднаборы
- Hindi_WER 13
Составлено на русском по карточке модели и метаданным Hugging Face
Русское описание этой модели ещё готовится. Пока можно заглянуть в карточку модели от автора ниже.
Результаты из открытых лидербордов в сравнении с лидерами каталога на 1 декабря 2026
13+0,20 ко второму месту
Один прогон · ниже — лучше
Поднаборы
README от автора на Hugging Face, как он его опубликовал
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().
pip install gnani-vachana transformers
This installs the gnani-vachana (>= 0.7.7) core SDK. The Python import package name is gnani.
You need a Gnani API key. Gnani APIs have this.
Set your credentials as environment variables:
export GNANI_API_KEY="your-api-key"
| Variable | Purpose |
|---|---|
GNANI_API_KEY | API key for Gnani Vachana STT and TTS |
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.
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"])
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"])
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",
)
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",
)
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",
)
| Mode | Parameter | Transport | Description |
|---|---|---|---|
| REST | use_streaming=False (default) | POST /stt/v3 | File/buffer transcription. |
| WebSocket | use_streaming=True | wss://api.vachana.ai/stt/v3/stream | Real-time streaming with VAD. |
All streaming audio must be sent as raw PCM binary frames — no container format (WAV, MP3) mid-stream.
| Property | 16 kHz | 8 kHz |
|---|---|---|
| Encoding | PCM signed 16-bit little-endian | PCM signed 16-bit little-endian |
| Sample Rate | 16,000 Hz | 8,000 Hz |
| Channels | 1 (mono) | 1 (mono) |
| Samples per chunk | 512 | 512 |
| Bytes per frame | 1,024 bytes (512 samples × 2 bytes) | 1,024 bytes (512 samples × 2 bytes) |
| Frame duration | 32 ms | 64 ms |
Frames must be sent at real-time cadence. See STT Realtime — PCM Specification for full details.
Use tts_mode to select the transport:
| Mode | Parameter | Transport | Description |
|---|---|---|---|
| REST | tts_mode="rest" (default) | POST /api/v1/tts/inference | Single-request batch synthesis. |
| SSE | tts_mode="sse" | POST /api/v1/tts/sse | Chunked synthesis via Server-Sent Events. |
| WebSocket | tts_mode="realtime" | wss://api.vachana.ai/api/v1/tts | Lowest latency for live agents. |
For backward compatibility, use_streaming=True without an explicit tts_mode maps to "realtime".
| Parameter | Default | Description |
|---|---|---|
language_code | "hi-IN" | BCP-47 locale (e.g. hi-IN, en-IN, ta-IN) |
format | "verbatim" | Output format ("verbatim" or "formatted") |
use_streaming | False | Use WebSocket streaming instead of REST |
| Parameter | Default | Description |
|---|---|---|
voice | "Pranav" | Timbre voice ID |
model | "timbre-v2.0" | "timbre-v2.0" (4 voices) or "timbre-v2.5" (42 voices) |
language | None | BCP-47 locale — timbre-v2.5 only (e.g. "hi-IN", "en-IN") |
sample_rate | 22050 | Output 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_streaming | False | Legacy flag; maps to tts_mode="realtime" when True |
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,
)
STT uses BCP-47 locale codes (e.g. hi-IN, bn-IN).
For the full list of supported languages, see:
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-v3has been renamed totimbre-v2.0. Update anymodel="vachana-voice-v3"calls tomodel="timbre-v2.0"(or omitmodelto use the default).
See the official voice list for the latest supported voices.
| Voice | ID | Gender | Description |
|---|---|---|---|
| Pranav | Pranav | Male | Bold, Trustworthy |
| Kaveri | Kaveri | Female | Confident, Bright |
| Shubhra | Shubhra | Female | Gentle, Expressive |
| Deepak | Deepak | Male | Grounded, Conversational |
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",
)
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.
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:
Gnani Prisma v2.5 and Timbre are built for production speech applications in Indian language contexts:
Tested with transformers >= 4.38 and gnani-vachana v0.7.7.
Apache 2.0 — see LICENSE.
На своей GPU в ailist. Цена — по текущим предложениям провайдеров
GPU в ailist
Универсальный рантайм
Не удалось определить, чем загружать веса модели (нет library_name и architectures).