vits-bn_bd-google-medium-espeak

VITS (Piper) voice for phoonnx, converted to ONNX from rhasspy/piper-voices/bn/bn_BD/google/medium.

Model details

Field Value
Repository Phoonnx/vits-bn_bd-google-medium-espeak
Voice id piper/bn_BD-google-medium
Languages bn-BD
Architecture VITS (Piper)
Text input espeak phonemes, IPA alphabet
Punctuation Trained with the clause punctuation , . ! ? : ;. phoonnx 1.96.1a1 and later keep it at synthesis.
Sample rate 22050 Hz
Speakers 16
Training code Upstream training code; see rhasspy/piper-voices/bn/bn_BD/google/medium
Phonemizer espeak-ng, voice bn
Training data Not recorded upstream
Base model Not recorded
Training checkpoint None in this repository
Upstream rhasspy/piper-voices/bn/bn_BD/google/medium
Trained by Rhasspy (upstream)
Licence CC BY-SA 4.0 (OpenSLR 37) and the CMU licence (festvox cmu_indic)

QA method: no ASR: length and silence check. Sentences: FLORES-200 devtest, 3 sentences.

Check fp32 int8
Result pass pass
Characters per second 13.5 to 15.1 -
Length, int8 / fp32 - 1.00 to 1.06
Graph size 76.8 MB 22.1 MB
Peak RSS 265.0 MB 223.0 MB
RTF (median of 3, 4 threads) 0.037 0.094

Measured on 11th Gen Intel(R) Core(TM) i9-11900H @ 2.50GHz. RTF is synthesis time divided by audio length.

Each <graph>_int8.onnx file is the int8 copy of <graph>.onnx, made with onnxruntime.quantization.quantize_dynamic (onnxruntime 1.32.0) and QInt8 weights. The copy passes the int8 gate: its audio is finite and not silent, its length is 0.8 to 1.25 of the fp32 length.

How to use

Install phoonnx:

pip install --pre phoonnx

The phonemes come from the espeak-ng program, so install it too (for example apt install espeak-ng). Without it, pip install --pre "phoonnx[espeak]" gives phoonnx the espyak port of espeak-ng. Some espyak phonemes differ from those of espeak-ng, so the voice can say some words wrong with espyak.

Then run:

import wave
from phoonnx.model_manager import TTSModelManager

manager = TTSModelManager()
manager.load()
manager.merge_default_voices()

voice = manager.voices["piper/bn_BD-google-medium"].load()

with wave.open("output.wav", "wb") as wav_file:
    voice.synthesize_wav("ভ্যাটিকান সিটি সকল নাগরিকের রোমান ক্যাথলিক হয়।", wav_file)

In OVOS, phoonnx installs the ovos-tts-plugin-phoonnx plugin. Select this voice in mycroft.conf:

{
  "tts": {
    "module": "ovos-tts-plugin-phoonnx",
    "ovos-tts-plugin-phoonnx": {
      "voice": "piper/bn_BD-google-medium"
    }
  }
}

Training data

The upstream card gives: URL: http://www.openslr.org/37/; License: Attribution-ShareAlike 4.0 International; URL: http://festvox.org/cmu_indic/index.html; License: See CMU License below. Training, as the upstream card states it: Finetuned from the U.S. English hifi_tts_92 base model (medium quality; the voice of Cori Samuel, Hi-Fi TTS reader 92), with MRD and SDP. Default inference settings are noise_scale 0.5 and noise_w 0.333. Requires Piper 1.5 or higher.

Related links

Ownership and licensing

Rhasspy trained this model and publishes it at rhasspy/piper-voices/bn/bn_BD/google/medium under CC BY-SA 4.0 (OpenSLR 37) and the CMU licence (festvox cmu_indic). TigreGotico Lda converted it to ONNX for phoonnx and publishes the conversion under the same licence. The conversion does not change the weights; the int8 copies quantize them. Credit Rhasspy when you use this voice.

Downloads last month
51
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Phoonnx/vits-bn_bd-google-medium-espeak

Quantized
(103)
this model

Collection including Phoonnx/vits-bn_bd-google-medium-espeak