NERDDISCO commited on
Commit
ee603ee
·
0 Parent(s):

kale-tts-1

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +58 -0
  2. LICENSE +202 -0
  3. README.md +410 -0
  4. SHA256SUMS +29 -0
  5. THIRD_PARTY_NOTICES.md +111 -0
  6. checkpoints/README.md +13 -0
  7. checkpoints/nano/sound_side_flrd.pt +3 -0
  8. checkpoints/nano/sound_side_t10r.pt +3 -0
  9. checkpoints/nano/student_text_side_flt.pt +3 -0
  10. checkpoints/nano/student_text_side_t10t2.pt +3 -0
  11. checkpoints/packs/d03.pt +3 -0
  12. checkpoints/packs/d13.pt +3 -0
  13. checkpoints/packs/f06.pt +3 -0
  14. checkpoints/packs/h013f.pt +3 -0
  15. checkpoints/packs/m3.pt +3 -0
  16. checkpoints/packs/s057b.pt +3 -0
  17. checkpoints/packs/t071.pt +3 -0
  18. checkpoints/packs/w165.pt +3 -0
  19. checkpoints/packs/w602.pt +3 -0
  20. checkpoints/packs/x328.pt +3 -0
  21. checkpoints/teacher/kokoro_teacher.pth +3 -0
  22. config.json +6 -0
  23. diagrams/benches.png +3 -0
  24. diagrams/birth.png +3 -0
  25. diagrams/data.png +3 -0
  26. diagrams/datacontents.png +3 -0
  27. diagrams/datamade.png +3 -0
  28. diagrams/demo-nano.png +3 -0
  29. diagrams/demo-tiny.png +3 -0
  30. diagrams/extend.png +3 -0
  31. diagrams/flow-nano.png +3 -0
  32. diagrams/flow-tiny.png +3 -0
  33. diagrams/header-base.png +3 -0
  34. diagrams/header-data.png +3 -0
  35. diagrams/header-nano.png +3 -0
  36. diagrams/header-tiny.png +3 -0
  37. diagrams/madeof-nano.png +3 -0
  38. diagrams/madeof-tiny.png +3 -0
  39. diagrams/measure.png +3 -0
  40. diagrams/phonemes.png +3 -0
  41. diagrams/soundside-nano.png +3 -0
  42. diagrams/soundside.png +3 -0
  43. diagrams/textside-nano.png +3 -0
  44. diagrams/textside.png +3 -0
  45. diagrams/voices.png +3 -0
  46. export-check-model.fp32.json +25 -0
  47. export-check-model.json +57 -0
  48. export-check-whisper.json +76 -0
  49. frontend/check_homographs.mjs +32 -0
  50. frontend/dizione/LICENSE +202 -0
