sparktts-multi-0.5b-unicode

A Spark-TTS model by SparkAudio, from SparkAudio/Spark-TTS-0.5B, packaged for phoonnx, our ONNX text-to-speech library.

Model details

Architecture Spark-TTS
Upstream SparkAudio/Spark-TTS-0.5B
ONNX conversion Fhrozen/Spark-TTS-0.5B-ONNX
Author SparkAudio
Languages en-US, zh-CN
Text input Unicode codepoints of the text

How to use

pip install --pre phoonnx
import wave
from phoonnx.model_manager import TTSModelManager

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

voice = manager.voices["sparktts/female/en"].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": "sparktts/female/en"}}}

Text front end

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.

phoonnx voices

  • sparktts/female/en
  • sparktts/female/zh
  • sparktts/male/en
  • sparktts/male/zh

Licence

The upstream declares the licence cc-by-nc-sa-4.0 in the model card of SparkAudio/Spark-TTS-0.5B.

Related projects

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

Collection including Phoonnx/sparktts-multi-0.5b-unicode