f5tts-multi-silma_ai-v1-graphemes
A F5-TTS model by SILMA AI, from silma-ai/silma-tts, packaged for phoonnx, our ONNX text-to-speech library.
Model details
| Architecture | F5-TTS |
| Upstream | silma-ai/silma-tts |
| Author | SILMA AI |
| Languages | ar, en |
| Text input | characters of the text |
Size and speed
| Precision | Files | Size | Peak memory | Real-time factor |
|---|---|---|---|---|
| fp32 | model.onnx, F5_Preprocess.onnx, F5_Decode.onnx | 748.9 MB | 1,585 MiB | 6.818 |
| int8 | model_int8.onnx, F5_Preprocess_int8.onnx, F5_Decode_int8.onnx | 304.4 MB | 807 MiB | 3.422 |
The int8 files are a copy of the fp32 graphs with 8-bit integer weights. onnxruntime dynamic quantization made them from the MatMul and Gemm nodes only. The int8 voice passed the check against the fp32 voice. A speech recognizer heard the 5 check sentences with a word error rate of 0.095 from the int8 voice, and 0.079 and 0.127 from two fp32 runs.
Peak memory is the peak resident memory of a new process that loads the voice and says one sentence. The real-time factor is the synthesis time divided by the audio length, the median of 3 runs. A lower value is faster. Measured on an AMD Ryzen 5 7600 CPU with 4 threads.
How to use
pip install --pre phoonnx
import wave
from phoonnx.model_manager import TTSModelManager
manager = TTSModelManager()
manager.load()
manager.merge_default_voices()
voice = manager.voices["silma/v1"].load()
with wave.open("output.wav", "wb") as wav_file:
text = "..." # a sentence in ar
voice.synthesize_wav(text, wav_file)
In OVOS, phoonnx installs the ovos-tts-plugin-phoonnx plugin. Select the voice in mycroft.conf:
{"tts": {"module": "ovos-tts-plugin-phoonnx", "ovos-tts-plugin-phoonnx": {"voice": "silma/v1"}}}
Text front end
phoonnx hands the text to scriptconv, our text conversion library, which normalises it and turns it into the model's input:
graphemes:GraphemePhonemizerfromscriptconv.phonemizers.base, in scriptconv itself.
phoonnx voices
silma/v1silma/v1-en
Licence
The upstream declares the licence apache-2.0 in the model card of silma-ai/silma-tts.
The licence notes for this model:
|
silma-tts-v1/| silma-ai/silma-tts | Arabic (MSA, full tashkeel) + English | Apache-2.0 | the CC-BY-NC-SA-4.0 restriction from its Habibi/SADA/Mixat base;silma-tts-v1IRQ, MAR,silma-tts-v1) are Apache-2.0 and do not carry the NC restriction.
Related projects
- phoonnx: runs this model, in Python and in OVOS.
- scriptconv: text normalisation, script conversion and phonemizers for phoonnx.
- The F5-TTS collection: every F5-TTS model packaged for phoonnx.