vits-es_es-davefx-medium-espeak-v2

VITS (Piper) voice for phoonnx, converted to ONNX from rhasspy/piper-voices/es/es_ES/davefx/medium.

This repository replaces Phoonnx/vits-es_es-davefx-medium-espeak. Upstream retrained the voice on the Piper 1.5 base models (rhasspy/piper-voices e9c8a39444); the old repository keeps the earlier weights.

Model details

Field Value
Repository Phoonnx/vits-es_es-davefx-medium-espeak-v2
Voice id piper/es_ES-davefx-medium-v2
Languages es-ES
Architecture VITS (Piper)
Text input espeak phonemes, IPA alphabet
Punctuation Trained with the clause punctuation , . ! ? : ;. phoonnx 1.96.1a1 and later keep it at synthesis.
Sample rate 22050 Hz
Speakers 1
Training code Upstream training code; see rhasspy/piper-voices/es/es_ES/davefx/medium
Phonemizer espeak-ng, voice es
Training data Not recorded upstream
Base model Not recorded
Training checkpoint None in this repository
Upstream rhasspy/piper-voices/es/es_ES/davefx/medium
Trained by Rhasspy (upstream)
Licence CC0 1.0

QA method: ASR nemo-parakeet-tdt-0.6b-v3 int8. Sentences: FLORES-200 devtest, 3 sentences.

Check fp32 int8
Result pass pass
WER 0.079 0.079
Characters per second 17.3 to 19.3 -
Length, int8 / fp32 - 0.97 to 1.00
Graph size 63.2 MB 18.7 MB
Peak RSS 296.4 MB 237.0 MB
RTF (median of 3, 4 threads) 0.041 0.100

Measured on 11th Gen Intel(R) Core(TM) i9-11900H @ 2.50GHz. RTF is synthesis time divided by audio length.

Each <graph>_int8.onnx file is the int8 copy of <graph>.onnx, made with onnxruntime.quantization.quantize_dynamic (onnxruntime 1.32.0) and QInt8 weights. The copy passes the int8 gate: its audio is finite and not silent, its length is 0.8 to 1.25 of the fp32 length, and its WER is at most the fp32 WER + 0.05.

How to use

Install phoonnx:

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.

Then run:

import wave
from phoonnx.model_manager import TTSModelManager

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

voice = manager.voices["piper/es_ES-davefx-medium-v2"].load()

with wave.open("output.wav", "wb") as wav_file:
    voice.synthesize_wav("La totalidad de los ciudadanos que viven en Ciudad del Vaticano adscriben a la religión católica romana.", wav_file)

In OVOS, phoonnx installs the ovos-tts-plugin-phoonnx plugin. Select this voice in mycroft.conf:

{
  "tts": {
    "module": "ovos-tts-plugin-phoonnx",
    "ovos-tts-plugin-phoonnx": {
      "voice": "piper/es_ES-davefx-medium-v2"
    }
  }
}

Training data

The upstream card gives: URL: https://github.com/OHF-Voice/voice-datasets; License: CC0. Training, as the upstream card states it: Finetuned from the rdh base model (medium quality; nl_BE, one Flemish speaker, CC0), with MRD and SDP. Default inference settings are noise_scale 0.5 and noise_w 0.333. Requires Piper 1.5 or higher.

Related links

Ownership and licensing

Rhasspy trained this model and publishes it at rhasspy/piper-voices/es/es_ES/davefx/medium under CC0 1.0. TigreGotico Lda converted it to ONNX for phoonnx and publishes the conversion under the same licence. The conversion does not change the weights; the int8 copies quantize them. Credit Rhasspy when you use this voice.

Downloads last month
40
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Phoonnx/vits-es_es-davefx-medium-espeak-v2

Quantized
(103)
this model

Collection including Phoonnx/vits-es_es-davefx-medium-espeak-v2