cortexist commited on
Commit
1ecf9b6
·
verified ·
1 Parent(s): 823a632

Publish Agent Voice Piper ONNX and streaming graphs

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ samples/hello.wav filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ pipeline_tag: text-to-speech
5
+ base_model: rhasspy/piper-voices
6
+ base_model_relation: finetune
7
+ tags:
8
+ - piper
9
+ - onnx
10
+ - vits
11
+ - streaming
12
+ - en-us
13
+ ---
14
+
15
+ # Agent Voice — Piper ONNX
16
+
17
+ Agent Voice is a single-speaker, US English Piper/VITS voice for interactive agents. This release includes the standard combined ONNX model and the encoder/decoder graphs used by Piper's streaming synthesis path. It is the 24,000-update checkpoint selected by listening for the Cortexist voice classroom; it is not an LLM or an automatic speech recognition model.
18
+
19
+ [Listen to a generated sample](samples/hello.wav).
20
+
21
+ | File | Purpose |
22
+ | --- | --- |
23
+ | [`en_US-agent-voice.onnx`](en_US-agent-voice.onnx) | Complete voice model for standard Piper synthesis |
24
+ | [`en_US-agent-voice.onnx.json`](en_US-agent-voice.onnx.json) | Piper configuration, required beside the complete model |
25
+ | [`en_US-agent-voice.enc.onnx`](en_US-agent-voice.enc.onnx) | Text encoder, duration predictor, and flow for streaming |
26
+ | [`en_US-agent-voice.dec.onnx`](en_US-agent-voice.dec.onnx) | Chunked waveform decoder for streaming |
27
+ | [`SHA256SUMS`](SHA256SUMS) | Checksums for the uploaded files |
28
+
29
+ Keep all four model files in the same directory. The paired `.enc.onnx` and `.dec.onnx` files are derived from the complete model; they are not separately trained voices. Audio is mono, 22,050 Hz, and uses eSpeak NG `en-us` phonemization. The model has one speaker.
30
+
31
+ ## Use
32
+
33
+ Standard Piper can synthesize from the combined model and its adjacent JSON:
34
+
35
+ ```bash
36
+ piper --model en_US-agent-voice.onnx --output-file hello.wav "Hello from Agent Voice."
37
+ ```
38
+
39
+ Streaming synthesis requires the implementation in [Piper pull request #302](https://github.com/OHF-Voice/piper1-gpl/pull/302), which is open as of this release. Until that code is available in your Piper installation, the split files alone will not enable `--stream`. With a Piper build containing the PR:
40
+
41
+ ```bash
42
+ piper --model en_US-agent-voice.onnx --output-raw --stream \
43
+ "Hello from Agent Voice." > hello.s16le
44
+ ```
45
+
46
+ The raw output is signed 16-bit mono PCM at 22,050 Hz. For Python applications, load the same combined path with `PiperVoice.load("en_US-agent-voice.onnx", streaming=True)` and iterate over `synthesize_stream(text)`; Piper finds the adjacent split graphs automatically.
47
+
48
+ The split encoder processes a whole sentence first, retaining its context and phoneme durations. The decoder then emits overlapping waveform chunks, cropping their edges before playback. This can reduce time to first audio, but it does not accept partial text or change the trained voice weights. Streaming omits whole-sentence peak normalization; use application or system gain as needed. The PR explains the implementation and its separate latency measurements.
49
+
50
+ ## Training and validation
51
+
52
+ The voice was fine-tuned from the [Piper Joe medium voice](https://huggingface.co/rhasspy/piper-voices/tree/main/en/en_US/joe/medium). The training corpus began with 1,177 recordings: speech synthesized with VibeVoice-Large from a cleared voice reference, plus six retained original excerpts. After the project's transcript and audio review, 988 recordings (about 1.70 hours) were retained for this training run. The original reference and training recordings are not included in this repository. The project owner confirmed clearance to release the trained voice.
53
+
54
+ The selected checkpoint completed 24,000 paired generator/discriminator updates. The complete ONNX file is an exact copy of the validated export; the split graphs were generated from it. Local checks covered PyTorch/ONNX numerical agreement, combined/split agreement, chunked synthesis, phoneme timing, empty input and the Piper streaming output protocol. These checks establish export compatibility on the tested runtime, not a universal voice-quality rating or a speed guarantee.
55
+
56
+ The Joe source voice's [model card](https://huggingface.co/rhasspy/piper-voices/blob/main/en/en_US/joe/medium/MODEL_CARD) identifies its dataset as CC0. That source-dataset label is not a license claim for this fine-tuned release. No downstream license for these fine-tuned weights is specified in this card.
57
+
58
+ This voice is a research release. Its naming does not imply affiliation with any fictional character, performer, or rights holder.
SHA256SUMS ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ 1ca3586ef25fa1f4576f1c9e47f3b6d6ddcb4391ebc47024f0c2d7deac98e4d1 README.md
2
+ 948db990f56930d89b127d0766a6fb344b0b050a8b14d4af078f3394fe7b9bf7 en_US-agent-voice.dec.onnx
3
+ 0b7cbc009120190c43bd4c0198c106975e05b712ea91f3ccfd57a8e9fc724b49 en_US-agent-voice.enc.onnx
4
+ 0a48e617cd8bf82b9442797dbde47647a9a0432f0c1859fd4daf04fc1cac5fde en_US-agent-voice.onnx
5
+ d6c945e7c25e1abf852cfee963f27c997366e82db06e9cc6603d47faab80ee6a en_US-agent-voice.onnx.json
6
+ e67c5a6a69a7338776992ffade4e1f3bab908c88f7fed7f3995de02a77192a21 samples/hello.wav
en_US-agent-voice.dec.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:948db990f56930d89b127d0766a6fb344b0b050a8b14d4af078f3394fe7b9bf7
3
+ size 6665370
en_US-agent-voice.enc.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b7cbc009120190c43bd4c0198c106975e05b712ea91f3ccfd57a8e9fc724b49
3
+ size 56851090
en_US-agent-voice.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a48e617cd8bf82b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
 
 
 
1
+ {
2
+ "audio": {
3
+ "sample_rate": 22050
4
+ },
5
+ "espeak": {
6
+ "voice": "en-us"
7
+ },
8
+ "inference": {
9
+ "noise_scale": 0.667,
10
+ "length_scale": 1,
11
+ "noise_w": 0.8
12
+ },
13
+ "phoneme_type": "espeak",
14
+ "phoneme_map": {},
15
+ "phoneme_id_map": {
16
+ "_": [
17
+ 0
18
+ ],
19
+ "^": [
20
+ 1
21
+ ],
22
+ "$": [
23
+ 2
24
+ ],
25
+ " ": [
26
+ 3
27
+ ],
28
+ "!": [
29
+ 4
30
+ ],
31
+ "'": [
32
+ 5
33
+ ],
34
+ "(": [
35
+ 6
36
+ ],
37
+ ")": [
38
+ 7
39
+ ],
40
+ ",": [
41
+ 8
42
+ ],
43
+ "-": [
44
+ 9
45
+ ],
46
+ ".": [
47
+ 10
48
+ ],
49
+ ":": [
50
+ 11
51
+ ],
52
+ ";": [
53
+ 12
54
+ ],
55
+ "?": [
56
+ 13
57
+ ],
58
+ "a": [
59
+ 14
60
+ ],
61
+ "b": [
62
+ 15
63
+ ],
64
+ "c": [
65
+ 16
66
+ ],
67
+ "d": [
68
+ 17
69
+ ],
70
+ "e": [
71
+ 18
72
+ ],
73
+ "f": [
74
+ 19
75
+ ],
76
+ "h": [
77
+ 20
78
+ ],
79
+ "i": [
80
+ 21
81
+ ],
82
+ "j": [
83
+ 22
84
+ ],
85
+ "k": [
86
+ 23
87
+ ],
88
+ "l": [
89
+ 24
90
+ ],
91
+ "m": [
92
+ 25
93
+ ],
94
+ "n": [
95
+ 26
96
+ ],
97
+ "o": [
98
+ 27
99
+ ],
100
+ "p": [
101
+ 28
102
+ ],
103
+ "q": [
104
+ 29
105
+ ],
106
+ "r": [
107
+ 30
108
+ ],
109
+ "s": [
110
+ 31
111
+ ],
112
+ "t": [
113
+ 32
114
+ ],
115
+ "u": [
116
+ 33
117
+ ],
118
+ "v": [
119
+ 34
120
+ ],
121
+ "w": [
122
+ 35
123
+ ],
124
+ "x": [
125
+ 36
126
+ ],
127
+ "y": [
128
+ 37
129
+ ],
130
+ "z": [
131
+ 38
132
+ ],
133
+ "\u00e6": [
134
+ 39
135
+ ],
136
+ "\u00e7": [
137
+ 40
138
+ ],
139
+ "\u00f0": [
140
+ 41
141
+ ],
142
+ "\u00f8": [
143
+ 42
144
+ ],
145
+ "\u0127": [
146
+ 43
147
+ ],
148
+ "\u014b": [
149
+ 44
150
+ ],
151
+ "\u0153": [
152
+ 45
153
+ ],
154
+ "\u01c0": [
155
+ 46
156
+ ],
157
+ "\u01c1": [
158
+ 47
159
+ ],
160
+ "\u01c2": [
161
+ 48
162
+ ],
163
+ "\u01c3": [
164
+ 49
165
+ ],
166
+ "\u0250": [
167
+ 50
168
+ ],
169
+ "\u0251": [
170
+ 51
171
+ ],
172
+ "\u0252": [
173
+ 52
174
+ ],
175
+ "\u0253": [
176
+ 53
177
+ ],
178
+ "\u0254": [
179
+ 54
180
+ ],
181
+ "\u0255": [
182
+ 55
183
+ ],
184
+ "\u0256": [
185
+ 56
186
+ ],
187
+ "\u0257": [
188
+ 57
189
+ ],
190
+ "\u0258": [
191
+ 58
192
+ ],
193
+ "\u0259": [
194
+ 59
195
+ ],
196
+ "\u025a": [
197
+ 60
198
+ ],
199
+ "\u025b": [
200
+ 61
201
+ ],
202
+ "\u025c": [
203
+ 62
204
+ ],
205
+ "\u025e": [
206
+ 63
207
+ ],
208
+ "\u025f": [
209
+ 64
210
+ ],
211
+ "\u0260": [
212
+ 65
213
+ ],
214
+ "\u0261": [
215
+ 66
216
+ ],
217
+ "\u0262": [
218
+ 67
219
+ ],
220
+ "\u0263": [
221
+ 68
222
+ ],
223
+ "\u0264": [
224
+ 69
225
+ ],
226
+ "\u0265": [
227
+ 70
228
+ ],
229
+ "\u0266": [
230
+ 71
231
+ ],
232
+ "\u0267": [
233
+ 72
234
+ ],
235
+ "\u0268": [
236
+ 73
237
+ ],
238
+ "\u026a": [
239
+ 74
240
+ ],
241
+ "\u026b": [
242
+ 75
243
+ ],
244
+ "\u026c": [
245
+ 76
246
+ ],
247
+ "\u026d": [
248
+ 77
249
+ ],
250
+ "\u026e": [
251
+ 78
252
+ ],
253
+ "\u026f": [
254
+ 79
255
+ ],
256
+ "\u0270": [
257
+ 80
258
+ ],
259
+ "\u0271": [
260
+ 81
261
+ ],
262
+ "\u0272": [
263
+ 82
264
+ ],
265
+ "\u0273": [
266
+ 83
267
+ ],
268
+ "\u0274": [
269
+ 84
270
+ ],
271
+ "\u0275": [
272
+ 85
273
+ ],
274
+ "\u0276": [
275
+ 86
276
+ ],
277
+ "\u0278": [
278
+ 87
279
+ ],
280
+ "\u0279": [
281
+ 88
282
+ ],
283
+ "\u027a": [
284
+ 89
285
+ ],
286
+ "\u027b": [
287
+ 90
288
+ ],
289
+ "\u027d": [
290
+ 91
291
+ ],
292
+ "\u027e": [
293
+ 92
294
+ ],
295
+ "\u0280": [
296
+ 93
297
+ ],
298
+ "\u0281": [
299
+ 94
300
+ ],
301
+ "\u0282": [
302
+ 95
303
+ ],
304
+ "\u0283": [
305
+ 96
306
+ ],
307
+ "\u0284": [
308
+ 97
309
+ ],
310
+ "\u0288": [
311
+ 98
312
+ ],
313
+ "\u0289": [
314
+ 99
315
+ ],
316
+ "\u028a": [
317
+ 100
318
+ ],
319
+ "\u028b": [
320
+ 101
321
+ ],
322
+ "\u028c": [
323
+ 102
324
+ ],
325
+ "\u028d": [
326
+ 103
327
+ ],
328
+ "\u028e": [
329
+ 104
330
+ ],
331
+ "\u028f": [
332
+ 105
333
+ ],
334
+ "\u0290": [
335
+ 106
336
+ ],
337
+ "\u0291": [
338
+ 107
339
+ ],
340
+ "\u0292": [
341
+ 108
342
+ ],
343
+ "\u0294": [
344
+ 109
345
+ ],
346
+ "\u0295": [
347
+ 110
348
+ ],
349
+ "\u0298": [
350
+ 111
351
+ ],
352
+ "\u0299": [
353
+ 112
354
+ ],
355
+ "\u029b": [
356
+ 113
357
+ ],
358
+ "\u029c": [
359
+ 114
360
+ ],
361
+ "\u029d": [
362
+ 115
363
+ ],
364
+ "\u029f": [
365
+ 116
366
+ ],
367
+ "\u02a1": [
368
+ 117
369
+ ],
370
+ "\u02a2": [
371
+ 118
372
+ ],
373
+ "\u02b2": [
374
+ 119
375
+ ],
376
+ "\u02c8": [
377
+ 120
378
+ ],
379
+ "\u02cc": [
380
+ 121
381
+ ],
382
+ "\u02d0": [
383
+ 122
384
+ ],
385
+ "\u02d1": [
386
+ 123
387
+ ],
388
+ "\u02de": [
389
+ 124
390
+ ],
391
+ "\u03b2": [
392
+ 125
393
+ ],
394
+ "\u03b8": [
395
+ 126
396
+ ],
397
+ "\u03c7": [
398
+ 127
399
+ ],
400
+ "\u1d7b": [
401
+ 128
402
+ ],
403
+ "\u2c71": [
404
+ 129
405
+ ],
406
+ "0": [
407
+ 130
408
+ ],
409
+ "1": [
410
+ 131
411
+ ],
412
+ "2": [
413
+ 132
414
+ ],
415
+ "3": [
416
+ 133
417
+ ],
418
+ "4": [
419
+ 134
420
+ ],
421
+ "5": [
422
+ 135
423
+ ],
424
+ "6": [
425
+ 136
426
+ ],
427
+ "7": [
428
+ 137
429
+ ],
430
+ "8": [
431
+ 138
432
+ ],
433
+ "9": [
434
+ 139
435
+ ],
436
+ "\u0327": [
437
+ 140
438
+ ],
439
+ "\u0303": [
440
+ 141
441
+ ],
442
+ "\u032a": [
443
+ 142
444
+ ],
445
+ "\u032f": [
446
+ 143
447
+ ],
448
+ "\u0329": [
449
+ 144
450
+ ],
451
+ "\u02b0": [
452
+ 145
453
+ ],
454
+ "\u02e4": [
455
+ 146
456
+ ],
457
+ "\u03b5": [
458
+ 147
459
+ ],
460
+ "\u2193": [
461
+ 148
462
+ ],
463
+ "#": [
464
+ 149
465
+ ],
466
+ "\"": [
467
+ 150
468
+ ]
469
+ },
470
+ "num_symbols": 256,
471
+ "num_speakers": 1,
472
+ "speaker_id_map": {},
473
+ "piper_version": "1.0.0",
474
+ "dataset": "agent_voice"
475
+ }
samples/hello.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e67c5a6a69a7338776992ffade4e1f3bab908c88f7fed7f3995de02a77192a21
3
+ size 151596