Release stable long-form recovery checkpoint
Browse files- README.md +41 -18
- USAGE.md +23 -4
- config.json +3 -0
- pytorch_model.bin +2 -2
- release_metadata.json +39 -12
README.md
CHANGED
|
@@ -108,7 +108,23 @@ speaker embedding for every chunk, applies punctuation-aware pauses, and can
|
|
| 108 |
set a minimum duration from the target speaking rate:
|
| 109 |
|
| 110 |
```bash
|
| 111 |
-
python scripts/generate_tts.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
```
|
| 113 |
|
| 114 |
## Evaluation
|
|
@@ -128,23 +144,29 @@ reaches 6.25 chars/sec and early-stop classification exceeds 50%. Controlled
|
|
| 128 |
pace is therefore part of the current production contract, not an optional
|
| 129 |
benchmark optimization.
|
| 130 |
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
|
| 137 |
-
|
|
| 138 |
-
|
|
| 139 |
-
|
|
| 140 |
-
|
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
|
| 149 |
## Limitations
|
| 150 |
|
|
@@ -157,6 +179,7 @@ these production metrics.
|
|
| 157 |
target pace, stop hysteresis, and chunking contract; inspect important output.
|
| 158 |
- Raw reference tokens remain a separately gated research backend.
|
| 159 |
- Very long passages should be chunked to avoid stop-token and prosody drift.
|
|
|
|
| 160 |
- Generated speech may be incorrect; do not use it as a real-world notification
|
| 161 |
without human review.
|
| 162 |
|
|
|
|
| 108 |
set a minimum duration from the target speaking rate:
|
| 109 |
|
| 110 |
```bash
|
| 111 |
+
python scripts/generate_tts.py \
|
| 112 |
+
--checkpoint /path/to/model-snapshot \
|
| 113 |
+
--mode speaker-reference-audio-only \
|
| 114 |
+
--speaker-reference-wav /path/to/rights-cleared-reference.wav \
|
| 115 |
+
--reference-audio-conditioning speaker-embedding \
|
| 116 |
+
--text-file long_text.txt \
|
| 117 |
+
--chunk-chars 80 \
|
| 118 |
+
--min-chunk-chars 12 \
|
| 119 |
+
--target-chars-per-sec 4.0 \
|
| 120 |
+
--stop-threshold 0.65 \
|
| 121 |
+
--stop-consecutive 2 \
|
| 122 |
+
--crossfade-ms 80 \
|
| 123 |
+
--chunk-rms-match-db 4 \
|
| 124 |
+
--chunk-edge-fade-ms 80 \
|
| 125 |
+
--continuation-context-sec 0 \
|
| 126 |
+
--no-retry-badcase \
|
| 127 |
+
--out long.wav
|
| 128 |
```
|
| 129 |
|
| 130 |
## Evaluation
|
|
|
|
| 144 |
pace is therefore part of the current production contract, not an optional
|
| 145 |
benchmark optimization.
|
| 146 |
|
| 147 |
+
The selected long-form contract was repeated in four independent processes,
|
| 148 |
+
each with three multi-sentence texts and five request seeds. It uses
|
| 149 |
+
80-character chunks, 4.0 target chars/sec, no retry selection, one reference
|
| 150 |
+
embedding per request, and no generated-audio continuation context.
|
| 151 |
+
|
| 152 |
+
| Metric | Four-run range |
|
| 153 |
+
| --- | ---: |
|
| 154 |
+
| CER | 9.40%-11.90% |
|
| 155 |
+
| WER | 11.13%-13.14% |
|
| 156 |
+
| Median / P95 chars per second | 3.87-3.89 / 3.99 |
|
| 157 |
+
| Duration CV across seeds | 1.31%-2.38% |
|
| 158 |
+
| Across-text speaker similarity | 0.759-0.771 |
|
| 159 |
+
| Reference similarity P10 | 0.547-0.557 |
|
| 160 |
+
| First-to-last sentence speaker drop P95 | 0.017-0.030 |
|
| 161 |
+
| Sentence-final truncation / ASR outliers | 0 / 0 |
|
| 162 |
+
|
| 163 |
+
A separate 12-text, one-seed stress slice reached 14.64%-15.19% CER with no
|
| 164 |
+
final truncation; one ASCII-and-numeric-heavy item was an ASR outlier. These
|
| 165 |
+
metrics use a corrected text-normalization contract and are not directly
|
| 166 |
+
comparable to older long-form reports. Feeding generated audio into the next
|
| 167 |
+
chunk consistently worsened CER, pace variance, and speaker drift, so
|
| 168 |
+
`--continuation-context-sec 0` remains the production default. Raw reference
|
| 169 |
+
tokens are not represented by these production metrics.
|
| 170 |
|
| 171 |
## Limitations
|
| 172 |
|
|
|
|
| 179 |
target pace, stop hysteresis, and chunking contract; inspect important output.
|
| 180 |
- Raw reference tokens remain a separately gated research backend.
|
| 181 |
- Very long passages should be chunked to avoid stop-token and prosody drift.
|
| 182 |
+
- Generated-audio continuation context is experimental and disabled by default.
|
| 183 |
- Generated speech may be incorrect; do not use it as a real-world notification
|
| 184 |
without human review.
|
| 185 |
|
USAGE.md
CHANGED
|
@@ -104,22 +104,41 @@ sf.write("streaming.wav", wav.numpy(), model.sample_rate)
|
|
| 104 |
Long text:
|
| 105 |
|
| 106 |
```bash
|
| 107 |
-
python scripts/generate_tts.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
```
|
| 109 |
|
| 110 |
This path extracts the windowed speaker embedding once and reuses it for every
|
| 111 |
-
chunk.
|
| 112 |
-
|
|
|
|
|
|
|
| 113 |
|
| 114 |
Recommended generation defaults:
|
| 115 |
|
| 116 |
- `cfg_value=2.0`
|
| 117 |
- `inference_timesteps=10`
|
| 118 |
-
- `retry_badcase=
|
| 119 |
- `retry_badcase_ratio_threshold=6.0` so retry detection is not a pace cap
|
| 120 |
- `stop_threshold=0.65`, `stop_consecutive=2` for offline generation
|
| 121 |
- `max_len=2000` unless a longer chunk is intentionally needed
|
| 122 |
- `target-chars-per-sec=4.0` for controlled long-form chunking
|
|
|
|
| 123 |
- Reference wavs used to extract speaker embeddings should be at least 3 seconds.
|
| 124 |
|
| 125 |
Safety:
|
|
|
|
| 104 |
Long text:
|
| 105 |
|
| 106 |
```bash
|
| 107 |
+
python scripts/generate_tts.py \
|
| 108 |
+
--checkpoint /path/to/model-snapshot \
|
| 109 |
+
--mode speaker-reference-audio-only \
|
| 110 |
+
--speaker-reference-wav /path/to/rights-cleared-reference.wav \
|
| 111 |
+
--reference-audio-conditioning speaker-embedding \
|
| 112 |
+
--text-file long_text.txt \
|
| 113 |
+
--chunk-chars 80 \
|
| 114 |
+
--min-chunk-chars 12 \
|
| 115 |
+
--target-chars-per-sec 4.0 \
|
| 116 |
+
--stop-threshold 0.65 \
|
| 117 |
+
--stop-consecutive 2 \
|
| 118 |
+
--crossfade-ms 80 \
|
| 119 |
+
--chunk-rms-match-db 4 \
|
| 120 |
+
--chunk-edge-fade-ms 80 \
|
| 121 |
+
--continuation-context-sec 0 \
|
| 122 |
+
--no-retry-badcase \
|
| 123 |
+
--out long.wav
|
| 124 |
```
|
| 125 |
|
| 126 |
This path extracts the windowed speaker embedding once and reuses it for every
|
| 127 |
+
chunk. Each request gets a new random seed that is reused inside that request;
|
| 128 |
+
the release gate varies request seeds, so stability does not depend on one
|
| 129 |
+
global fixed seed. `--reference-audio-conditioning tokens` enables the
|
| 130 |
+
raw-reference-token research backend; it is not the production default.
|
| 131 |
|
| 132 |
Recommended generation defaults:
|
| 133 |
|
| 134 |
- `cfg_value=2.0`
|
| 135 |
- `inference_timesteps=10`
|
| 136 |
+
- `retry_badcase=False` for the measured long-form contract
|
| 137 |
- `retry_badcase_ratio_threshold=6.0` so retry detection is not a pace cap
|
| 138 |
- `stop_threshold=0.65`, `stop_consecutive=2` for offline generation
|
| 139 |
- `max_len=2000` unless a longer chunk is intentionally needed
|
| 140 |
- `target-chars-per-sec=4.0` for controlled long-form chunking
|
| 141 |
+
- `continuation-context-sec=0` until generated-context continuation passes its own gate
|
| 142 |
- Reference wavs used to extract speaker embeddings should be at least 3 seconds.
|
| 143 |
|
| 144 |
Safety:
|
config.json
CHANGED
|
@@ -301,6 +301,9 @@
|
|
| 301 |
"ref_audio_summary_tokens": 4,
|
| 302 |
"speaker_step_injection": true,
|
| 303 |
"speaker_step_injection_init": "zero",
|
|
|
|
|
|
|
|
|
|
| 304 |
"audio_start_token": -1,
|
| 305 |
"audio_end_token": -1,
|
| 306 |
"ref_audio_start_token": -1,
|
|
|
|
| 301 |
"ref_audio_summary_tokens": 4,
|
| 302 |
"speaker_step_injection": true,
|
| 303 |
"speaker_step_injection_init": "zero",
|
| 304 |
+
"continuation_adapter_dim": 512,
|
| 305 |
+
"continuation_dit_adapter_dim": 512,
|
| 306 |
+
"continuation_dit_ramp_steps": 2,
|
| 307 |
"audio_start_token": -1,
|
| 308 |
"audio_end_token": -1,
|
| 309 |
"ref_audio_start_token": -1,
|
pytorch_model.bin
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:075a553b0981ca0ce8fe77bd9f802fe253bdf0e9f17fbc88fc2b8ae74ad11d3f
|
| 3 |
+
size 7800079543
|
release_metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"format": "bluemagpie-pretrained",
|
| 3 |
-
"checkpoint": "
|
| 4 |
"release_status": "selected_stable",
|
| 5 |
"files": [
|
| 6 |
"pytorch_model.bin",
|
|
@@ -11,7 +11,7 @@
|
|
| 11 |
],
|
| 12 |
"artifacts": {
|
| 13 |
"pytorch_model.bin": {
|
| 14 |
-
"sha256": "
|
| 15 |
},
|
| 16 |
"audiovae.pth": {
|
| 17 |
"sha256": "cc01a2d5d817910f185d959f8bb23d1a5ab80c9a03b7398ac86d7457cb663332"
|
|
@@ -54,17 +54,44 @@
|
|
| 54 |
"speaker_reference_p95_chars_per_second": 6.25,
|
| 55 |
"speaker_reference_early_stop_rate": 0.5066666666666667
|
| 56 |
},
|
| 57 |
-
"
|
| 58 |
-
"profile": "
|
| 59 |
-
"centroid_target_chars_per_second": 4.2,
|
| 60 |
-
"centroid_cer": 0.27156543786258974,
|
| 61 |
-
"centroid_speaker_across_texts_median": 0.6284434280612252,
|
| 62 |
"speaker_reference_target_chars_per_second": 4.0,
|
| 63 |
-
"
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
}
|
| 69 |
}
|
| 70 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"format": "bluemagpie-pretrained",
|
| 3 |
+
"checkpoint": "step_0000049",
|
| 4 |
"release_status": "selected_stable",
|
| 5 |
"files": [
|
| 6 |
"pytorch_model.bin",
|
|
|
|
| 11 |
],
|
| 12 |
"artifacts": {
|
| 13 |
"pytorch_model.bin": {
|
| 14 |
+
"sha256": "075a553b0981ca0ce8fe77bd9f802fe253bdf0e9f17fbc88fc2b8ae74ad11d3f"
|
| 15 |
},
|
| 16 |
"audiovae.pth": {
|
| 17 |
"sha256": "cc01a2d5d817910f185d959f8bb23d1a5ab80c9a03b7398ac86d7457cb663332"
|
|
|
|
| 54 |
"speaker_reference_p95_chars_per_second": 6.25,
|
| 55 |
"speaker_reference_early_stop_rate": 0.5066666666666667
|
| 56 |
},
|
| 57 |
+
"longform_chunked_80_no_context": {
|
| 58 |
+
"profile": "3_texts_5_seeds_4_independent_processes",
|
|
|
|
|
|
|
|
|
|
| 59 |
"speaker_reference_target_chars_per_second": 4.0,
|
| 60 |
+
"speaker_reference_cer_range": [
|
| 61 |
+
0.094041807917406,
|
| 62 |
+
0.11895441082043953
|
| 63 |
+
],
|
| 64 |
+
"speaker_reference_wer_range": [
|
| 65 |
+
0.11134638441192352,
|
| 66 |
+
0.1314329644985036
|
| 67 |
+
],
|
| 68 |
+
"speaker_reference_median_chars_per_second_range": [
|
| 69 |
+
3.8744796669868715,
|
| 70 |
+
3.8864628820960703
|
| 71 |
+
],
|
| 72 |
+
"speaker_reference_p95_chars_per_second": 3.993055555555556,
|
| 73 |
+
"speaker_reference_duration_cv_range": [
|
| 74 |
+
0.013068433930598339,
|
| 75 |
+
0.023848728609339148
|
| 76 |
+
],
|
| 77 |
+
"speaker_reference_across_texts_range": [
|
| 78 |
+
0.7589647054672242,
|
| 79 |
+
0.7714100420475006
|
| 80 |
+
],
|
| 81 |
+
"speaker_reference_p10_range": [
|
| 82 |
+
0.5465801358222961,
|
| 83 |
+
0.5569551467895508
|
| 84 |
+
],
|
| 85 |
+
"speaker_reference_first_last_sentence_drop_p95_range": [
|
| 86 |
+
0.01657727062702179,
|
| 87 |
+
0.029698908329010003
|
| 88 |
+
],
|
| 89 |
+
"sentence_final_truncation_rate": 0.0,
|
| 90 |
+
"asr_outlier_rate": 0.0,
|
| 91 |
+
"chunk_chars": 80,
|
| 92 |
+
"continuation_context_sec": 0.0,
|
| 93 |
+
"fixed_seed_across_requests": false,
|
| 94 |
+
"random_request_seed_reused_across_chunks": true
|
| 95 |
}
|
| 96 |
}
|
| 97 |
}
|