vits-st-simba-graphemes
VITS (transformers) voice for phoonnx, converted to ONNX from UBC-NLP/Simba-TTS-sot.
Model details
| Field | Value |
|---|---|
| Repository | Phoonnx/vits-st-simba-graphemes |
| Voice id | hf_community/UBC-NLP/Simba-TTS-sot |
| Languages | st |
| Architecture | VITS (transformers) |
| Text input | The characters of the text (graphemes) |
| Punctuation | Not recorded in the config. phoonnx removes punctuation before synthesis. |
| Sample rate | 16000 Hz |
| Speakers | 1 |
| Training code | Upstream training code; see UBC-NLP/Simba-TTS-sot |
| Phonemizer | None: the model reads the characters of the text |
| Training data | UBC-NLP/SimbaBench |
| Base model | Not recorded |
| Training checkpoint | None in this repository |
| Upstream | UBC-NLP/Simba-TTS-sot |
| Trained by | UBC-NLP (upstream) |
| Licence | CC BY 4.0 |
QA method: no ASR: length and silence check. Sentences: FLORES-200 devtest, 3 sentences. Id check: the token ids that phoonnx feeds the model, against the transformers tokenizer of the upstream repo, on 7 FLORES-200 texts.
The id check fails on 3 of 7 texts. A ; inside a sentence cuts the sentence into two model calls, where the tokenizer reads one sequence (scriptconv PR 293). In 2 texts that start with h, the tokenizer gives one blank fewer, because its pad token is h; phoonnx gives the regular blank pattern. On 2 more texts a hyphen inside a word reaches the model as a space (scriptconv PR 292). phoonnx also drops an apostrophe at the start of a word, as in 'Mè, where the tokenizer keeps it.
| Check | fp32 | int8 |
|---|---|---|
| Result | fail: the id check | fail: the fp32 result |
| Characters per second | 10.0 to 12.7 | - |
| Length, int8 / fp32 | - | 0.93 to 1.05 |
| Graph size | 114.3 MB | 38.5 MB |
| Peak RSS | 335.8 MB | 269.1 MB |
| RTF (median of 3, 4 threads) | 0.108 | 0.353 |
Measured on AMD Ryzen 5 7600 6-Core Processor. 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
Then run:
import wave
from phoonnx.model_manager import TTSModelManager
manager = TTSModelManager()
manager.load()
manager.merge_default_voices()
voice = manager.voices["hf_community/UBC-NLP/Simba-TTS-sot"].load()
with wave.open("output.wav", "wb") as wav_file:
voice.synthesize_wav("Baahi bohle ba Toropo ya Vatican ke Mak’hatholike a Roma.", 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": "hf_community/UBC-NLP/Simba-TTS-sot"
}
}
}
This voice is not for commercial use. See "Ownership and licensing".
Training data
Trained on UBC-NLP/SimbaBench.
Related links
- Upstream model: UBC-NLP/Simba-TTS-sot
- phoonnx: https://github.com/TigreGotico/phoonnx
- TigreGotico: https://tigregotico.pt
Ownership and licensing
UBC-NLP trained this model and publishes it at UBC-NLP/Simba-TTS-sot under CC BY 4.0. 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 UBC-NLP when you use this voice. UBC-NLP fine-tuned this model from MMS-TTS (facebook/mms-tts), which is CC BY-NC 4.0. Commercial use of this voice is therefore not allowed.
- Downloads last month
- 75
Model tree for Phoonnx/vits-st-simba-graphemes
Base model
UBC-NLP/Simba-TTS-sot