vits-en_us-sam-medium-espeak-v2

VITS (Piper) voice for phoonnx, converted to ONNX from rhasspy/piper-voices/en/en_US/sam/medium.

This repository replaces Phoonnx/vits-en_us-sam-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-en_us-sam-medium-espeak-v2
Voice id piper/en_US-sam-medium-v2
Languages en-US
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/en/en_US/sam/medium
Phonemizer espeak-ng, voice en-us
Training data Not recorded upstream
Base model Not recorded
Training checkpoint None in this repository
Upstream rhasspy/piper-voices/en/en_US/sam/medium
Trained by Rhasspy (upstream)
Licence Apache 2.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.000 0.000
Characters per second 13.7 to 16.5 -
Length, int8 / fp32 - 0.99 to 1.00
Graph size 63.2 MB 18.7 MB
Peak RSS 256.3 MB 217.1 MB
RTF (median of 3, 4 threads) 0.038 0.098

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/en_US-sam-medium-v2"].load()

with wave.open("output.wav", "wb") as wav_file:
    voice.synthesize_wav("All citizens of Vatican City are Roman Catholic.", 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/en_US-sam-medium-v2"
    }
  }
}

Training data

The upstream card gives: URL: https://github.com/Sam-Accenture-Non-Binary-Voice/non-binary-voice-files; License: https://www.apache.org/licenses/LICENSE-2.0.txt. 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/en/en_US/sam/medium under Apache 2.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
30
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Phoonnx/vits-en_us-sam-medium-espeak-v2

Quantized
(103)
this model

Collection including Phoonnx/vits-en_us-sam-medium-espeak-v2