Instructions to use fdemelo/x-vits with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Piper
How to use fdemelo/x-vits with Piper:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
x-vits 0.3: style embeddings, pitch kept in the speaker range, no phantom vowels; samples next to 0.2
Browse files- README.md +43 -42
- acoustic.onnx +2 -2
- dp_cond.npz +1 -1
- durations.onnx +2 -2
- emphasis_template.json +105 -105
- encoder.onnx +1 -1
- predictor.onnx +1 -1
- prominence.onnx +1 -1
- runtime.json +29 -10
- samples/confused_xvits.mp3 +0 -0
- samples/default_xvits.mp3 +0 -0
- samples/emphasis_0.mp3 +0 -0
- samples/emphasis_1.mp3 +0 -0
- samples/emphasis_2.mp3 +0 -0
- samples/emphasis_3.mp3 +0 -0
- samples/enunciated_xvits.mp3 +0 -0
- samples/happy_xvits.mp3 +0 -0
- samples/laughing_xvits.mp3 +0 -0
- samples/sad_xvits.mp3 +0 -0
- samples/same_confused_xvits.mp3 +0 -0
- samples/same_default_xvits.mp3 +0 -0
- samples/same_enunciated_xvits.mp3 +0 -0
- samples/same_happy_xvits.mp3 +0 -0
- samples/same_laughing_xvits.mp3 +0 -0
- samples/same_sad_xvits.mp3 +0 -0
- samples/v0.2/confused_xvits.mp3 +0 -0
- samples/v0.2/default_xvits.mp3 +0 -0
- samples/v0.2/emphasis_0.mp3 +0 -0
- samples/v0.2/emphasis_1.mp3 +0 -0
- samples/v0.2/emphasis_2.mp3 +0 -0
- samples/v0.2/emphasis_3.mp3 +0 -0
- samples/v0.2/enunciated_xvits.mp3 +0 -0
- samples/v0.2/happy_xvits.mp3 +0 -0
- samples/v0.2/laughing_xvits.mp3 +0 -0
- samples/v0.2/sad_xvits.mp3 +0 -0
- samples/v0.2/same_confused_xvits.mp3 +0 -0
- samples/v0.2/same_default_xvits.mp3 +0 -0
- samples/v0.2/same_enunciated_xvits.mp3 +0 -0
- samples/v0.2/same_happy_xvits.mp3 +0 -0
- samples/v0.2/same_laughing_xvits.mp3 +0 -0
- samples/v0.2/same_sad_xvits.mp3 +0 -0
- speakers.npz +3 -0
README.md
CHANGED
|
@@ -23,9 +23,9 @@ datasets:
|
|
| 23 |
An expressive **[Piper](https://github.com/rhasspy/piper)/VITS** voice that can speak in **six styles** and
|
| 24 |
**stress the words you mark**, or the words it thinks matter. Made with
|
| 25 |
**[x-vits](https://github.com/femelo/x-vits)**, a recipe that adds prosody modelling (intonation, rhythm,
|
| 26 |
-
emphasis, vocal effort) to small, fast VITS voices. It's about
|
| 27 |
|
| 28 |
-
**Version 0.
|
| 29 |
|
| 30 |
## What's different from a plain Piper voice
|
| 31 |
|
|
@@ -33,16 +33,18 @@ emphasis, vocal effort) to small, fast VITS voices. It's about 25M parameters in
|
|
| 33 |
- 💥 **Emphasis:** write `*word*` to stress a word. Without marks, a small model predicts which words to stress.
|
| 34 |
- 🌊 **Sampled intonation:** a flow-matching model picks a plausible pitch, voicing, energy and vocal-effort contour per phoneme, instead of averaging every sentence into the same melody.
|
| 35 |
- 📣 **Vocal effort:** how bright and pressed the voice is, learned per style: happy and laughing are brighter, sad is darker.
|
|
|
|
| 36 |
- 🎚️ **Style-aware timing:** sad slows down, confused hesitates, enunciated takes its pauses.
|
| 37 |
|
| 38 |
-
## What's new in 0.
|
| 39 |
|
| 40 |
-
- **
|
| 41 |
-
- **
|
| 42 |
-
- **
|
| 43 |
-
- **Louder emphasised words**, peaking with the pitch.
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
| 46 |
|
| 47 |
## 🎧 Samples
|
| 48 |
|
|
@@ -60,33 +62,32 @@ you ask for. The speaker's own recordings of this held-out sentence are on the r
|
|
| 60 |
|
| 61 |
<table>
|
| 62 |
<tr><th colspan="4">Piper (any style): <audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_piper.mp3"></audio></th></tr>
|
| 63 |
-
<tr><th>style</th><th>x-vits 0.
|
| 64 |
-
<tr><td><b>default</b></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_default_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 65 |
-
<tr><td><b>happy</b></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_happy_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 66 |
-
<tr><td><b>sad</b></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_sad_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 67 |
-
<tr><td><b>confused</b></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_confused_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 68 |
-
<tr><td><b>enunciated</b></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_enunciated_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 69 |
-
<tr><td><b>laughing</b></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_laughing_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 70 |
</table>
|
| 71 |
|
| 72 |
-
Measured on these clips, 0.
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
can't produce actual laughter.
|
| 77 |
|
| 78 |
### Different sentences, each in its recorded style
|
| 79 |
|
| 80 |
Held-out sentences, never seen in training, each with the recording of that sentence in that style.
|
| 81 |
|
| 82 |
<table>
|
| 83 |
-
<tr><th>style</th><th>text</th><th>Piper</th><th>x-vits 0.
|
| 84 |
-
<tr><td><b>default</b></td><td>I'm more of an all terrain vehicle type.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/default_piper.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/default_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 85 |
-
<tr><td><b>happy</b></td><td>We didn't get the weather right, guys.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/happy_piper.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/happy_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 86 |
-
<tr><td><b>sad</b></td><td>No, in Salt Lake City, today, it won't snow.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/sad_piper.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/sad_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 87 |
-
<tr><td><b>confused</b></td><td>Is young adult fiction very popular?</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/confused_piper.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/confused_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 88 |
-
<tr><td><b>enunciated</b></td><td>One PM to nine PM, it'll be cloudy, and in the low fifties.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/enunciated_piper.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/enunciated_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 89 |
-
<tr><td><b>laughing</b></td><td>Their moment had come, or so they said.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/laughing_piper.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/laughing_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 90 |
</table>
|
| 91 |
|
| 92 |
### Emphasis, by moving the `*mark*` (style `default`)
|
|
@@ -94,11 +95,11 @@ Held-out sentences, never seen in training, each with the recording of that sent
|
|
| 94 |
Piper has no equivalent: it stresses whatever its training suggests.
|
| 95 |
|
| 96 |
<table>
|
| 97 |
-
<tr><th>text</th><th>x-vits 0.
|
| 98 |
-
<tr><td>I never said she stole my money.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/emphasis_0.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 99 |
-
<tr><td><b>*I*</b> never said she stole my money.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/emphasis_1.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 100 |
-
<tr><td>I never said <b>*she*</b> stole my money.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/emphasis_2.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 101 |
-
<tr><td>I never said she stole my <b>*money*</b>.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/emphasis_3.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/
|
| 102 |
</table>
|
| 103 |
|
| 104 |
## 🚀 Usage
|
|
@@ -136,7 +137,7 @@ xvits-speak --model fdemelo/x-vits --text "Is it *really* you?" --style sad --ou
|
|
| 136 |
| `style` | `default` `happy` `sad` `confused` `enunciated` `laughing` | none gives a neutral mix |
|
| 137 |
| `emphasis` | `auto` · `marked` · `none` | `auto`: marks if present, otherwise predicted |
|
| 138 |
| `emphasis_scale` | default 1.5 | multiplies the emphasis pitch peak, lengthening and loudness; 1.0 = average emphasis in the recordings |
|
| 139 |
-
| `style_strength` | default 1.0 | style exaggeration: 0 none, 2 double (
|
| 140 |
| `guidance` | `"timing,pitch,energy,effort"` | per-channel exaggeration; default `"1.0,2.0,4.0,1.0"` |
|
| 141 |
| `temperature` | `"timing,pitch,energy"` | variety; default `"0.8,0.7,1.0"`, higher is livelier |
|
| 142 |
| `length_scale` | default 1.08 | larger is slower |
|
|
@@ -154,21 +155,21 @@ Speed with onnxruntime on 4 CPU threads: real-time factor about 0.6 (16 steps) o
|
|
| 154 |
| `durations.onnx` | style-aware stochastic duration predictor | 2.5 MB |
|
| 155 |
| `acoustic.onnx` | prosody-conditioned prior, length regulation, flow, HiFi-GAN | 36 MB |
|
| 156 |
| `prominence.onnx` | predicts which words to stress | 4.8 MB |
|
| 157 |
-
| `dp_cond.npz`, `emphasis_template.json` | style vectors for the duration predictor; the emphasis shape | small |
|
| 158 |
| `runtime.json`, `config.json` | runtime settings; Piper phoneme map (eSpeak `en`) | |
|
| 159 |
|
| 160 |
These graphs are driven by `xvits.runtime`, so they aren't drop-in files for Piper's own runtime.
|
| 161 |
-
The export was verified against PyTorch end to end
|
| 162 |
|
| 163 |
## 🧪 Training
|
| 164 |
|
| 165 |
- **Base:** Piper's LJSpeech `medium` checkpoint (LJSpeech is public domain).
|
| 166 |
- **Data:** [Expresso](https://speechbot.github.io/expresso/) speaker **ex02**, read speech in six styles,
|
| 167 |
2.2 h after leaving out whisper, singing, long-form and `<laugh>` rows. 245 utterances held out.
|
| 168 |
-
- **Recipe** ([x-vits](https://github.com/femelo/x-vits) 0.
|
| 169 |
1. fine-tune the base checkpoint on ex02;
|
| 170 |
2. extract per-phoneme duration, pitch, energy and vocal-effort targets;
|
| 171 |
-
3. fine-tune with a zero-initialised prosody input to the prior, including frame-level interpolation;
|
| 172 |
4. train an OT-CFM prosody predictor with a style input;
|
| 173 |
5. train a style-conditioned duration predictor;
|
| 174 |
6. train a word-prominence student on acoustic labels;
|
|
@@ -180,12 +181,12 @@ The export was verified against PyTorch end to end (maximum difference about 3e-
|
|
| 180 |
|---|---|---|---|---|
|
| 181 |
| Piper, fine-tuned | 0.37 | 0.30 | 1.7 % | 4.08 |
|
| 182 |
| x-vits 0.1 | 0.37 | 0.39 | 2.1 % | 4.01 |
|
| 183 |
-
|
|
|
|
|
| 184 |
| the recordings | | | | 4.12 |
|
| 185 |
|
| 186 |
-
UTMOS and Whisper both prefer calm read speech: UTMOS gives the speaker's own laughing takes 2.49
|
| 187 |
-
|
| 188 |
-
above and decide for yourself.
|
| 189 |
|
| 190 |
The prominence student finds the recording's main stress 42 % of the time, against 34 % for "last word" and 15 % for a random word.
|
| 191 |
|
|
@@ -193,7 +194,7 @@ The prominence student finds the recording's main stress 42 % of the time, again
|
|
| 193 |
|
| 194 |
- **CC BY-NC 4.0.** Expresso is licensed for non-commercial use only, and so is this voice. The x-vits code is MIT.
|
| 195 |
- English, one female speaker, read speech. Styles are as recorded in Expresso; there are no other emotions.
|
| 196 |
-
- Laughing is rendered through intonation, timing and
|
| 197 |
- Questions sometimes end with a smaller rise than a natural reading.
|
| 198 |
- Don't use this voice to impersonate real people or to mislead listeners.
|
| 199 |
|
|
|
|
| 23 |
An expressive **[Piper](https://github.com/rhasspy/piper)/VITS** voice that can speak in **six styles** and
|
| 24 |
**stress the words you mark**, or the words it thinks matter. Made with
|
| 25 |
**[x-vits](https://github.com/femelo/x-vits)**, a recipe that adds prosody modelling (intonation, rhythm,
|
| 26 |
+
emphasis, vocal effort) to small, fast VITS voices. It's about 26M parameters in all, exported to ONNX, and runs on a CPU.
|
| 27 |
|
| 28 |
+
**Version 0.3.** Needs the x-vits 0.3 runtime (`pip install` from the GitHub repo, below).
|
| 29 |
|
| 30 |
## What's different from a plain Piper voice
|
| 31 |
|
|
|
|
| 33 |
- 💥 **Emphasis:** write `*word*` to stress a word. Without marks, a small model predicts which words to stress.
|
| 34 |
- 🌊 **Sampled intonation:** a flow-matching model picks a plausible pitch, voicing, energy and vocal-effort contour per phoneme, instead of averaging every sentence into the same melody.
|
| 35 |
- 📣 **Vocal effort:** how bright and pressed the voice is, learned per style: happy and laughing are brighter, sad is darker.
|
| 36 |
+
- 🎙️ **Style timbre:** each style also has its own learned embedding in the voice, not only its own prosody.
|
| 37 |
- 🎚️ **Style-aware timing:** sad slows down, confused hesitates, enunciated takes its pauses.
|
| 38 |
|
| 39 |
+
## What's new in 0.3
|
| 40 |
|
| 41 |
+
- **Style embeddings in the voice:** each style has its own learned embedding in the flow, vocoder and duration predictor, on top of the x-vits prosody model.
|
| 42 |
+
- **Pitch stays in the speaker's range:** style exaggeration is soft-limited at each style's 95th-percentile pitch from the recordings. In 0.2, laughing could hold a vowel above anything the speaker produced, which sounded robotic.
|
| 43 |
+
- **No phantom vowels:** stress marks, which carry no sound of their own, are capped at their usual length, so "PM" no longer comes out as "P-E-M".
|
|
|
|
| 44 |
|
| 45 |
+
0.3 sounds better in happy and default (UTMOS 3.91 and 4.23, from 3.53 and 4.01), hits the speaker's laughing pitch
|
| 46 |
+
(322 Hz, like the recording) and is more intelligible when laughing; it makes a few more word errors in enunciated
|
| 47 |
+
and default. The 0.2 voice is playable below for comparison; its files and the 0.1 samples are in this repo's history.
|
| 48 |
|
| 49 |
## 🎧 Samples
|
| 50 |
|
|
|
|
| 62 |
|
| 63 |
<table>
|
| 64 |
<tr><th colspan="4">Piper (any style): <audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_piper.mp3"></audio></th></tr>
|
| 65 |
+
<tr><th>style</th><th>x-vits 0.3</th><th>x-vits 0.2</th><th>recording</th></tr>
|
| 66 |
+
<tr><td><b>default</b></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_default_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/same_default_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_default_recording.mp3"></audio></td></tr>
|
| 67 |
+
<tr><td><b>happy</b></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_happy_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/same_happy_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_happy_recording.mp3"></audio></td></tr>
|
| 68 |
+
<tr><td><b>sad</b></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_sad_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/same_sad_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_sad_recording.mp3"></audio></td></tr>
|
| 69 |
+
<tr><td><b>confused</b></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_confused_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/same_confused_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_confused_recording.mp3"></audio></td></tr>
|
| 70 |
+
<tr><td><b>enunciated</b></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_enunciated_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/same_enunciated_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_enunciated_recording.mp3"></audio></td></tr>
|
| 71 |
+
<tr><td><b>laughing</b></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_laughing_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/same_laughing_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/same_laughing_recording.mp3"></audio></td></tr>
|
| 72 |
</table>
|
| 73 |
|
| 74 |
+
Measured on these clips, 0.3 laughs at the speaker's pitch (322 Hz, like the recording; 0.2 274 Hz), and
|
| 75 |
+
default, enunciated and confused no longer overshoot the recorded pitch range (default 8.7 semitones; recording
|
| 76 |
+
9.3, 0.2 11.2). Sad came out narrower than the speaker (3.5 vs 5.1 semitones) and happy lower (273 vs 347 Hz).
|
| 77 |
+
The voice still can't produce actual laughter.
|
|
|
|
| 78 |
|
| 79 |
### Different sentences, each in its recorded style
|
| 80 |
|
| 81 |
Held-out sentences, never seen in training, each with the recording of that sentence in that style.
|
| 82 |
|
| 83 |
<table>
|
| 84 |
+
<tr><th>style</th><th>text</th><th>Piper</th><th>x-vits 0.3</th><th>x-vits 0.2</th><th>recording</th></tr>
|
| 85 |
+
<tr><td><b>default</b></td><td>I'm more of an all terrain vehicle type.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/default_piper.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/default_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/default_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/default_recording.mp3"></audio></td></tr>
|
| 86 |
+
<tr><td><b>happy</b></td><td>We didn't get the weather right, guys.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/happy_piper.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/happy_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/happy_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/happy_recording.mp3"></audio></td></tr>
|
| 87 |
+
<tr><td><b>sad</b></td><td>No, in Salt Lake City, today, it won't snow.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/sad_piper.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/sad_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/sad_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/sad_recording.mp3"></audio></td></tr>
|
| 88 |
+
<tr><td><b>confused</b></td><td>Is young adult fiction very popular?</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/confused_piper.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/confused_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/confused_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/confused_recording.mp3"></audio></td></tr>
|
| 89 |
+
<tr><td><b>enunciated</b></td><td>One PM to nine PM, it'll be cloudy, and in the low fifties.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/enunciated_piper.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/enunciated_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/enunciated_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/enunciated_recording.mp3"></audio></td></tr>
|
| 90 |
+
<tr><td><b>laughing</b></td><td>Their moment had come, or so they said.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/laughing_piper.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/laughing_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/laughing_xvits.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/laughing_recording.mp3"></audio></td></tr>
|
| 91 |
</table>
|
| 92 |
|
| 93 |
### Emphasis, by moving the `*mark*` (style `default`)
|
|
|
|
| 95 |
Piper has no equivalent: it stresses whatever its training suggests.
|
| 96 |
|
| 97 |
<table>
|
| 98 |
+
<tr><th>text</th><th>x-vits 0.3</th><th>x-vits 0.2</th></tr>
|
| 99 |
+
<tr><td>I never said she stole my money.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/emphasis_0.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/emphasis_0.mp3"></audio></td></tr>
|
| 100 |
+
<tr><td><b>*I*</b> never said she stole my money.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/emphasis_1.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/emphasis_1.mp3"></audio></td></tr>
|
| 101 |
+
<tr><td>I never said <b>*she*</b> stole my money.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/emphasis_2.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/emphasis_2.mp3"></audio></td></tr>
|
| 102 |
+
<tr><td>I never said she stole my <b>*money*</b>.</td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/emphasis_3.mp3"></audio></td><td><audio controls preload="none" src="https://huggingface.co/fdemelo/x-vits/resolve/main/samples/v0.2/emphasis_3.mp3"></audio></td></tr>
|
| 103 |
</table>
|
| 104 |
|
| 105 |
## 🚀 Usage
|
|
|
|
| 137 |
| `style` | `default` `happy` `sad` `confused` `enunciated` `laughing` | none gives a neutral mix |
|
| 138 |
| `emphasis` | `auto` · `marked` · `none` | `auto`: marks if present, otherwise predicted |
|
| 139 |
| `emphasis_scale` | default 1.5 | multiplies the emphasis pitch peak, lengthening and loudness; 1.0 = average emphasis in the recordings |
|
| 140 |
+
| `style_strength` | default 1.0 | style exaggeration: 0 none, 2 double (pitch stays within the speaker's range) |
|
| 141 |
| `guidance` | `"timing,pitch,energy,effort"` | per-channel exaggeration; default `"1.0,2.0,4.0,1.0"` |
|
| 142 |
| `temperature` | `"timing,pitch,energy"` | variety; default `"0.8,0.7,1.0"`, higher is livelier |
|
| 143 |
| `length_scale` | default 1.08 | larger is slower |
|
|
|
|
| 155 |
| `durations.onnx` | style-aware stochastic duration predictor | 2.5 MB |
|
| 156 |
| `acoustic.onnx` | prosody-conditioned prior, length regulation, flow, HiFi-GAN | 36 MB |
|
| 157 |
| `prominence.onnx` | predicts which words to stress | 4.8 MB |
|
| 158 |
+
| `speakers.npz`, `dp_cond.npz`, `emphasis_template.json` | style embeddings; style vectors for the duration predictor; the emphasis shape | small |
|
| 159 |
| `runtime.json`, `config.json` | runtime settings; Piper phoneme map (eSpeak `en`) | |
|
| 160 |
|
| 161 |
These graphs are driven by `xvits.runtime`, so they aren't drop-in files for Piper's own runtime.
|
| 162 |
+
The export was verified against PyTorch end to end at several sentence lengths.
|
| 163 |
|
| 164 |
## 🧪 Training
|
| 165 |
|
| 166 |
- **Base:** Piper's LJSpeech `medium` checkpoint (LJSpeech is public domain).
|
| 167 |
- **Data:** [Expresso](https://speechbot.github.io/expresso/) speaker **ex02**, read speech in six styles,
|
| 168 |
2.2 h after leaving out whisper, singing, long-form and `<laugh>` rows. 245 utterances held out.
|
| 169 |
+
- **Recipe** ([x-vits](https://github.com/femelo/x-vits) 0.3, `xvits-train`, with `--emotion-speakers`):
|
| 170 |
1. fine-tune the base checkpoint on ex02;
|
| 171 |
2. extract per-phoneme duration, pitch, energy and vocal-effort targets;
|
| 172 |
+
3. fine-tune with a zero-initialised prosody input to the prior, including frame-level interpolation, and one zero-initialised embedding per style (400 epochs);
|
| 173 |
4. train an OT-CFM prosody predictor with a style input;
|
| 174 |
5. train a style-conditioned duration predictor;
|
| 175 |
6. train a word-prominence student on acoustic labels;
|
|
|
|
| 181 |
|---|---|---|---|---|
|
| 182 |
| Piper, fine-tuned | 0.37 | 0.30 | 1.7 % | 4.08 |
|
| 183 |
| x-vits 0.1 | 0.37 | 0.39 | 2.1 % | 4.01 |
|
| 184 |
+
| x-vits 0.2 | **0.40** | 0.37 | 3.6 % | 3.86 |
|
| 185 |
+
| **x-vits 0.3** | 0.38 | 0.39 | 4.5 % | **3.96** |
|
| 186 |
| the recordings | | | | 4.12 |
|
| 187 |
|
| 188 |
+
UTMOS and Whisper both prefer calm read speech: UTMOS gives the speaker's own laughing takes 2.49.
|
| 189 |
+
Listen above and decide for yourself.
|
|
|
|
| 190 |
|
| 191 |
The prominence student finds the recording's main stress 42 % of the time, against 34 % for "last word" and 15 % for a random word.
|
| 192 |
|
|
|
|
| 194 |
|
| 195 |
- **CC BY-NC 4.0.** Expresso is licensed for non-commercial use only, and so is this voice. The x-vits code is MIT.
|
| 196 |
- English, one female speaker, read speech. Styles are as recorded in Expresso; there are no other emotions.
|
| 197 |
+
- Laughing is rendered through intonation, timing, brightness and the style embedding; the voice doesn't produce actual laughter.
|
| 198 |
- Questions sometimes end with a smaller rise than a natural reading.
|
| 199 |
- Don't use this voice to impersonate real people or to mislead listeners.
|
| 200 |
|
acoustic.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c760b868f5dc4a5c221ecaa08c5c96b7fd1920594b4d6960269baee377d1ef6
|
| 3 |
+
size 49194637
|
dp_cond.npz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 13808
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53e307fcf3564c4e6850a153b6e4802018091c0756ecc3058ca3cd772c31992d
|
| 3 |
size 13808
|
durations.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2064a6749a3236b139dee1f82cd6e4bb7454f5310d9a96fe0dafba407c271de
|
| 3 |
+
size 2506048
|
emphasis_template.json
CHANGED
|
@@ -5,209 +5,209 @@
|
|
| 5 |
14
|
| 6 |
],
|
| 7 |
"pitch": {
|
| 8 |
-
"A": 3.
|
| 9 |
-
"mu": 1.
|
| 10 |
-
"s_l": 2.
|
| 11 |
-
"s_r": 2.
|
| 12 |
-
"R": 0.
|
| 13 |
-
"k_r": 1.
|
| 14 |
"tau": 1.5
|
| 15 |
},
|
| 16 |
"dur": {
|
| 17 |
-
"C": 0.
|
| 18 |
-
"B": 0.
|
| 19 |
-
"mu": -
|
| 20 |
"s_l": 2.5,
|
| 21 |
-
"s_r":
|
| 22 |
},
|
| 23 |
"n_words": 444,
|
| 24 |
-
"rmse_pitch_st": 0.
|
| 25 |
-
"rmse_logdur": 0.
|
| 26 |
"styles": {
|
| 27 |
"confused": {
|
| 28 |
"pitch": {
|
| 29 |
-
"A": 3.
|
| 30 |
-
"mu": 1.
|
| 31 |
-
"s_l": 2.
|
| 32 |
-
"s_r": 2.
|
| 33 |
-
"R": 0.
|
| 34 |
-
"k_r": 1.
|
| 35 |
"tau": 1.5
|
| 36 |
},
|
| 37 |
"dur": {
|
| 38 |
-
"C": 0.
|
| 39 |
-
"B": 0.
|
| 40 |
-
"mu": -
|
| 41 |
"s_l": 2.5,
|
| 42 |
-
"s_r":
|
| 43 |
},
|
| 44 |
"n_words": 63,
|
| 45 |
-
"rmse_pitch_st": 1.
|
| 46 |
-
"rmse_logdur": 0.
|
| 47 |
"energy": {
|
| 48 |
-
"C": 0.
|
| 49 |
-
"B": -0.
|
| 50 |
"mu": -4.0,
|
| 51 |
"s_l": 6.0,
|
| 52 |
"s_r": 10.0
|
| 53 |
},
|
| 54 |
-
"rmse_energy": 0.
|
| 55 |
"pitch_from": "pooled (style shape does not fit)"
|
| 56 |
},
|
| 57 |
"default": {
|
| 58 |
"pitch": {
|
| 59 |
-
"A":
|
| 60 |
-
"mu": 1.
|
| 61 |
-
"s_l": 2.
|
| 62 |
-
"s_r": 2.
|
| 63 |
-
"R": 1.
|
| 64 |
-
"k_r": 1.
|
| 65 |
"tau": 1.5
|
| 66 |
},
|
| 67 |
"dur": {
|
| 68 |
-
"C": 0.
|
| 69 |
-
"B": 0.
|
| 70 |
-
"mu": -
|
| 71 |
"s_l": 2.5,
|
| 72 |
-
"s_r":
|
| 73 |
},
|
| 74 |
"n_words": 176,
|
| 75 |
-
"rmse_pitch_st": 0.
|
| 76 |
-
"rmse_logdur": 0.
|
| 77 |
"energy": {
|
| 78 |
-
"C": 0.
|
| 79 |
-
"B": -0.
|
| 80 |
"mu": -4.0,
|
| 81 |
"s_l": 6.0,
|
| 82 |
"s_r": 10.0
|
| 83 |
},
|
| 84 |
-
"rmse_energy": 0.
|
| 85 |
},
|
| 86 |
"enunciated": {
|
| 87 |
"pitch": {
|
| 88 |
-
"A": 3.
|
| 89 |
-
"mu": 1.
|
| 90 |
-
"s_l": 2.
|
| 91 |
-
"s_r": 2.
|
| 92 |
-
"R": 2.
|
| 93 |
-
"k_r": 1.
|
| 94 |
"tau": 1.5
|
| 95 |
},
|
| 96 |
"dur": {
|
| 97 |
-
"C": 0.
|
| 98 |
-
"B": 0.
|
| 99 |
-
"mu": -
|
| 100 |
"s_l": 2.5,
|
| 101 |
-
"s_r":
|
| 102 |
},
|
| 103 |
"n_words": 48,
|
| 104 |
-
"rmse_pitch_st": 0.
|
| 105 |
-
"rmse_logdur": 0.
|
| 106 |
"energy": {
|
| 107 |
-
"C": 0.
|
| 108 |
-
"B": -0.
|
| 109 |
"mu": -4.0,
|
| 110 |
"s_l": 6.0,
|
| 111 |
"s_r": 10.0
|
| 112 |
},
|
| 113 |
-
"rmse_energy": 0.
|
| 114 |
},
|
| 115 |
"happy": {
|
| 116 |
"pitch": {
|
| 117 |
-
"A": 3.
|
| 118 |
-
"mu": 1.
|
| 119 |
-
"s_l": 2.
|
| 120 |
-
"s_r": 2.
|
| 121 |
-
"R": 0.
|
| 122 |
-
"k_r": 1.
|
| 123 |
"tau": 1.5
|
| 124 |
},
|
| 125 |
"dur": {
|
| 126 |
-
"C": -0.
|
| 127 |
-
"B": 0.
|
| 128 |
-
"mu": -
|
| 129 |
"s_l": 2.5,
|
| 130 |
-
"s_r":
|
| 131 |
},
|
| 132 |
"n_words": 56,
|
| 133 |
-
"rmse_pitch_st": 0.
|
| 134 |
-
"rmse_logdur": 0.
|
| 135 |
"energy": {
|
| 136 |
-
"C": 0.
|
| 137 |
-
"B": -0.
|
| 138 |
"mu": -4.0,
|
| 139 |
"s_l": 6.0,
|
| 140 |
"s_r": 10.0
|
| 141 |
},
|
| 142 |
-
"rmse_energy": 0.
|
| 143 |
},
|
| 144 |
"laughing": {
|
| 145 |
"pitch": {
|
| 146 |
-
"A": 3.
|
| 147 |
-
"mu": 1.
|
| 148 |
-
"s_l": 2.
|
| 149 |
-
"s_r": 2.
|
| 150 |
-
"R": 0.
|
| 151 |
-
"k_r": 1.
|
| 152 |
"tau": 1.5
|
| 153 |
},
|
| 154 |
"dur": {
|
| 155 |
-
"C": 0.
|
| 156 |
-
"B": 0.
|
| 157 |
-
"mu": -
|
| 158 |
"s_l": 2.5,
|
| 159 |
-
"s_r":
|
| 160 |
},
|
| 161 |
"n_words": 49,
|
| 162 |
-
"rmse_pitch_st":
|
| 163 |
-
"rmse_logdur": 0.
|
| 164 |
"energy": {
|
| 165 |
-
"C": 0.
|
| 166 |
-
"B": -0.
|
| 167 |
"mu": -4.0,
|
| 168 |
"s_l": 6.0,
|
| 169 |
"s_r": 10.0
|
| 170 |
},
|
| 171 |
-
"rmse_energy": 0.
|
| 172 |
"pitch_from": "pooled (style shape does not fit)"
|
| 173 |
},
|
| 174 |
"sad": {
|
| 175 |
"pitch": {
|
| 176 |
-
"A": 2.
|
| 177 |
-
"mu": 1.
|
| 178 |
-
"s_l": 2.
|
| 179 |
-
"s_r": 2.
|
| 180 |
-
"R": 1.
|
| 181 |
-
"k_r": 1.
|
| 182 |
"tau": 1.5
|
| 183 |
},
|
| 184 |
"dur": {
|
| 185 |
-
"C": 0.
|
| 186 |
-
"B": 0.
|
| 187 |
-
"mu": -
|
| 188 |
"s_l": 2.5,
|
| 189 |
-
"s_r":
|
| 190 |
},
|
| 191 |
"n_words": 52,
|
| 192 |
-
"rmse_pitch_st": 0.
|
| 193 |
-
"rmse_logdur": 0.
|
| 194 |
"energy": {
|
| 195 |
-
"C": 0.
|
| 196 |
-
"B": -0.
|
| 197 |
"mu": -4.0,
|
| 198 |
"s_l": 6.0,
|
| 199 |
"s_r": 10.0
|
| 200 |
},
|
| 201 |
-
"rmse_energy": 0.
|
| 202 |
}
|
| 203 |
},
|
| 204 |
"energy": {
|
| 205 |
-
"C": 0.
|
| 206 |
-
"B": -0.
|
| 207 |
"mu": -4.0,
|
| 208 |
"s_l": 6.0,
|
| 209 |
"s_r": 10.0
|
| 210 |
},
|
| 211 |
-
"rmse_energy": 0.
|
| 212 |
"source": "human marks"
|
| 213 |
}
|
|
|
|
| 5 |
14
|
| 6 |
],
|
| 7 |
"pitch": {
|
| 8 |
+
"A": 3.559,
|
| 9 |
+
"mu": 1.57,
|
| 10 |
+
"s_l": 2.161,
|
| 11 |
+
"s_r": 2.227,
|
| 12 |
+
"R": 0.979,
|
| 13 |
+
"k_r": 1.344,
|
| 14 |
"tau": 1.5
|
| 15 |
},
|
| 16 |
"dur": {
|
| 17 |
+
"C": 0.072,
|
| 18 |
+
"B": 0.309,
|
| 19 |
+
"mu": -1.588,
|
| 20 |
"s_l": 2.5,
|
| 21 |
+
"s_r": 3.536
|
| 22 |
},
|
| 23 |
"n_words": 444,
|
| 24 |
+
"rmse_pitch_st": 0.5,
|
| 25 |
+
"rmse_logdur": 0.096,
|
| 26 |
"styles": {
|
| 27 |
"confused": {
|
| 28 |
"pitch": {
|
| 29 |
+
"A": 3.559,
|
| 30 |
+
"mu": 1.57,
|
| 31 |
+
"s_l": 2.161,
|
| 32 |
+
"s_r": 2.227,
|
| 33 |
+
"R": 0.979,
|
| 34 |
+
"k_r": 1.344,
|
| 35 |
"tau": 1.5
|
| 36 |
},
|
| 37 |
"dur": {
|
| 38 |
+
"C": 0.044,
|
| 39 |
+
"B": 0.346,
|
| 40 |
+
"mu": -1.588,
|
| 41 |
"s_l": 2.5,
|
| 42 |
+
"s_r": 3.536
|
| 43 |
},
|
| 44 |
"n_words": 63,
|
| 45 |
+
"rmse_pitch_st": 1.13,
|
| 46 |
+
"rmse_logdur": 0.112,
|
| 47 |
"energy": {
|
| 48 |
+
"C": 0.513,
|
| 49 |
+
"B": -0.374,
|
| 50 |
"mu": -4.0,
|
| 51 |
"s_l": 6.0,
|
| 52 |
"s_r": 10.0
|
| 53 |
},
|
| 54 |
+
"rmse_energy": 0.103,
|
| 55 |
"pitch_from": "pooled (style shape does not fit)"
|
| 56 |
},
|
| 57 |
"default": {
|
| 58 |
"pitch": {
|
| 59 |
+
"A": 5.994,
|
| 60 |
+
"mu": 1.57,
|
| 61 |
+
"s_l": 2.161,
|
| 62 |
+
"s_r": 2.227,
|
| 63 |
+
"R": 1.146,
|
| 64 |
+
"k_r": 1.344,
|
| 65 |
"tau": 1.5
|
| 66 |
},
|
| 67 |
"dur": {
|
| 68 |
+
"C": 0.133,
|
| 69 |
+
"B": 0.199,
|
| 70 |
+
"mu": -1.588,
|
| 71 |
"s_l": 2.5,
|
| 72 |
+
"s_r": 3.536
|
| 73 |
},
|
| 74 |
"n_words": 176,
|
| 75 |
+
"rmse_pitch_st": 0.54,
|
| 76 |
+
"rmse_logdur": 0.095,
|
| 77 |
"energy": {
|
| 78 |
+
"C": 0.388,
|
| 79 |
+
"B": -0.241,
|
| 80 |
"mu": -4.0,
|
| 81 |
"s_l": 6.0,
|
| 82 |
"s_r": 10.0
|
| 83 |
},
|
| 84 |
+
"rmse_energy": 0.136
|
| 85 |
},
|
| 86 |
"enunciated": {
|
| 87 |
"pitch": {
|
| 88 |
+
"A": 3.551,
|
| 89 |
+
"mu": 1.57,
|
| 90 |
+
"s_l": 2.161,
|
| 91 |
+
"s_r": 2.227,
|
| 92 |
+
"R": 2.861,
|
| 93 |
+
"k_r": 1.344,
|
| 94 |
"tau": 1.5
|
| 95 |
},
|
| 96 |
"dur": {
|
| 97 |
+
"C": 0.101,
|
| 98 |
+
"B": 0.399,
|
| 99 |
+
"mu": -1.588,
|
| 100 |
"s_l": 2.5,
|
| 101 |
+
"s_r": 3.536
|
| 102 |
},
|
| 103 |
"n_words": 48,
|
| 104 |
+
"rmse_pitch_st": 0.66,
|
| 105 |
+
"rmse_logdur": 0.178,
|
| 106 |
"energy": {
|
| 107 |
+
"C": 0.307,
|
| 108 |
+
"B": -0.219,
|
| 109 |
"mu": -4.0,
|
| 110 |
"s_l": 6.0,
|
| 111 |
"s_r": 10.0
|
| 112 |
},
|
| 113 |
+
"rmse_energy": 0.17
|
| 114 |
},
|
| 115 |
"happy": {
|
| 116 |
"pitch": {
|
| 117 |
+
"A": 3.391,
|
| 118 |
+
"mu": 1.57,
|
| 119 |
+
"s_l": 2.161,
|
| 120 |
+
"s_r": 2.227,
|
| 121 |
+
"R": 0.082,
|
| 122 |
+
"k_r": 1.344,
|
| 123 |
"tau": 1.5
|
| 124 |
},
|
| 125 |
"dur": {
|
| 126 |
+
"C": -0.048,
|
| 127 |
+
"B": 0.425,
|
| 128 |
+
"mu": -1.588,
|
| 129 |
"s_l": 2.5,
|
| 130 |
+
"s_r": 3.536
|
| 131 |
},
|
| 132 |
"n_words": 56,
|
| 133 |
+
"rmse_pitch_st": 0.82,
|
| 134 |
+
"rmse_logdur": 0.075,
|
| 135 |
"energy": {
|
| 136 |
+
"C": 0.443,
|
| 137 |
+
"B": -0.39,
|
| 138 |
"mu": -4.0,
|
| 139 |
"s_l": 6.0,
|
| 140 |
"s_r": 10.0
|
| 141 |
},
|
| 142 |
+
"rmse_energy": 0.164
|
| 143 |
},
|
| 144 |
"laughing": {
|
| 145 |
"pitch": {
|
| 146 |
+
"A": 3.559,
|
| 147 |
+
"mu": 1.57,
|
| 148 |
+
"s_l": 2.161,
|
| 149 |
+
"s_r": 2.227,
|
| 150 |
+
"R": 0.979,
|
| 151 |
+
"k_r": 1.344,
|
| 152 |
"tau": 1.5
|
| 153 |
},
|
| 154 |
"dur": {
|
| 155 |
+
"C": 0.108,
|
| 156 |
+
"B": 0.338,
|
| 157 |
+
"mu": -1.588,
|
| 158 |
"s_l": 2.5,
|
| 159 |
+
"s_r": 3.536
|
| 160 |
},
|
| 161 |
"n_words": 49,
|
| 162 |
+
"rmse_pitch_st": 1.18,
|
| 163 |
+
"rmse_logdur": 0.169,
|
| 164 |
"energy": {
|
| 165 |
+
"C": 0.555,
|
| 166 |
+
"B": -0.52,
|
| 167 |
"mu": -4.0,
|
| 168 |
"s_l": 6.0,
|
| 169 |
"s_r": 10.0
|
| 170 |
},
|
| 171 |
+
"rmse_energy": 0.159,
|
| 172 |
"pitch_from": "pooled (style shape does not fit)"
|
| 173 |
},
|
| 174 |
"sad": {
|
| 175 |
"pitch": {
|
| 176 |
+
"A": 2.274,
|
| 177 |
+
"mu": 1.57,
|
| 178 |
+
"s_l": 2.161,
|
| 179 |
+
"s_r": 2.227,
|
| 180 |
+
"R": 1.032,
|
| 181 |
+
"k_r": 1.344,
|
| 182 |
"tau": 1.5
|
| 183 |
},
|
| 184 |
"dur": {
|
| 185 |
+
"C": 0.026,
|
| 186 |
+
"B": 0.317,
|
| 187 |
+
"mu": -1.588,
|
| 188 |
"s_l": 2.5,
|
| 189 |
+
"s_r": 3.536
|
| 190 |
},
|
| 191 |
"n_words": 52,
|
| 192 |
+
"rmse_pitch_st": 0.51,
|
| 193 |
+
"rmse_logdur": 0.11,
|
| 194 |
"energy": {
|
| 195 |
+
"C": 0.526,
|
| 196 |
+
"B": -0.455,
|
| 197 |
"mu": -4.0,
|
| 198 |
"s_l": 6.0,
|
| 199 |
"s_r": 10.0
|
| 200 |
},
|
| 201 |
+
"rmse_energy": 0.141
|
| 202 |
}
|
| 203 |
},
|
| 204 |
"energy": {
|
| 205 |
+
"C": 0.631,
|
| 206 |
+
"B": -0.542,
|
| 207 |
"mu": -4.0,
|
| 208 |
"s_l": 6.0,
|
| 209 |
"s_r": 10.0
|
| 210 |
},
|
| 211 |
+
"rmse_energy": 0.147,
|
| 212 |
"source": "human marks"
|
| 213 |
}
|
encoder.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 25515134
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eed0ab453adb16e8f91f8ba7bdedc8137a47c1ab4135f42a6609488cbf31ad43
|
| 3 |
size 25515134
|
predictor.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 31054553
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d8d8cd8f019a00cbf96a821b1d28af845bc26f6d894c0a5cff1d92b1ab4961d
|
| 3 |
size 31054553
|
prominence.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4769869
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46df9b00a1fd1747ce63722a5b50495ea0a91adc086cf01a6d23ae21815538f3
|
| 3 |
size 4769869
|
runtime.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
| 7 |
"predictor": "predictor.onnx",
|
| 8 |
"prominence": "prominence.onnx",
|
| 9 |
"dp_cond": "dp_cond.npz",
|
|
|
|
| 10 |
"template": "emphasis_template.json"
|
| 11 |
},
|
| 12 |
"config": "config.json",
|
|
@@ -16,12 +17,12 @@
|
|
| 16 |
"text_channels": 192,
|
| 17 |
"predictor": {
|
| 18 |
"stats": {
|
| 19 |
-
"lf0_mean": 5.
|
| 20 |
-
"lf0_std": 0.
|
| 21 |
-
"energy_mean": 2.
|
| 22 |
-
"energy_std": 1.
|
| 23 |
-
"tilt_mean": -4.
|
| 24 |
-
"tilt_std": 2.
|
| 25 |
"tilt_voiced": true,
|
| 26 |
"f0_range": [
|
| 27 |
108.26672640713778,
|
|
@@ -30,8 +31,8 @@
|
|
| 30 |
"sample_rate": 22050,
|
| 31 |
"hop": 256,
|
| 32 |
"n_utts": 2254,
|
| 33 |
-
"logdur_mean": 1.
|
| 34 |
-
"logdur_std": 0.
|
| 35 |
},
|
| 36 |
"styles": [
|
| 37 |
"confused",
|
|
@@ -66,6 +67,24 @@
|
|
| 66 |
"prominence_threshold": 0.5,
|
| 67 |
"pp_steps": 16,
|
| 68 |
"unvoiced_styles": [],
|
| 69 |
-
"voicing_fix": true
|
| 70 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
}
|
|
|
|
| 7 |
"predictor": "predictor.onnx",
|
| 8 |
"prominence": "prominence.onnx",
|
| 9 |
"dp_cond": "dp_cond.npz",
|
| 10 |
+
"speakers": "speakers.npz",
|
| 11 |
"template": "emphasis_template.json"
|
| 12 |
},
|
| 13 |
"config": "config.json",
|
|
|
|
| 17 |
"text_channels": 192,
|
| 18 |
"predictor": {
|
| 19 |
"stats": {
|
| 20 |
+
"lf0_mean": 5.489567279815674,
|
| 21 |
+
"lf0_std": 0.23982250690460205,
|
| 22 |
+
"energy_mean": 2.288287401199341,
|
| 23 |
+
"energy_std": 1.367926001548767,
|
| 24 |
+
"tilt_mean": -4.491642475128174,
|
| 25 |
+
"tilt_std": 2.357414484024048,
|
| 26 |
"tilt_voiced": true,
|
| 27 |
"f0_range": [
|
| 28 |
108.26672640713778,
|
|
|
|
| 31 |
"sample_rate": 22050,
|
| 32 |
"hop": 256,
|
| 33 |
"n_utts": 2254,
|
| 34 |
+
"logdur_mean": 1.241659970991739,
|
| 35 |
+
"logdur_std": 0.5592681957696038
|
| 36 |
},
|
| 37 |
"styles": [
|
| 38 |
"confused",
|
|
|
|
| 67 |
"prominence_threshold": 0.5,
|
| 68 |
"pp_steps": 16,
|
| 69 |
"unvoiced_styles": [],
|
| 70 |
+
"voicing_fix": true,
|
| 71 |
+
"style_gain_db": {},
|
| 72 |
+
"pitch_ceiling": {
|
| 73 |
+
"confused": 1.485,
|
| 74 |
+
"default": 1.774,
|
| 75 |
+
"enunciated": 1.412,
|
| 76 |
+
"happy": 2.063,
|
| 77 |
+
"laughing": 1.99,
|
| 78 |
+
"sad": 1.075
|
| 79 |
+
},
|
| 80 |
+
"stress_max_frames": 9.0
|
| 81 |
+
},
|
| 82 |
+
"speakers": [
|
| 83 |
+
"confused",
|
| 84 |
+
"default",
|
| 85 |
+
"enunciated",
|
| 86 |
+
"happy",
|
| 87 |
+
"laughing",
|
| 88 |
+
"sad"
|
| 89 |
+
]
|
| 90 |
}
|
samples/confused_xvits.mp3
CHANGED
|
Binary files a/samples/confused_xvits.mp3 and b/samples/confused_xvits.mp3 differ
|
|
|
samples/default_xvits.mp3
CHANGED
|
Binary files a/samples/default_xvits.mp3 and b/samples/default_xvits.mp3 differ
|
|
|
samples/emphasis_0.mp3
CHANGED
|
Binary files a/samples/emphasis_0.mp3 and b/samples/emphasis_0.mp3 differ
|
|
|
samples/emphasis_1.mp3
CHANGED
|
Binary files a/samples/emphasis_1.mp3 and b/samples/emphasis_1.mp3 differ
|
|
|
samples/emphasis_2.mp3
CHANGED
|
Binary files a/samples/emphasis_2.mp3 and b/samples/emphasis_2.mp3 differ
|
|
|
samples/emphasis_3.mp3
CHANGED
|
Binary files a/samples/emphasis_3.mp3 and b/samples/emphasis_3.mp3 differ
|
|
|
samples/enunciated_xvits.mp3
CHANGED
|
Binary files a/samples/enunciated_xvits.mp3 and b/samples/enunciated_xvits.mp3 differ
|
|
|
samples/happy_xvits.mp3
CHANGED
|
Binary files a/samples/happy_xvits.mp3 and b/samples/happy_xvits.mp3 differ
|
|
|
samples/laughing_xvits.mp3
CHANGED
|
Binary files a/samples/laughing_xvits.mp3 and b/samples/laughing_xvits.mp3 differ
|
|
|
samples/sad_xvits.mp3
CHANGED
|
Binary files a/samples/sad_xvits.mp3 and b/samples/sad_xvits.mp3 differ
|
|
|
samples/same_confused_xvits.mp3
CHANGED
|
Binary files a/samples/same_confused_xvits.mp3 and b/samples/same_confused_xvits.mp3 differ
|
|
|
samples/same_default_xvits.mp3
CHANGED
|
Binary files a/samples/same_default_xvits.mp3 and b/samples/same_default_xvits.mp3 differ
|
|
|
samples/same_enunciated_xvits.mp3
CHANGED
|
Binary files a/samples/same_enunciated_xvits.mp3 and b/samples/same_enunciated_xvits.mp3 differ
|
|
|
samples/same_happy_xvits.mp3
CHANGED
|
Binary files a/samples/same_happy_xvits.mp3 and b/samples/same_happy_xvits.mp3 differ
|
|
|
samples/same_laughing_xvits.mp3
CHANGED
|
Binary files a/samples/same_laughing_xvits.mp3 and b/samples/same_laughing_xvits.mp3 differ
|
|
|
samples/same_sad_xvits.mp3
CHANGED
|
Binary files a/samples/same_sad_xvits.mp3 and b/samples/same_sad_xvits.mp3 differ
|
|
|
samples/v0.2/confused_xvits.mp3
ADDED
|
Binary file (42.4 kB). View file
|
|
|
samples/v0.2/default_xvits.mp3
ADDED
|
Binary file (26.7 kB). View file
|
|
|
samples/v0.2/emphasis_0.mp3
ADDED
|
Binary file (25.1 kB). View file
|
|
|
samples/v0.2/emphasis_1.mp3
ADDED
|
Binary file (25.7 kB). View file
|
|
|
samples/v0.2/emphasis_2.mp3
ADDED
|
Binary file (26.1 kB). View file
|
|
|
samples/v0.2/emphasis_3.mp3
ADDED
|
Binary file (27 kB). View file
|
|
|
samples/v0.2/enunciated_xvits.mp3
ADDED
|
Binary file (72.5 kB). View file
|
|
|
samples/v0.2/happy_xvits.mp3
ADDED
|
Binary file (26.4 kB). View file
|
|
|
samples/v0.2/laughing_xvits.mp3
ADDED
|
Binary file (39.5 kB). View file
|
|
|
samples/v0.2/sad_xvits.mp3
ADDED
|
Binary file (61.2 kB). View file
|
|
|
samples/v0.2/same_confused_xvits.mp3
ADDED
|
Binary file (28.6 kB). View file
|
|
|
samples/v0.2/same_default_xvits.mp3
ADDED
|
Binary file (21 kB). View file
|
|
|
samples/v0.2/same_enunciated_xvits.mp3
ADDED
|
Binary file (30.1 kB). View file
|
|
|
samples/v0.2/same_happy_xvits.mp3
ADDED
|
Binary file (22.3 kB). View file
|
|
|
samples/v0.2/same_laughing_xvits.mp3
ADDED
|
Binary file (28.9 kB). View file
|
|
|
samples/v0.2/same_sad_xvits.mp3
ADDED
|
Binary file (23.6 kB). View file
|
|
|
speakers.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7cac87aaee1e876832e15df00ea3a83a4a2986221e0a954fc5412e87bdef0b37
|
| 3 |
+
size 17392
|