.gitattributes ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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
+ diagrams/benches.png filter=lfs diff=lfs merge=lfs -text
37
+ diagrams/data.png filter=lfs diff=lfs merge=lfs -text
38
+ diagrams/extend.png filter=lfs diff=lfs merge=lfs -text
39
+ diagrams/phonemes.png filter=lfs diff=lfs merge=lfs -text
40
+ diagrams/soundside.png filter=lfs diff=lfs merge=lfs -text
41
+ diagrams/textside.png filter=lfs diff=lfs merge=lfs -text
42
+ diagrams/voices.png filter=lfs diff=lfs merge=lfs -text
43
+ diagrams/soundside-nano.png filter=lfs diff=lfs merge=lfs -text
44
+ diagrams/textside-nano.png filter=lfs diff=lfs merge=lfs -text
45
+ diagrams/demo-nano.png filter=lfs diff=lfs merge=lfs -text
46
+ diagrams/demo-tiny.png filter=lfs diff=lfs merge=lfs -text
47
+ diagrams/header-nano.png filter=lfs diff=lfs merge=lfs -text
48
+ diagrams/header-tiny.png filter=lfs diff=lfs merge=lfs -text
49
+ diagrams/flow-nano.png filter=lfs diff=lfs merge=lfs -text
50
+ diagrams/flow-tiny.png filter=lfs diff=lfs merge=lfs -text
51
+ diagrams/madeof-nano.png filter=lfs diff=lfs merge=lfs -text
52
+ diagrams/madeof-tiny.png filter=lfs diff=lfs merge=lfs -text
53
+ diagrams/measure.png filter=lfs diff=lfs merge=lfs -text
54
+ diagrams/datacontents.png filter=lfs diff=lfs merge=lfs -text
55
+ diagrams/datamade.png filter=lfs diff=lfs merge=lfs -text
56
+ diagrams/header-base.png filter=lfs diff=lfs merge=lfs -text
57
+ diagrams/header-data.png filter=lfs diff=lfs merge=lfs -text
58
+ diagrams/birth.png filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
README.md ADDED
@@ -0,0 +1,410 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ # DRAFT, NOT PUBLISHED. Credit: based on Maya (Maya-1).
3
+ license: apache-2.0
4
+ language: [en]
5
+ pipeline_tag: text-to-speech
6
+ library_name: onnx
7
+ tags: [text-to-speech, tts, small, cpu, on-device, synthetic-voices, based-on-maya]
8
+ base_model: KaleComputer/kale-tts-1-base
9
+ base_model_relation: finetune
10
+ datasets: [KaleComputer/kale-tts-1-data]
11
+ ---
12
+
13
+ ![kale-tts-1-nano](diagrams/header-nano.png)
14
+
15
+ # kale-tts-1-nano
16
+
17
+ kale-tts-1-nano is a very small English text-to-speech model with 10 voices designed with [Maya-1](https://huggingface.co/maya-research/maya1), that runs on CPU or GPU on low-end devices. It stays as close as possible to Maya-1's melody, which already sounds great, while running on weak hardware, in one 14.8 MB file (the CPU file).
18
+
19
+ | measure | value |
20
+ |---|---|
21
+ | size | 14.8 MB on the CPU (int8, `model.onnx`); 30.6 MB for WebGPU in the browser (float32, `model.fp32.onnx`) |
22
+ | parameters | 7.5M |
23
+ | unclear words | +1.6 points vs Maya-1's own recordings (Maya-1: 5.82 %) |
24
+ | melody gap | +7.46 points vs Maya-1's own recordings (Maya-1: 0) |
25
+ | speed, Samsung Galaxy Tab S10 Lite CPU | 44x real time, first sentence after 0.09 s |
26
+ | speed, Mac browser | 151x (WebGPU), 82x (WASM) |
27
+
28
+ Unclear words: a speech recognizer listens word by word, and "unclear" is the share of words it isn't sure about; Maya-1's own recordings
29
+ score 5.82 % on the same lines. Melody gap: how far the voice's pitch melody is from Maya-1's own recordings of the same lines, in
30
+ percentile points; Maya-1 scores 0. Lower is better for both.
31
+
32
+ Want better quality in a bit bigger file? Try [kale-tts-1-tiny](https://huggingface.co/KaleComputer/kale-tts-1-tiny).
33
+
34
+ Trained on [kale-tts-1-data](https://huggingface.co/datasets/KaleComputer/kale-tts-1-data): 204.7 hours (99,783 takes) of the 10 voices' speech with its text, CC BY 4.0, open for anyone to train their own.
35
+
36
+ ## Voices
37
+
38
+ | name | voice | pronunciation |
39
+ |---|---|---|
40
+ | Kenzie | esports hype woman | US English |
41
+ | Simone | deep and confident woman | US English |
42
+ | Amy | crisp news-style woman | British English |
43
+ | Frankie | hard-boiled detective's partner | US English |
44
+ | Darlene | rough low-voiced old trucker woman | US English |
45
+ | Owen | bright young host | US English |
46
+ | Toby | mischievous prankster | US English |
47
+ | Jack | crisp news-style man | British English |
48
+ | Earl | African American jazz granddad | US English |
49
+ | Magnus | deep dramatic trailer narrator | US English |
50
+
51
+ Every voice was designed from a one-line text description; none is a real person.
52
+
53
+ ## Listen
54
+
55
+ [![The kale-tts-1 demo: type a line, pick a voice, press play](diagrams/demo-nano.png)](https://huggingface.co/spaces/KaleComputer/kale-tts-1)
56
+
57
+ Every voice, in your browser: [the kale-tts-1 demo](https://huggingface.co/spaces/KaleComputer/kale-tts-1).
58
+
59
+ ## Why we made it
60
+
61
+ We build a privacy-focused computer for kids. Our goal is to run all the AI locally on the device, so privacy is as high as it can be.
62
+ Audio models were the quick first win, because they're easy to do with AI right now.
63
+
64
+ We made our own voice for Kale (Hazel), and we're keeping that one. But we share the whole concept, so you can recreate any voice from [Maya-1](https://huggingface.co/maya-research/maya1). And here are 10 voices to try right away.
65
+
66
+ ## How it works
67
+
68
+ ### What it's made of
69
+
70
+ ![What kale-tts-1-nano is made of](diagrams/madeof-nano.png)
71
+
72
+ 7.5M parameters in one 14.8 MB file (the CPU file; 30.6 MB for WebGPU): the dictionary in front, a small part that reads the text and plans timing and melody, a sound generator, and a voice pack per voice.
73
+
74
+ ### How it was made
75
+
76
+ ![How kale-tts-1-nano was made](diagrams/flow-nano.png)
77
+
78
+ 1. **Maya-1** designs the 10 voices from a line of text and records their training audio: 204.7 hours.
79
+ 2. **[kale-tts-1-base](https://huggingface.co/KaleComputer/kale-tts-1-base)**, our Kokoro-82M fine-tuned on our 10 voices (made with Maya-1), is the teacher: its timing-and-melody planner taught this model; it's too big and slow for the tablet. kale-tts-1-nano is distilled from it.
80
+ 3. **kale-tts-1-nano** learns from both. The part that reads the text and plans timing and melody learns from kale-tts-1-base; the part that makes the sound (a small harmonic-plus-noise generator) learns straight from Maya-1's audio. kale-tts-1-tiny is distilled from the same teacher.
81
+ 4. In front of it all, **the dictionary** turns words into sounds; every word is checked.
82
+
83
+ No flow matching and no diffusion anywhere: one pass per sentence.
84
+
85
+ ### Turns words into sounds
86
+ ![Text to phonemes](diagrams/phonemes.png)
87
+
88
+ Tech terms first ("Node.js" -> "Node J S"), then numbers, dates, money and units as words (dizione rules), then every word through a
89
+ CMUdict-based dictionary, a hand-checked override list and a small guesser for unknown words. No espeak. Files: `frontend/`.
90
+
91
+ ### A checked dictionary
92
+ Small TTS models live or die by their front end: the wrong sounds make the best voice say the wrong word. We checked every word the front
93
+ end can meet (334,000 words, American and British) and fixed 3,800+ readings in `frontend/words/override.public.tsv`. Example: "details"
94
+ came out of the base dictionary as dih-TAILS (`dɪtˈeɪlz`); one line in the override list makes it DEE-tails (`dˈiːtˌeɪlz`).
95
+
96
+ **Add a word:** one line in `frontend/words/override.public.tsv` (British: `frontend/words/en-gb/override.public.tsv`): the word in
97
+ lower case, a tab, its IPA (stress mark right before the vowel). It wins over the dictionary and the guesser. Prompt for a coding agent:
98
+ ```
99
+ In this repository, add the word "<word>" to frontend/words/override.public.tsv with the pronunciation <IPA> (one line: word, a tab,
100
+ the IPA in the same style as the other lines). Check that the word is not a person's name and is not offensive; if it is, stop. Run the
101
+ front end on a sentence with the word (python/kale_tts.py: QuickJSFrontEnd) and confirm the new IPA. Then render it with kale-tts-1-nano and listen.
102
+ ```
103
+
104
+ ### Reads the text, plans timing and melody
105
+
106
+ A compact student turns the phonemes into how long each sound lasts, its pitch and its loudness. It learned this from kale-tts-1-base, on text only.
107
+
108
+ ### Makes the sound
109
+
110
+ A small generator (3.7M): a harmonic source plus noise through a learned filter, then an inverse STFT to 24 kHz. No separate vocoder, no flow matching: one pass per sentence. At the end of a sentence a per-voice pitch floor keeps the last words from creaking.
111
+
112
+ ### Voices
113
+ ![Voices](diagrams/voices.png)
114
+
115
+ Each voice starts as a one-line description given to Maya-1. Maya-1 reads thousands of sentences in that voice; a filter keeps the takes
116
+ that read back right, match the voice and end cleanly. Each voice ships as a style table and a 16-number sound row (`voices/`).
117
+
118
+ ### Training data
119
+ ![Training data](diagrams/data.png)
120
+
121
+ 99,783 original Maya-1 takes, 204.7 hours, 10 voices, texts from public-domain books: [kale-tts-1-data](https://huggingface.co/datasets/KaleComputer/kale-tts-1-data) (CC BY 4.0).
122
+ About 25 hours of clean takes per voice is where clarity levels off; 5 hours already sounds right but is less clear.
123
+
124
+ ### How we picked the base model
125
+ ![How we picked the base model, at selection](diagrams/birth.png)
126
+
127
+ We tried open-weight models on the same 192 test lines against Maya-1's own recordings. Fine-tuned on Maya-1's audio, Kokoro-82M was the
128
+ clearest and the closest to Maya-1's melody, but it ran at about real time on the tablet, far too slow, so it became the teacher:
129
+ [kale-tts-1-base](https://huggingface.co/KaleComputer/kale-tts-1-base). The published kale-tts-1-base keeps that fine-tune's text side and planner with stock Kokoro-82M's
130
+ sound decoder; on the same bench it is less clear (+3.9 points) than tiny and nano.
131
+
132
+ ### How we measure
133
+ ![How we measure](diagrams/measure.png)
134
+
135
+ 192 English lines (stories, explanations, numbers, questions), all 10 voices, sentence by sentence as an app speaks; each voice against
136
+ Maya-1's own recordings of the same lines. Unclear words: word spans from CTC forced alignment (wav2vec2-large-960h-lv60-self); kale-tts-1-nano
137
+ reads 7.47 % unclear, Maya-1's recordings 5.82 %. Per voice: `results/bench/bench-10voices.json`.
138
+ Export check: every release file against a float32 build of the same weights on 200 sentences; the same length on each (int8: at most one
139
+ sentence one frame off) and a log-mel distance of at most 0.20. nano: the same length on all 200 sentences, log-mel distance 0.091; the float32 file is identical to its reference. Whisper reads all 10 voices back right (2.22 % word errors on the check lines, 0.53 % on the 192 bench lines).
140
+
141
+ ### Extend it
142
+ ![Extend it](diagrams/extend.png)
143
+
144
+ - **A word:** one line in the override list (above).
145
+ - **A voice:** a one-line description, a few thousand Maya-1 takes (`recipe/render/`, `recipe/filter/`), then teacher, heads and a new sound row (`recipe/train/`, `recipe/export/`).
146
+ - **A language:** its own dictionary, guesser and number rules, takes in the same voices, then the text reader and planner fine-tuned on both languages.
147
+
148
+ ## Where it runs
149
+
150
+ | where | runs | speed and notes |
151
+ |---|---|---|
152
+ | Browser, WebGPU | yes | 151x; loads the 30.6 MB float32 file (onnxruntime-web 1.31 or newer) |
153
+ | Browser, WASM | yes | 82x with 4 threads (the 14.8 MB CPU file; threads need COOP/COEP headers) |
154
+ | Android (onnxruntime) | yes | Galaxy Tab S10 Lite CPU: 44x, first sentence after 0.09 s |
155
+ | iOS | not tested | onnxruntime runs there; we have no device numbers |
156
+ | Python | yes | 240x (`python/kale_tts.py`) |
157
+ | Node.js | yes | 251x (`js/kale-tts.mjs`) |
158
+ | HTTP server (`server/server.mjs`) | yes | 152x for whole lines, text in, WAV out (one process; WAV or streamed) |
159
+ | transformers.js | yes | with our text-prep helper (see Use it) |
160
+ | sherpa-onnx, kokoro-onnx | coming | the kokoro-compatible export is being rebuilt for this version |
161
+ | C, Go, Rust, Swift | yes | onnxruntime C API, onnxruntime_go, the ort crate, the Swift package |
162
+
163
+ Speed = times faster than real time, median over 70 test lines in Kenzie's voice (18 Nov): the model one sentence at a time; the server row whole lines, text in, WAV out. Machines: Apple MacBook Pro, M5 Max (18 CPU cores, 128 GB RAM) for the browser, Python, Node and server rows;
164
+ Samsung Galaxy Tab S10 Lite (Exynos 1380, 8 CPU cores: 4 × Cortex-A78 + 4 × Cortex-A55) for Android (22x on 1 thread).
165
+
166
+ ## Use it
167
+
168
+ **transformers.js**
169
+
170
+ ```bash
171
+ npm i @huggingface/transformers
172
+ npm pkg set type=module
173
+
174
+ # our text-prep helper: the js/ and frontend/ folders of this repo
175
+ pip install -U huggingface_hub
176
+ hf download KaleComputer/kale-tts-1-nano --local-dir . --include "js/*" --include "frontend/*"
177
+ ```
178
+
179
+ Save as `tts.mjs`, then run `node tts.mjs`:
180
+
181
+ ```js
182
+ import { writeFileSync } from "node:fs";
183
+ import { StyleTextToSpeech2Model, Tensor } from "@huggingface/transformers";
184
+ import { KaleTTS, toWav } from "./js/kale-tts.mjs";
185
+
186
+ const model = await StyleTextToSpeech2Model.from_pretrained("KaleComputer/kale-tts-1-nano", { subfolder: "", dtype: "fp32" });
187
+
188
+ // text -> the model's inputs, sentence by sentence
189
+ const prep = await KaleTTS.prepare("https://huggingface.co/KaleComputer/kale-tts-1-nano/resolve/main/");
190
+
191
+ const parts = [];
192
+ for await (const { inputs } of prep.inputs("Hello there! It is 9:30 on March 3.", { voice: "kenzie" })) {
193
+ const feeds = {};
194
+ for (const [name, t] of Object.entries(inputs)) feeds[name] = new Tensor(t.type, t.data, t.dims);
195
+
196
+ // waveform.data: Float32Array, 24 kHz
197
+ const { waveform } = await model(feeds);
198
+ parts.push(waveform.data);
199
+ }
200
+
201
+ const audio = new Float32Array(parts.reduce((n, p) => n + p.length, 0));
202
+ let at = 0;
203
+ for (const p of parts) { audio.set(p, at); at += p.length; }
204
+ writeFileSync("hello.wav", Buffer.from(toWav(audio, 24000)));
205
+ ```
206
+
207
+ `KaleTTS.prepare()` is our small text-prep helper: it turns text into this model's inputs (numbers and dates as words, the checked
208
+ dictionary, the voice's style and voice inputs, and for tiny the Ettin word inputs). transformers.js has no tokenizer for these inputs,
209
+ so the helper builds them and transformers.js runs the model.
210
+
211
+ On WebGPU (transformers.js 4.3 or newer), load the float32 file and keep the six small LSTM layers on the CPU for full speed, the same
212
+ settings our runtime uses:
213
+
214
+ ```js
215
+ const LSTM_NODES = ["lstms.0", "lstms.2", "lstms.4", "lstm", "shared", "lstm_1"].flatMap((n) => [`/g/${n}/LSTM`, `/${n}/LSTM`]);
216
+
217
+ const model = await StyleTextToSpeech2Model.from_pretrained("KaleComputer/kale-tts-1-nano", {
218
+ subfolder: "",
219
+ dtype: "fp32",
220
+ model_file_name: "model.fp32",
221
+ device: "webgpu",
222
+ session_options: { executionProviders: [{ name: "webgpu", forceCpuNodeNames: LSTM_NODES }] },
223
+ });
224
+ ```
225
+
226
+ **This is temporary.**
227
+
228
+ - CPU and WASM: Transformers.js is 11–19 % slower than our own runtime today, because it pins an older onnxruntime. The gap closes by
229
+ itself when [transformers.js PR #1879](https://github.com/huggingface/transformers.js/pull/1879) (onnxruntime 1.31.1) is merged;
230
+ nothing changes in your code.
231
+ - WebGPU: the two extra lines (`LSTM_NODES` and `session_options`) keep six small LSTM layers on the CPU. They stay until an
232
+ onnxruntime release with the LSTM fix ships in Transformers.js; then you can remove them.
233
+
234
+ **Without transformers.js: our runtime**
235
+
236
+ Download the model with our runtime. It turns any text into speech, numbers, dates and tech terms included:
237
+
238
+ ```bash
239
+ # the hf command comes with huggingface_hub
240
+ pip install -U huggingface_hub
241
+
242
+ # only the files the runtime needs
243
+ hf download KaleComputer/kale-tts-1-nano --local-dir kale-tts-1-nano \
244
+ --include "model.onnx" --include "*tokenizer.json" --include "voices.json" --include "config.json" \
245
+ --include "voices/*" --include "js/*" --include "frontend/*" --include "python/*" --include "server/*"
246
+
247
+ cd kale-tts-1-nano
248
+ ```
249
+
250
+ **Node.js**
251
+
252
+ ```bash
253
+ npm i onnxruntime-node
254
+ npm pkg set type=module
255
+ ```
256
+
257
+ Save as `hello.mjs`, then run `node hello.mjs`:
258
+
259
+ ```js
260
+ import { writeFileSync } from "node:fs";
261
+ import { KaleTTS, toWav } from "./js/kale-tts.mjs";
262
+
263
+ const tts = await KaleTTS.load("./");
264
+
265
+ // audio: Float32Array, 24 kHz
266
+ const { audio } = await tts.speak("Hello there! It is 9:30 on March 3.", { voice: "kenzie" });
267
+ writeFileSync("hello.wav", Buffer.from(toWav(audio, 24000)));
268
+
269
+ // for long text, sentence by sentence:
270
+ // for await (const { audio } of tts.stream(longText, { voice: "amy" })) play(audio);
271
+ ```
272
+
273
+ **Python**
274
+
275
+ ```bash
276
+ pip install onnxruntime numpy quickjs soundfile
277
+ ```
278
+
279
+ Save as `hello.py` in the same folder, then run `python hello.py`:
280
+
281
+ ```python
282
+ import sys
283
+ sys.path.insert(0, "python")
284
+
285
+ import soundfile as sf
286
+ from kale_tts import KaleTTS
287
+
288
+ tts = KaleTTS(".")
289
+
290
+ # float32 audio, 24 kHz
291
+ audio = tts.speak("Hello there!", voice="amy")
292
+ sf.write("hello.wav", audio, 24000)
293
+ ```
294
+
295
+ **HTTP server**
296
+
297
+ Run it locally and call it from any language or app over HTTP (an OpenAI-shaped `POST /v1/audio/speech`, WAV or streamed PCM):
298
+
299
+ ```bash
300
+ npm i onnxruntime-node
301
+
302
+ # without a token it only listens on 127.0.0.1
303
+ TTS_API_TOKEN=choose-a-secret-of-20-characters PORT=8000 node server/server.mjs
304
+ ```
305
+
306
+ ```bash
307
+ curl -s http://127.0.0.1:8000/v1/audio/speech \
308
+ -H "Authorization: Bearer choose-a-secret-of-20-characters" \
309
+ -d '{"model": "kale-tts-1-nano", "input": "Hello there!", "voice": "kenzie"}' \
310
+ -o hello.wav
311
+ ```
312
+
313
+ You pass the voice by its name.
314
+
315
+ ## How we made it
316
+
317
+ Research agents ran the experiments, on Claude Opus 5.5 and Claude Fable 5.2. We told them what to find out, and an automation checked
318
+ every 60 minutes whether any agent was stuck and got it moving again.
319
+
320
+ What we tried, one line each:
321
+
322
+ **Teacher and data**
323
+ - Maya-1 voice designer + SNAC codec, served on vLLM: worked. It made all the training audio, about 12-14x faster than plain generation.
324
+ - Maya-1 itself on the device, with speculative decoding: didn't work, about 0.1x real time.
325
+ - Kokoro-82M fine-tuned StyleTTS2-style (kikiri-tts) as the teacher: worked. The clearest in our model comparison (before its decoder swap), but about 1x real time on the tablet.
326
+ - Training on whole multi-sentence passages, speaking sentence by sentence: worked, the main melody lever.
327
+ - More data (a 114 h multi-voice pretrain, more hours per voice): didn't help much; about 25 h per voice is enough.
328
+ - Speed multipliers and stretched durations: didn't work, less clear. Pace now comes from per-voice duration heads.
329
+
330
+ **Reading the text, planning, the dictionary**
331
+ - Our own ~8 M model from scratch: misread too many words. Its shape became nano's student.
332
+ - A small student that reads the text and plans timing, pitch and loudness, distilled from the teacher, plus a sound generator trained on real audio: worked, that's kale-tts-1-nano.
333
+ - Ettin-encoder-17m word features instead of ALBERT: worked on tiny (about 1.6x faster on the tablet, same clarity); on nano bigger, not faster.
334
+ - Fewer ALBERT passes, dynamic int8 ALBERT: didn't work, broke the melody or failed to load on Android.
335
+ - Pitch fixes (pitch LoRA, contour discriminator, flow-matching pitch sampler, prosody label heads, a GRPO duration reward): no melody gain; GRPO learned to talk faster.
336
+ - misaki dictionaries: best melody, but ruled out (they derive from GPL espeak output). CMUdict + our own guesser recovers about half of it.
337
+ - A British front end (CMUdict rules + Britfone): only works with British-trained weights, so it ships off.
338
+
339
+ **Making the sound**
340
+ - Matcha-TTS + Vocos: larger, slower, dull above about 5 kHz.
341
+ - Other vocoders and codec adapters (WaveNeXt, BigVGAN, codec adapters): no gain on the device, much slower, or worse sound.
342
+ - DiT flow-matching decoder, REPA, one-step decoders, an adversarial mel post-filter: too slow on the tablet or no gain by ear.
343
+ - A small autoregressive codec-token TTS: about 1.3-1.6x real time, too slow.
344
+ - A source-filter decoder (sine bank + shaped noise + one inverse STFT, no separate vocoder): worked, it ships in both models.
345
+ - A per-voice pitch floor at sentence ends: worked, it removed most end-of-sentence creak.
346
+
347
+ **Export**
348
+ - ONNX with int8 weights where safe, float32 timing and phase paths, the LSTMs on the CPU in browsers: worked. int8 on the timing path changed
349
+ durations; CoreML and GPU serving didn't help.
350
+
351
+ **Earlier directions: voices and data**
352
+ - VoxCPM2 and other voice-design models (Qwen3-TTS VoiceDesign, MOSS-VoiceGenerator, Ming-TTS, Parler-TTS) as the voice maker: dropped. Their takes sounded flatter, and the Maya-1 designs won the listening rounds.
353
+ - Moods and sound tags from Maya-1 (calm, whisper, laugh, sigh) as extra speaker ids: worked at no speed cost, but Maya-1 often skipped the tag sounds. kale-tts-1 has one style per voice and no tag tokens.
354
+
355
+ **Earlier directions: Matcha-TTS fine-tuning**
356
+ - Our own Matcha-TTS base trained from scratch on LJSpeech: worked, as good as the original.
357
+ - Per-voice adapters: LoRA rank 32 came close to a full fine-tune, rank 8 was worse; a decoder-only fine-tune was far less clear (13.3 % vs 4.8 % unclear words).
358
+ - Sampler settings (2-10 decoder steps, solvers, noise, guidance, checkpoint averaging): no gain; 2 steps sounded like 3.
359
+
360
+ **Earlier directions: other models as the on-device voice**
361
+ - Kokoro-82M on the tablet, full and pruned to 37-44 M: too slow (about 1x and 6x real time), so it became the teacher only.
362
+ - Piper (VITS) medium fine-tunes: as fast as Matcha but scored lower; the high size was too slow.
363
+ - Supertonic 3: 2.4x real time on the tablet, and its OpenRAIL-M licence also covers models trained on its output.
364
+ - Kitten TTS nano with a searched style: no closer to the target voice than its preset, 2.5x on the tablet.
365
+ - Zonos 3 Mini: below real time on the tablet and a 1.1 GB download.
366
+ - Voice cloning (a 12 M ZipVoice from scratch, Matcha-P with a voice prompt, the 123 M ZipVoice): dropped for a fixed voice set; ZipVoice cloned well but was 15-25x too slow on the tablet.
367
+ - An MB-iSTFT-VITS-style end-to-end model (8.2 M, 4.7 M): very fast, but quality stalled below the bar.
368
+ - Mach-Boom (Phonon 31M): fast, but no published audio encoder, so it can't learn a new voice.
369
+ - Not tested because their licences don't allow commercial use: F5-TTS, XTTS-v2, Fish Speech, Spark-TTS, MaskGCT.
370
+
371
+ **Earlier directions: prosody, speed and serving**
372
+ - A sampled prosody plan (flow-matching durations, pitch, loudness): closest pauses, but less clear (6.7-7.8 % unclear words).
373
+ - A sentence-level delivery latent with context from the previous sentence: no melody gain.
374
+ - A distilled 5-6 M Vocos vocoder: about 2x faster, but below the full vocoder.
375
+ - The tablet GPU (our own WebGPU kernels) and XNNPACK: both slower than plain onnxruntime on 4 CPU cores.
376
+ - Streaming part of a sentence: left seams on our decoder and hurt the melody; whole sentences are already fast.
377
+ - vLLM / SGLang serving and CoreML: don't fit a one-pass model, or 2-4x slower than the CPU.
378
+
379
+ **Earlier directions: yardsticks and other languages**
380
+ - kitten-tts-2 as a yardstick: kitten mini matched our small model on clarity but was 20x slower on the tablet.
381
+ - A German teacher scout (Qwen3-TTS, Chatterbox, VoxCPM2, CosyVoice3, MOSS-TTS): Qwen3-TTS read best; no German model trained yet.
382
+
383
+ ## Make it faster or better
384
+ - **WebGPU:** keep the six small LSTM layers on the CPU (`forceCpuNodeNames`; our JS API does it by default): about 1.7x faster on onnxruntime-web 1.27 and newer (83x -> 144x through transformers.js, 18 Nov).
385
+ - **Pick the file per backend:** the int8 `model.onnx` on CPU and WASM, `model.fp32.onnx` on WebGPU.
386
+ - **Threads:** 4 threads on a phone or tablet CPU; on a server 1 thread per process and one process per core.
387
+ - **Stream sentence by sentence:** the first sentence plays while the rest renders.
388
+ - **Train it better:** more clean recordings per voice (about 25 h each is where clarity levels off) and a cleaner teacher help more than a bigger model.
389
+
390
+ ## Limits
391
+ - Owen is the least clear voice: 10.7 % unclear words (his own Maya-1 recordings: 7.1 %).
392
+ - The two British voices: Amy 9.1 %, Jack 9.3 % unclear (their Maya-1 recordings: 5.8 / 6.0 %).
393
+ - English only. Rare names and heavy numbers can be misread; the guesser for unknown words is right on about two thirds of them.
394
+ - Not for impersonating real people or passing the output off as human speech.
395
+
396
+ ## Files
397
+ `model.onnx` (14.77 MB: int8 sound generator, float32 for the whole timing path), `model.fp32.onnx` (30.59 MB, every weight float32, for WebGPU), `voices/` + `voices.json` (one style table and one sound row per voice), `tokenizer.json`. Inputs: `input_ids`, `style`, `speed`, then the voice inputs listed in `voices.json`.
398
+
399
+ ## Licence and credits
400
+ Weights and code Apache-2.0; dataset CC BY 4.0.
401
+
402
+ AI-generated speech: everything this model says is synthetic speech made by an AI model, in voices that belong to no real person. Tell
403
+ listeners it is AI-generated, never present it as a human recording, and never use it to imitate a real person.
404
+
405
+ Credits: based on Maya-1: all training audio is original speech from Maya-1 (Maya Research, Apache-2.0), decoded with SNAC (MIT). The
406
+ teacher is Kokoro-82M (hexgrad, Apache-2.0), fine-tuned with StyleTTS2 (MIT) and kikiri-tts (Apache-2.0) code; kale-tts-1-tiny keeps
407
+ its timing-and-melody planner and contains the Ettin 17M encoder (JHU CLSP, MIT). Pronunciations: CMUdict (BSD-2-Clause), Britfone
408
+ (MIT); the number, date and unit rules come from dizione and the homograph tables from tiny-voca, both by n4ze3m (Apache-2.0),
409
+ the tables trained on Google Research's Wikipedia Homograph Data (Apache-2.0). Training texts: public-domain books made available by Project Gutenberg. Dataset: kale-tts-1-data (CC BY 4.0).
410
+
SHA256SUMS ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cf786abdfdf8e89962d1fb888d22decfde1efc6cf43564199ba9468788763c7b config.json
2
+ 231321b31cb9ced352519151d6f536971a50f6b0e4dfbe8c03a78f64ebc91b2f export-check-model.fp32.json
3
+ ba3494b0a742a2805ffa9812d82dc3e4d72a236970e6c23eafc2a06cddbb394b export-check-model.json
4
+ 61e170198a4946f080211c48bcf4cd6e7b4ec9ddc54351cc513dd6d91271474c export-check-whisper.json
5
+ 34d408a127f35f732a6860db5b1f7e8e1baac43ee3e32874f2007b5c6360e73a model.fp32.onnx
6
+ 4d5269974de4fba7a66f947608a9a5381b4e39c1a8a6073df6001ab7e7f76288 model.onnx
7
+ 61188314434d9972e42677fb71dba9e19aa8698e980541b1c06a1f9f16086e60 tokenizer.json
8
+ be1cb066d6ef6b074b3f15e6a6dd21ac88ff3cdaedf325f0aaed686c70f75d20 tokenizer_config.json
9
+ 179741da5b5fb1f7d49399043f4788f78c28eaf02b00115aa8f3ffee3ad4cb6b voices/d03.bin
10
+ 26f04da49af0133bac784a40d832f18b5c1d33e854ad13eb743e057887810e23 voices/d03.extra.bin
11
+ add53ad105ba63b83e39bd85f3bfa96b2375bf550caa65d6c99feb7e66e7cee3 voices/d13.bin
12
+ affcb13422a7851e4ad3736a9c3db57575bfbe18eb20baa250a044d33ea21731 voices/d13.extra.bin
13
+ d8335f35bf3d3446e2c8cc460936a06cde2aab2f3f8ccba93c612bafadfc541d voices/f06.bin
14
+ 942559c27e4e8ea0d371a1d022ac65561b0e8754e8d12c16231f52026e1d3fea voices/f06.extra.bin
15
+ 3ed78f53ea23af5b559e0511520c35193dafb4a6bc478a6babb81f1afcce270e voices/h013f.bin
16
+ a64252df624e57a5a55c037a41316939df348f65b3e52dea582940e17a1cee94 voices/h013f.extra.bin
17
+ 2d63ba440f340d6d2dff8d71178d3409375c253758aed97b7a1e370e49520ecf voices/m3.bin
18
+ 89a0e683a5027278ca7f2ba4aafe8a22e8f0038bc4cc0d34c859f028a2272b7d voices/m3.extra.bin
19
+ 6efc770ae27fcbe0ba68b3a8c67b4a7fb86fe7c8b364a4f2b3f2c729e377b4c1 voices/s057b.bin
20
+ 35c0e00f2c3500914c791a21af160a4058f3ee30a00cbd0c29941d2503210e89 voices/s057b.extra.bin
21
+ 29f9c895a09cd1165420a1ca0808a6ebdfa016686c8b9a5e1ca52d750105610e voices/t071.bin
22
+ f4951a1399ce8ba81491df1378ae39c7b6417d661b82c563f138ec81aecf5101 voices/t071.extra.bin
23
+ 8c745b9b8b9e885d4e5d79173d9af2edfe2768d8c190776dbe45ee31bc2bb257 voices/w165.bin
24
+ d1eef8616667f68f4254aa4d955fdc4fb424ea9d73db6661fd02c2cea45e5258 voices/w165.extra.bin
25
+ 36f07dd7fbe6bd76f8607f651bbb0d235632476ff9ec5c1805e496d8cd490fda voices/w602.bin
26
+ 490375c1b576a69c7fea5089cb97d70e74e53e6afb05a216ff04bf5901bffbb3 voices/w602.extra.bin
27
+ 6d9c428c34874279c6f8503cc1b9de42eef3a7dfbeddc9e486efea65cccf4a9b voices/x328.bin
28
+ e8fa93b6e16ec168e29e685d72e53d171ec468b9045f8d16705c584cd5d5dedc voices/x328.extra.bin
29
+ f6dcb75c98e99b7bd6f31236b139ce5aae6afef10c0efd9ff8a0fb0b24c9c992 voices.json
THIRD_PARTY_NOTICES.md ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Third-party notices
2
+
3
+ kale-tts-1 (weights and code: Apache-2.0; dataset: CC BY 4.0) includes or is derived from the works below. Their licences and notices
4
+ travel with every copy. The full Apache License 2.0 text is in `LICENSE` (and in `frontend/dizione/LICENSE`).
5
+
6
+ ## Model weights
7
+ - **Kokoro-82M** (hexgrad, huggingface.co/hexgrad/Kokoro-82M, Apache-2.0). The kale-tts-1 text side starts from Kokoro-82M's weights.
8
+ Changes: fine-tuned on the kale-tts-1 voices, distilled to smaller text sides, joined to a new decoder, and exported to ONNX.
9
+ The IPA-to-id table (`tokenizer.json`, `frontend/matcha/ipa2kokoro.json`) is Kokoro's.
10
+ - **Maya-1** (Maya Research, huggingface.co/maya-research/maya1, Apache-2.0). All training audio is original Maya-1 output from text
11
+ voice descriptions (decoded with SNAC, MIT, Copyright (c) 2023 Descript, Copyright (c) 2024 Hubert Siuzdak). Based on Maya. Every voice
12
+ is synthetic and is nobody real; follow the Maya-1 use policy (no impersonation, never present the audio as a human recording).
13
+ - **StyleTTS2** (github.com/yl4579/StyleTTS2, MIT, Copyright (c) 2023 Aaron (Yinghao) Li) and **kikiri-tts** (github.com/semidark/kikiri-tts,
14
+ Apache-2.0): the teacher's training code.
15
+
16
+ - **Ettin encoder 17M** (jhu-clsp/ettin-encoder-17m, github.com/JHU-CLSP/ettin-encoder-vs-decoder, MIT): kale-tts-1-tiny's text side
17
+ contains its weights (frozen) and ships its tokenizer as `ettin-tokenizer.json`; `frontend/ettin.js` reimplements the tokenizer.
18
+
19
+ ```
20
+ MIT License
21
+
22
+ Copyright (c) 2025 Johns Hopkins University Center for Language and Speech Processing
23
+
24
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the
25
+ "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,
26
+ distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
27
+ the following conditions:
28
+
29
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
30
+
31
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
32
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
33
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
34
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35
+ ```
36
+
37
+ ## Text front end (`frontend/`)
38
+ - **CMUdict** (github.com/cmusphinx/cmudict, BSD-2-Clause style). `frontend/matcha/lexicon.tsv`, the en-gb word list
39
+ (`frontend/matcha/en-gb/lexicon.tsv`), the unknown-word guessers (`g2p.bin`) and the `kokoro-compatible/lexicon-us-en.txt` files are
40
+ made from it. Its licence:
41
+
42
+ ```
43
+ Copyright (C) 1993-2015 Carnegie Mellon University. All rights reserved.
44
+
45
+ Redistribution and use in source and binary forms, with or without
46
+ modification, are permitted provided that the following conditions
47
+ are met:
48
+
49
+ 1. Redistributions of source code must retain the above copyright
50
+ notice, this list of conditions and the following disclaimer.
51
+ The contents of this file are deemed to be source code.
52
+
53
+ 2. Redistributions in binary form must reproduce the above copyright
54
+ notice, this list of conditions and the following disclaimer in
55
+ the documentation and/or other materials provided with the
56
+ distribution.
57
+
58
+ This work was supported in part by funding from the Defense Advanced
59
+ Research Projects Agency, the Office of Naval Research and the National
60
+ Science Foundation of the United States of America, and by member
61
+ companies of the Carnegie Mellon Sphinx Speech Consortium. We acknowledge
62
+ the contributions of many volunteers to the expansion and improvement of
63
+ this dictionary.
64
+
65
+ THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND
66
+ ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
67
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
68
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
69
+ NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
70
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
71
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
72
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
73
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
74
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
75
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
76
+ ```
77
+
78
+ - **Britfone 3.0.1** (github.com/JoseLlarena/Britfone, MIT). The en-gb word list (`frontend/matcha/en-gb/lexicon.tsv`) uses it.
79
+
80
+ ```
81
+ MIT License
82
+
83
+ Copyright (c) 2017 Jose Llarena
84
+
85
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the
86
+ "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,
87
+ distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
88
+ the following conditions:
89
+
90
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
91
+
92
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
93
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
94
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
95
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
96
+ ```
97
+
98
+ - **dizione** (github.com/n4ze3m/dizione, Apache-2.0, `frontend/dizione/LICENSE`): the number, date, time, unit and abbreviation rules in
99
+ `frontend/dizione/` are a port of its text rules. The homograph tables (`frontend/dizione/homographs.data.js`) come from
100
+ github.com/n4ze3m/tiny-voca (Apache-2.0), trained on the Wikipedia Homograph Data (github.com/google-research-datasets/WikipediaHomographData,
101
+ Apache-2.0; Gorman, Mazovetskiy and Nikolaev, LREC 2018); the tables hold word lists and weights only, no Wikipedia text.
102
+
103
+ ## Training recipe (`recipe/`)
104
+ - **Paradee** (github.com/sahilmahendrakar/paradee @ 2de547e45da92840a636c499eb0782e988be1e47, Apache-2.0): `vhead.py`,
105
+ `student_decoder.py` and `discriminators.py`, copied unchanged into `recipe/train/third_party/paradee/` with its LICENSE and NOTICE.
106
+ No Paradee weights are used.
107
+ - StyleTTS2 / AuxiliaryASR (MIT, Copyright (c) 2022-2023 Aaron (Yinghao) Li) and kikiri-tts (Apache-2.0): cloned at pinned revisions by
108
+ `recipe/teacher/`; one class copied from AuxiliaryASR is marked in `recipe/teacher/teacher.py`.
109
+
110
+ ## Browser demo (`space/`)
111
+ - **onnxruntime-web** (github.com/microsoft/onnxruntime, MIT, Copyright (c) Microsoft Corporation): `space/ort/`, with its `LICENSE`.
checkpoints/README.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- SPDX-License-Identifier: Apache-2.0 | Copyright 2026 Kale -->
2
+ # kale-tts-1-nano training checkpoints (PyTorch)
3
+
4
+ The trained parts `model.onnx` was exported from, for fine-tuning with `recipe/`. Weights only (no optimiser states), Apache-2.0.
5
+ The teacher and the voice packs live in [kale-tts-1-base](https://huggingface.co/KaleComputer/kale-tts-1-base) (Kokoro-82M fine-tuned on
6
+ the 10 voices); nano is a student distilled from it.
7
+
8
+ | file | what |
9
+ |---|---|
10
+ | `nano/student_text_side_flt.pt` | nano's 3.06M text side: reads the text and plans timing + melody, distilled from kale-tts-1-base |
11
+ | `nano/sound_side_flrd.pt` | nano's 4.1M sound generator incl. its own small text encoder, 10 rows, with its critics (`model`, `D`, `J`) |
12
+
13
+ Voice order in every per-voice table: s057b, f06, d03, w165, w602, m3, t071, d13, x328, h013f.
checkpoints/nano/sound_side_flrd.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97786fd704865fdc15b695eb9bb0bd902d42e02994b202b92f51915b50a658fd
3
+ size 34211009
checkpoints/nano/sound_side_t10r.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0e24e32fa76f0f7c8c84355e121ce11cec9dc7dc1b9cb8ed706286932b1f924
3
+ size 34211009
checkpoints/nano/student_text_side_flt.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17e53cd240ef15b1ffadf25b5ac17fe9c10cb35cdea2309a025408cc5348ddcc
3
+ size 12290583
checkpoints/nano/student_text_side_t10t2.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a49249a8faa945b791b36d3eb3b814f7a8185068376db098230482ea310f3b7c
3
+ size 12281846
checkpoints/packs/d03.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b89468eb5f045e59801fda533a701681d5443678d1618aa8748bc7350735758f
3
+ size 523725
checkpoints/packs/d13.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d1ed650484a715b6f95e11bddb568eef9e7f075cfcd10e770e5b20575743bfe
3
+ size 523725
checkpoints/packs/f06.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f019be1bb369ecf4a72de48229d81e25a83fb139b4ae770a38dcb64bac6c866d
3
+ size 523725
checkpoints/packs/h013f.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a17c771fa742aceb463ebda7046feaeef0759fb0969f0cf5efa0df0bb39b238
3
+ size 523739
checkpoints/packs/m3.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:debe2fbff7ae859440f4ad0f6bdd15f3a3767fd97430614f54ae53ca567205fb
3
+ size 523654
checkpoints/packs/s057b.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfb27b61fef7ac260a4ad18d57101368eec1d218deeba418313872f7c64cc531
3
+ size 523739
checkpoints/packs/t071.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:afaa385a2a34b1997c0c461b15214c70a85ca353b7b41c863fd82b17e8021307
3
+ size 523732
checkpoints/packs/w165.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2f7432cc4a6533dafc9cdd8ec27b9bcb8514c748570e63d8e4f83d17cd14309
3
+ size 523732
checkpoints/packs/w602.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63f979297a1aceda77a88f0a454511ee8d7455afd730f902d4679580aa1d1d75
3
+ size 523732
checkpoints/packs/x328.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d057bdcb69ac3024b641f6f7f28fcb7e45a21990a204dd0e2d56bf9c9478489
3
+ size 523732
checkpoints/teacher/kokoro_teacher.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1c52046c5d25df637f0353ffd63dae69a1ab07e8f72d5957c06c98347167301
3
+ size 327227339
config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "StyleTextToSpeech2Model"
4
+ ],
5
+ "model_type": "style_text_to_speech_2"
6
+ }
diagrams/benches.png ADDED

Git LFS Details

  • SHA256: 2f705e4abe7e390e6a9b743d0f2038a4611dfb9156d6106d0a3d9919d3b8b081
  • Pointer size: 131 Bytes
  • Size of remote file: 254 kB
diagrams/birth.png ADDED

Git LFS Details

  • SHA256: b13539c71865ef00c1d4cc7d4ab170efc4c7c26765298e481baed90003795f98
  • Pointer size: 131 Bytes
  • Size of remote file: 258 kB
diagrams/data.png ADDED

Git LFS Details

  • SHA256: 275cfd08be6a14123c78b144079814314c43425ae1369b4edb2d7f07491e90f3
  • Pointer size: 131 Bytes
  • Size of remote file: 148 kB
diagrams/datacontents.png ADDED

Git LFS Details

  • SHA256: d346b6a64ccd88f01b4edb97d5437bc2f96870248dbc3afbf96e5bc8d1c6af1c
  • Pointer size: 131 Bytes
  • Size of remote file: 218 kB
diagrams/datamade.png ADDED

Git LFS Details

  • SHA256: c8e5e9df8ed155cafe055971647b4e3a453128f19f0567ecf781c2e28b2c5b0d
  • Pointer size: 131 Bytes
  • Size of remote file: 298 kB
diagrams/demo-nano.png ADDED

Git LFS Details

  • SHA256: 732656d6a447803893cf5b7f59748c86da67a880a225b740d9d2e62a77c167d9
  • Pointer size: 131 Bytes
  • Size of remote file: 807 kB
diagrams/demo-tiny.png ADDED

Git LFS Details

  • SHA256: 8935b72cb79aff483cedc3c9e7a7f54322a0e84d799f9d2a1e5a68e6377bc75d
  • Pointer size: 131 Bytes
  • Size of remote file: 989 kB
diagrams/extend.png ADDED

Git LFS Details

  • SHA256: f56b7b89b5ba7a73c557ed49cb168f8cb105cb38d69590ba4031610a0f5a03e3
  • Pointer size: 131 Bytes
  • Size of remote file: 262 kB
diagrams/flow-nano.png ADDED

Git LFS Details

  • SHA256: 121dfaeaf0474c57c74049d33fb7bb7ef1f932df421b95ef11cd78c257036ef1
  • Pointer size: 131 Bytes
  • Size of remote file: 224 kB
diagrams/flow-tiny.png ADDED

Git LFS Details

  • SHA256: 6cfd96b9652d9f56a37abffc0ffe5f2885d852d088f10702ab6a47317a1a2f72
  • Pointer size: 131 Bytes
  • Size of remote file: 243 kB
diagrams/header-base.png ADDED

Git LFS Details

  • SHA256: 6b5266a91e6c2d9e5cca9679c829f58dfd4315f7cd569b6fb0a3e94746131fa8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.24 MB
diagrams/header-data.png ADDED

Git LFS Details

  • SHA256: eb07d3360b82942526a81ce706fbd3f47a47bbbb19d7a387b61cca4d11118b7b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.34 MB
diagrams/header-nano.png ADDED

Git LFS Details

  • SHA256: adf9028e7f1598c8c88a5febf8fd19c3fe0acc573b9c78371a25c1ea7795e453
  • Pointer size: 132 Bytes
  • Size of remote file: 1.12 MB
diagrams/header-tiny.png ADDED

Git LFS Details

  • SHA256: 60651c4458c35043e2b8e6ab3013d2e7a9033bf0855b9c89741f41881472a665
  • Pointer size: 132 Bytes
  • Size of remote file: 1.39 MB
diagrams/madeof-nano.png ADDED

Git LFS Details

  • SHA256: 95b9226a1d4f38fc151c345742e19013778a56d35f86a15cc72f8e4fde16a3b2
  • Pointer size: 131 Bytes
  • Size of remote file: 212 kB
diagrams/madeof-tiny.png ADDED

Git LFS Details

  • SHA256: 029c97261769a191e5e68fc30c5a34fd26bf46c4e287df314920a248ca14ca5c
  • Pointer size: 131 Bytes
  • Size of remote file: 231 kB
diagrams/measure.png ADDED

Git LFS Details

  • SHA256: a98ae96d24808bff98e750e1bae5ade3be3b5eceed452f350ce3c39e36c28b6d
  • Pointer size: 131 Bytes
  • Size of remote file: 201 kB
diagrams/phonemes.png ADDED

Git LFS Details

  • SHA256: c830741571c48075f396f949a9f9ffc5439db301bbf6cdd30a3a64f5feefcb4b
  • Pointer size: 131 Bytes
  • Size of remote file: 369 kB
diagrams/soundside-nano.png ADDED

Git LFS Details

  • SHA256: 8a5475a1aeb703e5ba095d4d6deb809940b33ada45109ab6a00c4b9a61661540
  • Pointer size: 131 Bytes
  • Size of remote file: 318 kB
diagrams/soundside.png ADDED

Git LFS Details

  • SHA256: 5dbbb6c500448c68666db80a7759ec1e007ef3db595a4a55c57cd454aea39e0a
  • Pointer size: 131 Bytes
  • Size of remote file: 320 kB
diagrams/textside-nano.png ADDED

Git LFS Details

  • SHA256: f3932f64a18adbeaf3099c947836fcd7ede4727b09d840e6eba3983308fb1483
  • Pointer size: 131 Bytes
  • Size of remote file: 223 kB
diagrams/textside.png ADDED

Git LFS Details

  • SHA256: 0070d9fc75ab39ffaf3ba38bd8e85a64e3aacb2b836c748081d8c5ad06a1ead5
  • Pointer size: 131 Bytes
  • Size of remote file: 263 kB
diagrams/voices.png ADDED

Git LFS Details

  • SHA256: 5f6f07e814bdff4d604555c9b33e0e226017510f2aeb35826603ee970275c05c
  • Pointer size: 131 Bytes
  • Size of remote file: 299 kB
export-check-model.fp32.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "precision": "float",
3
+ "sentences": 200,
4
+ "length_mismatches": 0,
5
+ "snr_median_db": Infinity,
6
+ "snr_min_db": Infinity,
7
+ "logmel_l1_median": 0.0,
8
+ "identical": 200,
9
+ "length_diff_frames": [],
10
+ "bar": "same length on every sentence + median SNR >= 30 dB",
11
+ "pass": true,
12
+ "note": "model.fp32.onnx = the true float32 graph: export_r2's float32 export through the same steps (one-file, float32 phase, exact rewrites, end clamp, voice tail / unvoice inputs). Checked against the .ref float32 rebuild before the voice-input steps (build_release.sh's check, 200/200 identical) and against itself after them, as the shipped nano's file. export_r2: float32 graph vs torch same length.",
13
+ "build_check_before_voice_inputs": {
14
+ "precision": "float",
15
+ "sentences": 200,
16
+ "length_mismatches": 0,
17
+ "snr_median_db": Infinity,
18
+ "snr_min_db": Infinity,
19
+ "logmel_l1_median": 0.0,
20
+ "identical": 200,
21
+ "length_diff_frames": [],
22
+ "bar": "same length on every sentence + median SNR >= 30 dB",
23
+ "pass": true
24
+ }
25
+ }
export-check-model.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "precision": "int8",
3
+ "sentences": 200,
4
+ "length_mismatches": 0,
5
+ "snr_median_db": 17.023494720458984,
6
+ "snr_min_db": 6.948692798614502,
7
+ "logmel_l1_median": 0.0913171046116551,
8
+ "identical": 0,
9
+ "length_diff_frames": [],
10
+ "bar": "at most 1 sentence per check set off by exactly +-1 frame (25 ms), none by more + median log-mel L1 <= 0.20 (+ whisper_check.py)",
11
+ "pass": true,
12
+ "check_ids": "release check: 20 sentences (recipe/export/check_ids.json texts) through the release JS front end with Kokoro-native ids (KaleTTS.prepare, en-us) x all 10 voices, seeded noise, vs model.fp32.onnx",
13
+ "more_check_sets": {
14
+ "en_gb_front_end_kokoro_native": {
15
+ "precision": "int8",
16
+ "sentences": 200,
17
+ "length_mismatches": 0,
18
+ "snr_median_db": 17.148399353027344,
19
+ "snr_min_db": 6.921777725219727,
20
+ "logmel_l1_median": 0.0902997620476854,
21
+ "identical": 0,
22
+ "length_diff_frames": [],
23
+ "bar": "at most 1 sentence per check set off by exactly +-1 frame (25 ms), none by more + median log-mel L1 <= 0.20 (+ whisper_check.py)",
24
+ "pass": true
25
+ },
26
+ "shipped_check_ids_json_plain_ipa": {
27
+ "precision": "int8",
28
+ "sentences": 200,
29
+ "length_mismatches": 0,
30
+ "snr_median_db": 16.977188110351562,
31
+ "snr_min_db": 7.909351348876953,
32
+ "logmel_l1_median": 0.09150100942245123,
33
+ "identical": 0,
34
+ "length_diff_frames": [],
35
+ "bar": "at most 1 sentence per check set off by exactly +-1 frame (25 ms), none by more + median log-mel L1 <= 0.20 (+ whisper_check.py)",
36
+ "pass": true
37
+ }
38
+ },
39
+ "build_check_before_voice_inputs": {
40
+ "precision": "int8",
41
+ "sentences": 200,
42
+ "length_mismatches": 2,
43
+ "snr_median_db": 16.909276962280273,
44
+ "snr_min_db": 6.708309650421143,
45
+ "logmel_l1_median": 0.09033655859657919,
46
+ "identical": 0,
47
+ "length_diff_frames": [
48
+ 1.0,
49
+ 1.0
50
+ ],
51
+ "bar": "at most 1 sentence per check set off by exactly +-1 frame (25 ms), none by more + median log-mel L1 <= 0.20 (+ whisper_check.py)",
52
+ "pass": false,
53
+ "note": "build_release.sh's check (model.onnx vs the .ref float32 rebuild, before add_voice_tail / add_voice_unvoice) with the shipped nano's precision mix: FAIL, 2 sentences +1 frame (see precision_note)"
54
+ },
55
+ "build": "kale-tts-1-nano = its sound generator (sha256 007e0e23...) + its student text side (sha256 81a0d3c4...), distilled from kale-tts-1-base and trained on Kokoro-native ids. export_r2 -> make_onefile -> phase_float32 -> harmsum -> apply_stft (6 ALBERT passes) -> add_end_clamp -> prune -> keep_fp32 + fp16_to_ref_fp32 (duration path) -> add_voice_tail (Magnus 68 / 1 / 90) -> add_voice_unvoice -> apply_voice_values nano.",
56
+ "precision_note": "nano B with the shipped nano's precision mix (int8 decoder / fp16 text side, keep_fp32.py on /g/bert/ /g/bert_encoder/ /g/duration_proj/ int8 weights only, 12.53 MB) failed the length bar: 2 / 3 / 3 sentences +-1 frame on the en-us kn, en-gb kn and plain check sets (Earl, Amy, Toby, Magnus, Frankie). Keeping only the LSTMs or only ALBERT in float32 still failed (1-3 flips per set). So the whole duration path takes the float32 reference weights: keep_fp32.py + fp16_to_ref_fp32.py on /g/bert/ /g/bert_encoder/ /g/duration_proj/ /g/lstms. /g/lstm/ (ALBERT incl. embeddings and norms, the predictor's text encoder LSTMs and norms, the duration LSTM, the duration projection). The sound side stays int8 as shipped. +2.24 MB (14.77 MB). Result: 0 length changes on all three sets (600 sentences), median log-mel L1 0.090-0.092."
57
+ }
export-check-whisper.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "int8_wer": 2.22,
3
+ "float32_wer": 2.33,
4
+ "float32_noise": 0.05,
5
+ "pass": true,
6
+ "lines": "20 api-check lines (recipe/export/whisper_items.json) x all 10 voices, release front end with Kokoro-native ids per accent (en-gb for Amy / Jack), render_release on Modal, Whisper large-v3-turbo (fe_score + score_fe.mjs); float32 rendered twice",
7
+ "per_voice": {
8
+ "s057b": {
9
+ "int8": 0.8,
10
+ "float32_a": 0.8,
11
+ "float32_b": 0.8
12
+ },
13
+ "f06": {
14
+ "int8": 0.8,
15
+ "float32_a": 0.8,
16
+ "float32_b": 0.8
17
+ },
18
+ "d03": {
19
+ "int8": 8.3,
20
+ "float32_a": 7.9,
21
+ "float32_b": 7.9
22
+ },
23
+ "w165": {
24
+ "int8": 0.8,
25
+ "float32_a": 0.8,
26
+ "float32_b": 0.8
27
+ },
28
+ "w602": {
29
+ "int8": 0.8,
30
+ "float32_a": 0.8,
31
+ "float32_b": 0.8
32
+ },
33
+ "m3": {
34
+ "int8": 0.8,
35
+ "float32_a": 1.3,
36
+ "float32_b": 1.3
37
+ },
38
+ "t071": {
39
+ "int8": 0.8,
40
+ "float32_a": 0.8,
41
+ "float32_b": 0.8
42
+ },
43
+ "d13": {
44
+ "int8": 7.5,
45
+ "float32_a": 8.3,
46
+ "float32_b": 8.3
47
+ },
48
+ "x328": {
49
+ "int8": 0.8,
50
+ "float32_a": 0.8,
51
+ "float32_b": 0.8
52
+ },
53
+ "h013f": {
54
+ "int8": 0.8,
55
+ "float32_a": 0.8,
56
+ "float32_b": 1.3
57
+ }
58
+ },
59
+ "note_en_gb": "Amy / Jack ~8 % on int8 and float32 alike: the reference text is the en-us normalisation; the en-gb front end reads dates day-first ('the fourteenth of March') and '17:45' as 'seventeen point four five'. Same on both graphs, so not the export.",
60
+ "bench_192_lines_2_renders_whisper_pct": {
61
+ "mean": 0.529,
62
+ "per_voice": {
63
+ "s057b": 0.34,
64
+ "f06": 0.41,
65
+ "d03": 0.57,
66
+ "w165": 0.43,
67
+ "w602": 0.31,
68
+ "m3": 0.67,
69
+ "t071": 0.61,
70
+ "d13": 0.62,
71
+ "x328": 0.56,
72
+ "h013f": 0.77
73
+ }
74
+ },
75
+ "date": "18 Nov 2026 ~01:30 CET"
76
+ }
frontend/check_homographs.mjs ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Front-end checks (18 Nov), en-us and en-gb: homograph-test.jsonl, the word's reading must be the expected one ("lead" the person vs
2
+ // the metal, "read" present vs past, "live" verb vs adjective); domain-test.jsonl, dotted names said with "dot" in one sentence (no
3
+ // full stop inside), version numbers and decimals as before; d19-d28, sizes and units read the same in both accents (45.7M = "forty
4
+ // five point seven million", 1.1x = "times", 4.8 s = "seconds", 3k = "thousand"). usage: node frontend/check_homographs.mjs
5
+ import { readFileSync } from "node:fs";
6
+ const W = new URL("./words/", import.meta.url).pathname;
7
+ const K = await import(W + "kaleTts.js"), G = await import(W + "enGb.js");
8
+ const { termsReplacer } = await import(new URL("../js/kale-tts.mjs", import.meta.url).pathname); // the runtime's tech-terms step, as it runs before the text rules
9
+ const g2p = (d, British) => { const lex = K.readTable(readFileSync(d + "lexicon.tsv", "utf8")); K.readTable(readFileSync(d + "override.public.tsv", "utf8"), lex);
10
+ const b = readFileSync(d + "g2p.bin"); const m = new K.G2pModel(b.buffer.slice(b.byteOffset, b.byteOffset + b.byteLength));
11
+ return British ? new G.BritishG2p(lex, m) : new K.G2p(lex, m); };
12
+ const us = g2p(W, false), gb = g2p(W + "en-gb/", true);
13
+ const lexOf = (g) => g.lex, terms = (d) => termsReplacer(readFileSync(d + "terms.tsv", "utf8"));
14
+ const tu = terms(W), tg = terms(W + "en-gb/"), nu = K.normalizer(lexOf(us)), ng = G.britishNormalizer(lexOf(gb));
15
+ const norms = [["en-us", (t) => nu(tu(t)), us], ["en-gb", (t) => ng(tg(t)), gb]];
16
+ let bad = 0, n = 0;
17
+ for (const l of readFileSync(new URL("./homograph-test.jsonl", import.meta.url), "utf8").trim().split("\n")) {
18
+ const t = JSON.parse(l);
19
+ for (const [acc, g] of [["en-us", us], ["en-gb", gb]]) {
20
+ const words = t.text.match(/[A-Za-z]+(?:['’][A-Za-z]+)*/g); const at = words.findIndex((x) => x.toLowerCase() === t.word);
21
+ const got = g.phonemes(t.text).split(" ")[at]?.replace(/[.,!?;:…]+$/, ""); n++;
22
+ if (got !== t.expect) { bad++; console.log(`FAIL ${t.id} ${acc} "${t.text}": ${t.word} = ${got}, want ${t.expect} (${t.sense})`); }
23
+ }
24
+ }
25
+ for (const l of readFileSync(new URL("./domain-test.jsonl", import.meta.url), "utf8").trim().split("\n")) {
26
+ const t = JSON.parse(l);
27
+ for (const [acc, norm, g] of norms) {
28
+ const said = norm(t.text), ipa = g.phonemes(said); n++;
29
+ if (!said.includes(t.expect_said) || /\.\s*\S/.test(ipa)) { bad++; console.log(`FAIL ${t.id} ${acc} "${t.text}": said "${said}", ${ipa}`); }
30
+ }
31
+ }
32
+ console.log(`${n - bad} of ${n} right`); process.exit(bad ? 1 : 0);
frontend/dizione/LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.