vits-sv_se-alma-medium-espeak

VITS (Piper) voice for phoonnx, converted to ONNX from rhasspy/piper-voices/sv/sv_SE/alma/medium.

Model details

Field Value
Repository Phoonnx/vits-sv_se-alma-medium-espeak
Voice id piper/sv_SE-alma-medium
Languages sv-SE
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/sv/sv_SE/alma/medium
Phonemizer espeak-ng, voice sv
Training data Not recorded upstream
Base model Not recorded
Training checkpoint None in this repository
Upstream rhasspy/piper-voices/sv/sv_SE/alma/medium
Trained by yeagersthlm (upstream)
Licence CC BY 4.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.120 0.080
Characters per second 15.0 to 17.0 -
Length, int8 / fp32 - 0.95 to 0.99
Graph size 63.4 MB 19.3 MB
Peak RSS 282.2 MB 245.1 MB
RTF (median of 3, 4 threads) 0.043 0.097

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/sv_SE-alma-medium"].load()

with wave.open("output.wav", "wb") as wav_file:
    voice.synthesize_wav("Alla medborgare i Vatikanstaten är romerska katoliker.", 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/sv_SE-alma-medium"
    }
  }
}

Training data

The upstream card gives: URL: https://huggingface.co/yeagersthlm/piper-voice-sv-alma. Training, as the upstream card states it: Trained on the NST Swedish TTS Dataset (Språkbanken, National Library of Norway). The dataset contains high-quality studio recordings of Swedish speech.

Related links

Ownership and licensing

yeagersthlm trained this model and publishes it at rhasspy/piper-voices/sv/sv_SE/alma/medium under CC BY 4.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 yeagersthlm when you use this voice.

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

Model tree for Phoonnx/vits-sv_se-alma-medium-espeak

Quantized
(104)
this model

Collection including Phoonnx/vits-sv_se-alma-medium-espeak