MOSS-TTS
Collection
MOSS-TTS Nano and its audio tokenizer in ONNX for phoonnx. โข 2 items โข Updated
A MOSS-TTS model by OpenMOSS, from OpenMOSS-Team/MOSS-TTS-Nano-100M, packaged for phoonnx, our ONNX text-to-speech library.
| Architecture | MOSS-TTS |
| Upstream | OpenMOSS-Team/MOSS-TTS-Nano-100M |
| ONNX conversion | OpenMOSS-Team/MOSS-TTS-Nano-100M-ONNX |
| Author | OpenMOSS |
| Languages | ar, cs, da, de, el, en, es, fa, fr, hu, it, ja, ko, pl, pt, ru, sv, tr, zh |
| Text input | Unicode codepoints of the text |
pip install --pre phoonnx
import wave
from phoonnx.model_manager import TTSModelManager
manager = TTSModelManager()
manager.load()
manager.merge_default_voices()
voice = manager.voices["mosstts/nano/ar"].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": "mosstts/nano/ar"}}}
phoonnx hands the text to scriptconv, our text conversion library, which normalises it and turns it into the model's input:
unicode: UnicodeCodepointPhonemizer from scriptconv.phonemizers.base, in scriptconv itself.mosstts/nano/armosstts/nano/csmosstts/nano/damosstts/nano/demosstts/nano/elmosstts/nano/enmosstts/nano/esmosstts/nano/famosstts/nano/frmosstts/nano/humosstts/nano/itmosstts/nano/jamosstts/nano/komosstts/nano/plmosstts/nano/ptmosstts/nano/rumosstts/nano/svmosstts/nano/trmosstts/nano/zhThe upstream declares the licence apache-2.0 in the model card of OpenMOSS-Team/MOSS-TTS-Nano-100M.