glowtts-fa-custom-espeak

A Glow-TTS model by Coqui, from github.com/coqui-ai/TTS/releases/download/v0.10.1_models/tts_models--fa--custom--glow-tts.zip, packaged for phoonnx, our ONNX text-to-speech library.

Model details

Architecture Glow-TTS
Upstream github.com/coqui-ai/TTS/releases/download/v0.10.1_models/tts_models--fa--custom--glow-tts.zip
Author Coqui
Languages fa
Text input espeak phonemes, IPA alphabet

How to use

pip install --pre phoonnx

The phonemes come from the espeak-ng program, so install it too (for example apt install espeak-ng). Without it, pip install --pre "phoonnx[espeak]" gives phoonnx the espyak port of espeak-ng. Some espyak phonemes differ from those of espeak-ng, so the voice can say some words wrong with espyak.

import wave
from phoonnx.model_manager import TTSModelManager

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

voice = manager.voices["coqui-fa-custom-glow-tts"].load()

with wave.open("output.wav", "wb") as wav_file:
    text = "..."  # a sentence in fa
    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": "coqui-fa-custom-glow-tts"}}}

Text front end

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

  • espeak: EspeakPhonemizer from scriptconv_copyleft.phonemizers.mul, installed by the scriptconv[espeak] extra.

phoonnx voices

  • coqui-fa-custom-glow-tts

Licence

The upstream declares the licence CC-BY-4.0 in the Coqui TTS model list.

Related projects

  • phoonnx: runs this model, in Python and in OVOS.
  • scriptconv: text normalisation, script conversion and phonemizers for phoonnx.
  • The Glow-TTS collection: every Glow-TTS model packaged for phoonnx.
Downloads last month
74
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Collection including Phoonnx/glowtts-fa-custom-espeak