styletts2-pt_pt_x_lisbon-tuga_kokoro-tugaphone
A StyleTTS2 model, from logus2k/kokoro_tts_eu_pt, packaged for phoonnx, our ONNX text-to-speech library.
Model details
| Architecture | StyleTTS2 |
| Upstream | logus2k/kokoro_tts_eu_pt |
| Languages | pt-PT-x-lisbon |
| Text input | tugaphone phonemes, IPA alphabet |
How to use
pip install --pre phoonnx "scriptconv[pt-phonemizers]"
import wave
from phoonnx.model_manager import TTSModelManager
manager = TTSModelManager()
manager.load()
manager.merge_default_voices()
voice = manager.voices["logus2k/tts_eu_pt"].load()
with wave.open("output.wav", "wb") as wav_file:
text = "..." # a sentence in pt-PT-x-lisbon
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": "logus2k/tts_eu_pt"}}}
Text front end
phoonnx hands the text to scriptconv, our text conversion library, which normalises it and turns it into the model's input:
tugaphone:TugaphonePhonemizerfromscriptconv.phonemizers.pt, installed by thescriptconv[pt-phonemizers]extra. It runs tugaphone, our phonemizer for Portuguese across Lusophone dialects (pt-PT, pt-BR, pt-AO, pt-MZ, pt-TL).
phoonnx voices
logus2k/tts_eu_ptlogus2k/tts_eu_pt-am_adamlogus2k/tts_eu_pt-pm_alexlogus2k/tts_eu_pt-pm_santa
Licence
The upstream declares the licence apache-2.0 in the model card of logus2k/kokoro_tts_eu_pt.
Related projects
- phoonnx: runs this model, in Python and in OVOS.
- scriptconv: text normalisation, script conversion and phonemizers for phoonnx.
- The StyleTTS2 collection: every StyleTTS2 model packaged for phoonnx.