styletts2-proxectonos-gl-brais

A StyleTTS2 model by Proxecto Nós, from proxectonos/Nos_StyleTTS2-Brais-GL, packaged for phoonnx, our ONNX text-to-speech library.

Model details

Architecture StyleTTS2
Upstream proxectonos/Nos_StyleTTS2-Brais-GL
Author Proxecto Nós
Languages gl-ES
Text input cotovia phonemes, cotovia alphabet

How to use

pip install --pre phoonnx "scriptconv[gl]"
import wave
from phoonnx.model_manager import TTSModelManager

manager = TTSModelManager()
manager.load()
manager.merge_default_voices()

voice = manager.voices["proxectonos/brais-styletts2"].load()

with wave.open("output.wav", "wb") as wav_file:
    text = "..."  # a sentence in gl-ES
    voice.synthesize_wav(text, wav_file)

The voice clones a speaker from reference audio; the phoonnx README shows how to pass it.

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": "proxectonos/brais-styletts2"}}}

Text front end

phoonnx hands the text to scriptconv, our text conversion library, which normalises it and turns it into the model's input:

  • cotovia: CotoviaPhonemizer from scriptconv.phonemizers.gl, installed by the scriptconv[gl] extra.

phoonnx voices

  • proxectonos/brais-styletts2

Licence

The upstream declares the licence apache-2.0 in the model card of proxectonos/Nos_StyleTTS2-Brais-GL.

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.
Downloads last month
28
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including Phoonnx/styletts2-proxectonos-gl-brais