/ Модель

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

Лицензия
Своя лицензия
Библиотека
onnx
Опубликована
6 сен 2026

echobharat-models

Синтез речиТекст → аудио3 профессии
0скачиваний за 30 дней1лайквеса обновлены7 сен 2026

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

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

Набор квантованных ONNX-моделей для офлайн-синтеза речи в EchoBharat и голосового обмена на Android.

EchoBharat models — это набор квантованных моделей ONNX для офлайн-приложения EchoBharat на Android. Репозиторий содержит производные модели FastPitch и HiFi-GAN для синтеза речи на основе AI4Bharat Indic-TTS, а также компоненты IndicTrans2 distilled 200M для перевода. Модели не обучались авторами репозитория; распознавание речи выполняется отдельными конверсиями IndicConformer, размещёнными в другом репозитории.

Основное назначение набора — локальное преобразование текста в речь на мобильном устройстве. В сценарии EchoBharat распознанный текст передаётся через Bluetooth LE mesh, а принимающее устройство синтезирует речь. Поддерживаются индийские языки и английский; перевод доступен только между хинди и английским. ONNX-графы используют динамическую int8-квантизацию весов, а FastPitch и HiFi-GAN экспортированы отдельными этапами.

Качество синтеза после квантования ниже, чем у исходных fp32-моделей, а формальная оценка качества голоса не проводилась. Набор опубликован под разными условиями: веса FastPitch и HiFi-GAN указаны как MIT, но лицензии компонентов различаются, поэтому перед использованием нужно сверяться с условиями каждого источника.

Сценарии применения

  • локальный синтез речи на Android
  • озвучивание текста на поддерживаемых индийских языках
  • воспроизведение переведённых сообщений в голосовом mesh-приложении

Ограничения

Квантование int8 снижает качество относительно исходных fp32-моделей, а качество голоса формально не оценивалось. Перевод доступен только для пары хинди–английский; лицензии компонентов различаются.

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

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

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

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

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

Открыть на Hugging Face

EchoBharat models

Quantized ONNX models for EchoBharat, an offline multilingual voice transceiver for Android. Phones turn speech into text locally, send only the text across a Bluetooth LE mesh, and turn it back into speech on the other side.

Everything here is a derived redistribution of work by other people. Nothing in this repository was trained here. See Licensing before you use any of it — the files are not all under the same terms.

What is in this repository

PathContentsDerived from
<lang>/fastpitch-<lang>.int8.onnxFastPitch acoustic modelAI4Bharat Indic-TTS
<lang>/hifigan-<lang>.int8.onnxHiFi-GAN vocoderAI4Bharat Indic-TTS
<lang>/fastpitch-<lang>.tokens.jsonsymbol table, indexed by token idAI4Bharat Indic-TTS
<lang>/sample-<lang>.wava sample utterance, for listeninggenerated here
mt/<lang>/mt-*-encoder.int8.onnxIndicTrans2 encoderAI4Bharat IndicTrans2
mt/<lang>/mt-*-decoder.int8.onnxIndicTrans2 decoderAI4Bharat IndicTrans2
mt/<lang>/mt-*-bpe-{src,tgt}.tsvflattened BPE vocabularyAI4Bharat IndicTrans2
mt/<lang>/mt-*-meta.jsonlanguage-tag ids and vocab sizesAI4Bharat IndicTrans2

Speech recognition is not hosted here. EchoBharat uses the Apache-2.0 IndicConformer conversions published at parismitaglobalsolutions/indicconformer-sherpa-onnx and links to them directly. They are documented below because anyone assembling a full voice pack needs all three pieces.

Graph contracts

Read off the exported graphs, not copied from upstream documentation.

Speech-to-text — IndicConformer (hosted elsewhere, listed for completeness)

input   audio_signal  [B, 80, T]  float32     log-mel features
        length        [B]         int64       valid frames per item
output  logprobs      [B, T/4, V] float32     V = 5633 for the released vocabularies

Features are NeMo-compatible: 25 ms window, 10 ms hop, 512-point FFT, 80 Slaney mel bins, 0.97 pre-emphasis, log, then per_feature normalisation. Subsampling factor is 4. Decoding is greedy CTC, and the blank token <blk> lives inside the vocabulary at id 5632 rather than being appended after it — assuming the usual "blank is index V" produces plausible-looking but wrong transcripts.

Text-to-speech — FastPitch + HiFi-GAN

fastpitch  input   text   [1, T]      int64     token ids from the .tokens.json table
           output  mel    [1, 80, F]  float32
hifigan    input   mel    [1, 80, F]  float32
           output  audio  [1, 1, S]   float32   22050 Hz, mono, roughly [-1, 1]

Both are int8 dynamically quantized, weights only. The token axis and frame axis are dynamic. The two stages are exported separately rather than fused, so the vocoder — the expensive half — can be swapped or requantized on its own.

Tokenisation is longest-match against the symbol table in fastpitch-<lang>.tokens.json, where the first id wins on duplicates.

