styletts2-en-kokoro-v0.19-misaki
A StyleTTS2 model by hexgrad, from hexgrad/kLegacy/v0.19, packaged for phoonnx, our ONNX text-to-speech library.
Model details
| Architecture | StyleTTS2 |
| Upstream | hexgrad/kLegacy/v0.19 |
| ONNX conversion | onnx-community/Kokoro-82M-ONNX |
| Author | hexgrad |
| Languages | en-GB, en-US |
| Text input | misaki_en phonemes, IPA alphabet |
How to use
pip install --pre phoonnx "scriptconv[misaki]"
import wave
from phoonnx.model_manager import TTSModelManager
manager = TTSModelManager()
manager.load()
manager.merge_default_voices()
voice = manager.voices["kokoro-v019/af"].load()
with wave.open("output.wav", "wb") as wav_file:
text = "..." # a sentence in en-US
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": "kokoro-v019/af"}}}
Text front end
phoonnx hands the text to scriptconv, our text conversion library, which normalises it and turns it into the model's input:
misaki_en:MisakiEnPhonemizerfromscriptconv_copyleft.phonemizers.mul, installed by thescriptconv[misaki]extra.
phoonnx voices
kokoro-v019/afkokoro-v019/af_bellakokoro-v019/af_nicolekokoro-v019/af_sarahkokoro-v019/af_skykokoro-v019/am_adamkokoro-v019/am_michaelkokoro-v019/bf_emmakokoro-v019/bf_isabellakokoro-v019/bm_georgekokoro-v019/bm_lewis
Licence
The upstream declares the licence apache-2.0 in the model card of hexgrad/kLegacy.
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.