Exporter note. FastPitch must be exported with PyTorch's dynamo exporter. Its fftransformer encoder is built on torch.nn.MultiheadAttention, which bakes the traced sequence length into a Reshape under the legacy TorchScript tracer. The result loads without complaint and then fails at runtime on any sentence that is not exactly the dummy length: input_shape_size == requested_shape_size was false … requested shape:{24,1,512}.

Translation — IndicTrans2 (distilled 200M)

encoder  input   input_ids              [B, S]       int64
                 attention_mask         [B, S]       int64
         output  last_hidden_state      [B, S, 512]  float32

decoder  input   input_ids              [B, T]       int64
                 encoder_attention_mask [B, S]       int64
                 encoder_hidden_states  [B, S, 512]  float32
         output  logits                 [B, T, V]    float32
                 present.*              (72 KV-cache tensors)

decoder_start_token_id = 2, which is also </s>. pad = 1, bos = 0, unk = 3. Maximum source length is 256 tokens. The decoder here is the cacheless variant, so a greedy loop re-runs the whole prefix each step; the 72 present.* outputs are ignored. Using decoder_with_past_model.onnx instead is the obvious speed-up.

The source sequence is [<src_lang_tag>, <tgt_lang_tag>, …bpe pieces, </s>].

Two traps worth stating plainly:

  1. The SentencePiece piece ids and the ONNX graph vocabulary ids are different. Upstream ships a .model file and a separate dict.*.json; conflating the two produces fluent nonsense rather than an error. The bpe-*.tsv files here are the two joined together — piece <TAB> score <TAB> graph_id — so this cannot be got wrong. A graph_id of -1 means the piece exists in SentencePiece but not in the graph vocabulary and must resolve to <unk>.
  2. The FLORES language-tag ids differ per direction: hin_Deva is 8 going Indic→English and 15 going English→Indic. Hardcoding either value silently corrupts the other direction. They ship in mt-*-meta.json.

Which translation direction goes on which phone

EchoBharat translates on receive, never on send. A sender transmits in its own language and tags the packet with that language; each receiving phone translates into whatever language it is set to. That is what lets one broadcast reach a Hindi speaker and an English speaker simultaneously, each hearing their own — a sender that translated first would have to pick one target and the broadcast would stop being multilingual.

The consequence for packaging: a phone needs only the direction into its own language.

Phone's languageNeedsFilesSize
EnglishHindi → Englishmt/en/mt-hi-en-*226 MB
HindiEnglish → Hindimt/hi/mt-en-hi-*270 MB

So an English handset carries mt/en/ and nothing else; it never needs mt/hi/.

Translation is available for Hindi ↔ English only. The other languages have speech-to-text and text-to-speech but no translation pair, and the app reports that honestly rather than passing text through as though it had been translated.

Licensing

These files are not all under one license. Redistributing them means honouring each upstream's terms separately.

ComponentUpstreamUpstream licenseNotes
FastPitch / HiFi-GAN weightsAI4Bharat/Indic-TTSMITcheckpoints from the v1-checkpoints-release GitHub release
IndicTrans2 weightsai4bharat/indictrans2-*MITvia the ONNX conversion below
IndicTrans2 ONNX conversionTigreGotico/indictrans2-*-dist-200M-onnxMITconversion this repo re-quantized/repacked
IndicConformer weights (linked, not hosted)ai4bharat/indicconformer_stt_*MIT
IndicConformer ONNX conversion (linked, not hosted)parismitaglobalsolutions/indicconformer-sherpa-onnxApache-2.0the conversion declares Apache-2.0 even though the upstream weights are MIT; honour both
Silero VAD (shipped in the app, not here)snakers4/silero-vadMIT
Export and packaging scriptsthis projectMIT

The repository is marked license: other because a single SPDX identifier would misrepresent at least one of the components above.

No new training data was used, and no new model was trained. Every weight here is a quantized re-export of a published checkpoint. Attribution belongs to AI4Bharat and to the authors of the conversions named above.

Known limitations

  • Quantization is lossy. All models are int8. Quality is below the fp32 originals; how far below has not been measured against a reference.
  • Odia is absent. No IndicConformer speech-to-text export exists for it, so a voice pack would be incomplete in the one direction that matters most.
  • Translation has no KV cache, so decoding cost grows with the square of the output length.
  • No IndicNLP normalisation in the translation path — NFKC only, unlike the reference IndicTrans2 pipeline. Unusual orthography is untested.
  • Voice quality has not been formally evaluated. Each language ships a sample-<lang>.wav precisely so it can be listened to rather than taken on trust.

Citation

Please cite the upstream work rather than this repository.

@article{ai4bharat-indictrans2,
  title   = {IndicTrans2: Towards High-Quality and Accessible Machine Translation
             Models for all 22 Scheduled Indian Languages},
  author  = {AI4Bharat},
  journal = {Transactions on Machine Learning Research},
  year    = {2023}
}

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

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

GPU в ailist

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

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

Модель выложена только в формате ONNX, рантайм загружает PyTorch-веса.

Ревизия весов
2ad314c

0 моделей