Junco v0.1: ONNX release, model card, samples
Browse files- .gitattributes +4 -0
- LICENSE +202 -0
- NOTICE +16 -0
- README.md +272 -0
- onnx/LICENSE-vocos +21 -0
- onnx/decoder-int8.onnx +3 -0
- onnx/encoder.onnx +3 -0
- onnx/junco.json +20 -0
- onnx/vocoder.onnx +3 -0
- samples/assistant.wav +3 -0
- samples/greeting.wav +3 -0
- samples/news.wav +3 -0
- samples/story.wav +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,7 @@ 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/assistant.wav filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
samples/greeting.wav filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
samples/news.wav filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
samples/story.wav filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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UTION
|
| 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.
|
NOTICE
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Junco v0.1 (flockspeech/junco)
|
| 2 |
+
Copyright 2026 Flock Speech
|
| 3 |
+
|
| 4 |
+
Licensed under the Apache License, Version 2.0 (see LICENSE). This covers the Junco acoustic model weights
|
| 5 |
+
(onnx/encoder.onnx, onnx/decoder-int8.onnx) and the model configuration (onnx/junco.json).
|
| 6 |
+
|
| 7 |
+
Third-party components:
|
| 8 |
+
|
| 9 |
+
- Vocos vocoder (onnx/vocoder.onnx): converted from charactr/vocos-mel-24khz,
|
| 10 |
+
Copyright (c) 2023 Charactr Inc., MIT License (see onnx/LICENSE-vocos).
|
| 11 |
+
- Training data: LJ Speech Dataset (Keith Ito and Linda Johnson), public domain.
|
| 12 |
+
|
| 13 |
+
Not included, required at run time to turn text into phonemes:
|
| 14 |
+
|
| 15 |
+
- espeak-ng (GPL-3.0) and phonemizer (GPL-3.0). The flockspeech pip package installs them as separate
|
| 16 |
+
dependencies.
|
README.md
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
library_name: onnx
|
| 6 |
+
pipeline_tag: text-to-speech
|
| 7 |
+
tags:
|
| 8 |
+
- text-to-speech
|
| 9 |
+
- tts
|
| 10 |
+
- speech-synthesis
|
| 11 |
+
- onnx
|
| 12 |
+
- flow-matching
|
| 13 |
+
- on-device
|
| 14 |
+
- edge
|
| 15 |
+
- offline
|
| 16 |
+
- cpu
|
| 17 |
+
datasets:
|
| 18 |
+
- keithito/lj_speech
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# Junco v0.1
|
| 22 |
+
|
| 23 |
+
**A small English text-to-speech model that runs offline on a CPU.**
|
| 24 |
+
|
| 25 |
+
Junco is an 11.4M-parameter flow-matching TTS model from [Flock Speech](https://huggingface.co/flockspeech). It turns
|
| 26 |
+
English text into natural 24 kHz speech on an ordinary CPU, faster than real time. It has no GPU, network or PyTorch
|
| 27 |
+
dependency, and the full model is a 44 MB download.
|
| 28 |
+
|
| 29 |
+
| | |
|
| 30 |
+
|---|---|
|
| 31 |
+
| **Developed by** | Flock Speech |
|
| 32 |
+
| **Model type** | Non-autoregressive TTS: transformer encoder, duration predictor, conditional flow-matching decoder, Vocos vocoder |
|
| 33 |
+
| **Language** | English (US) |
|
| 34 |
+
| **Voices** | 1 (female, read-aloud style) |
|
| 35 |
+
| **Output** | 24 kHz mono audio |
|
| 36 |
+
| **Parameters** | 11.4M acoustic model + 13.5M vocoder |
|
| 37 |
+
| **Download** | 44 MB (ONNX; int8 decoder, fp16 encoder and vocoder) |
|
| 38 |
+
| **Runtime** | ONNX Runtime on CPU (Linux, macOS, Windows; x86-64 and ARM64) |
|
| 39 |
+
| **License** | Apache-2.0 (vocoder weights MIT) |
|
| 40 |
+
| **Version** | v0.1, November 2026 |
|
| 41 |
+
|
| 42 |
+
## Samples
|
| 43 |
+
|
| 44 |
+
All samples were made with the files in this repository at default settings (8 steps, seed 0), with no editing.
|
| 45 |
+
|
| 46 |
+
| Use | Text | Audio |
|
| 47 |
+
|---|---|---|
|
| 48 |
+
| Greeting | *Hello! I'm Junco, a tiny voice that runs entirely on your own device.* | <audio controls src="https://huggingface.co/flockspeech/junco/resolve/main/samples/greeting.wav"></audio> |
|
| 49 |
+
| Assistant | *Your next meeting starts in fifteen minutes. Would you like me to read the agenda?* | <audio controls src="https://huggingface.co/flockspeech/junco/resolve/main/samples/assistant.wav"></audio> |
|
| 50 |
+
| Narration | *The old lighthouse keeper climbed the spiral stairs one last time, and watched the ships come home through the fog.* | <audio controls src="https://huggingface.co/flockspeech/junco/resolve/main/samples/story.wav"></audio> |
|
| 51 |
+
| News | *Researchers announced on Tuesday that the new battery can be charged in under ten minutes, and lasts twice as long.* | <audio controls src="https://huggingface.co/flockspeech/junco/resolve/main/samples/news.wav"></audio> |
|
| 52 |
+
|
| 53 |
+
## Quick start
|
| 54 |
+
|
| 55 |
+
The [`flockspeech`](https://pypi.org/project/flockspeech/) Python package bundles these weights, so nothing is downloaded
|
| 56 |
+
at run time.
|
| 57 |
+
|
| 58 |
+
```sh
|
| 59 |
+
pip install flockspeech
|
| 60 |
+
flockspeech "Hello! I'm Junco." -o hello.wav --play
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
```python
|
| 64 |
+
from flockspeech import Junco
|
| 65 |
+
|
| 66 |
+
tts = Junco() # loads in under a second
|
| 67 |
+
audio = tts("Hello there.") # float32 numpy array, 24 kHz mono
|
| 68 |
+
tts.save("Hello there.", "hello.wav")
|
| 69 |
+
|
| 70 |
+
# Low latency: audio is produced sentence by sentence
|
| 71 |
+
for chunk in tts.stream(long_text):
|
| 72 |
+
play(chunk)
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
To use the files in this repository directly:
|
| 76 |
+
|
| 77 |
+
```python
|
| 78 |
+
from huggingface_hub import snapshot_download
|
| 79 |
+
from flockspeech import Junco
|
| 80 |
+
|
| 81 |
+
path = snapshot_download("flockspeech/junco", allow_patterns=["onnx/*"])
|
| 82 |
+
tts = Junco(model_dir=f"{path}/onnx")
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
### Options
|
| 86 |
+
|
| 87 |
+
| Parameter | Default | Effect |
|
| 88 |
+
|---|---|---|
|
| 89 |
+
| `speed` | 1.0 | Speaking rate; 1.2 is 20% faster |
|
| 90 |
+
| `steps` | 8 | Flow-matching steps; 4 is about 1.5× faster with slightly lower quality |
|
| 91 |
+
| `seed` | 0 | Fixes the small random variation in delivery, so output is reproducible |
|
| 92 |
+
| `threads` | up to 4 | CPU threads for ONNX Runtime |
|
| 93 |
+
|
| 94 |
+
## Evaluation
|
| 95 |
+
|
| 96 |
+
We benchmarked Junco against open TTS models of similar purpose. Every model was run with the same harness, on the
|
| 97 |
+
same sentences and the same machine, and scored by the same tools.
|
| 98 |
+
|
| 99 |
+
**Test set.** 150 sentences from LibriTTS-R test-clean (35 speakers, 6 to 40 words each). None of the models trained on
|
| 100 |
+
them. F5-TTS was scored on a fixed subset of 75 sentences, because it is slow on a CPU.
|
| 101 |
+
|
| 102 |
+
**Metrics.**
|
| 103 |
+
- **UTMOS22:** predicted naturalness on a 1–5 scale.
|
| 104 |
+
- **UTMOSv2:** a second, independent naturalness predictor.
|
| 105 |
+
- **WER:** word error rate of Whisper large-v3-turbo transcripts, after Whisper's English text normaliser.
|
| 106 |
+
|
| 107 |
+
### Everyday speech
|
| 108 |
+
|
| 109 |
+
| Model | Size (MB) | UTMOS22 ↑ | UTMOSv2 ↑ | WER ↓ | License |
|
| 110 |
+
|---|---:|---:|---:|---:|---|
|
| 111 |
+
| Real recordings (reference) | n/a | 4.23 | 3.29 | 2.30% | n/a |
|
| 112 |
+
| **Junco v0.1** | **77.2** † | **4.20** | **3.72** | **1.71%** | **Apache-2.0** |
|
| 113 |
+
| Matcha-TTS | 274.6 | 4.34 | 3.80 | 1.65% | MIT |
|
| 114 |
+
| Piper (lessac, medium) | 63.2 | 4.35 | 3.79 | 2.33% | GPL-3.0 |
|
| 115 |
+
| F5-TTS v1 | 1402.9 | 4.24 | 3.52 | 2.58% | CC BY-NC 4.0 weights |
|
| 116 |
+
| KittenTTS nano 0.1 | 23.9 | 3.59 | 2.02 | 3.12% | Apache-2.0 |
|
| 117 |
+
|
| 118 |
+
† Benchmark run with the PyTorch checkpoint. The ONNX release in this repository is **44 MB**; see
|
| 119 |
+
[Optimised release](#optimised-release).
|
| 120 |
+
|
| 121 |
+
Junco's word error rate is lower than that of the real recordings. Its naturalness is close to the real recordings
|
| 122 |
+
(4.20 vs 4.23), but about 0.15 below Piper and Matcha-TTS. On the 92-sentence hard-text set (numbers, dates, money,
|
| 123 |
+
contact details, names, homographs and assistant-style replies), Junco's WER is 4.9%. Piper scored 4.9%, Matcha-TTS 5.2%,
|
| 124 |
+
F5-TTS 7.0% and KittenTTS 9.3%. On one-minute paragraphs, Junco's WER is 0.5%.
|
| 125 |
+
|
| 126 |
+
### Speed
|
| 127 |
+
|
| 128 |
+
Speed is measured as seconds of audio produced per second of compute, vocoder included, on 13 typical reply sentences.
|
| 129 |
+
|
| 130 |
+
| Model | 1 CPU thread ↑ | 4 CPU threads ↑ | NVIDIA T4 GPU ↑ | Peak RAM |
|
| 131 |
+
|---|---:|---:|---:|---:|
|
| 132 |
+
| Piper | 7.4× | 13.5× | n/a | 382 MB |
|
| 133 |
+
| KittenTTS | 3.3× | 5.0× | n/a | 789 MB |
|
| 134 |
+
| **Junco v0.1 (PyTorch)** | **3.1×** | **5.1×** | **33×** | **623 MB** |
|
| 135 |
+
| Matcha-TTS | 0.7× | 1.3× | 25× | 1,453 MB |
|
| 136 |
+
| F5-TTS v1 | 0.006× | 0.011× | 2.1× | 3,698 MB |
|
| 137 |
+
|
| 138 |
+
The CPU was an Intel Xeon at 2.2 GHz, a slow cloud CPU. Desktop and laptop CPUs are several times faster.
|
| 139 |
+
|
| 140 |
+
### Optimised release
|
| 141 |
+
|
| 142 |
+
The ONNX graphs in this repository were checked against the PyTorch model:
|
| 143 |
+
- **Before quantisation:** they match PyTorch to over 78 dB SNR.
|
| 144 |
+
- **After quantisation:** we compared quality and speed on 40 sentences from the same test set, measured on an Apple M1.
|
| 145 |
+
|
| 146 |
+
| Build | Size | UTMOS22 | 1 thread | 4 threads | Peak RAM |
|
| 147 |
+
|---|---:|---:|---:|---:|---:|
|
| 148 |
+
| fp32 reference | 100 MB | 4.21 | 5.1× | n/a | n/a |
|
| 149 |
+
| **This release** (int8 decoder, fp16 storage) | **44 MB** | **4.18** | **8.7×** | **19×** | **265 MB** |
|
| 150 |
+
| This release, `steps=4` | 44 MB | 4.12 | 13.6× | 27× | 265 MB |
|
| 151 |
+
|
| 152 |
+
The UTMOS difference between the fp32 reference and this release is −0.03 ± 0.05 (95% confidence interval), which is
|
| 153 |
+
not significant. We quantised only the decoder, which does most of the computation. An int8 vocoder cost 0.15 UTMOS,
|
| 154 |
+
so the vocoder stays at full precision; its weights are stored as fp16 and computed in fp32.
|
| 155 |
+
|
| 156 |
+
**Latency.** Start-up takes about 0.7 s. When streaming on 4 M1 threads, the first audio arrives about 0.25 s after
|
| 157 |
+
the request.
|
| 158 |
+
|
| 159 |
+
## Intended use
|
| 160 |
+
|
| 161 |
+
**Suitable for:**
|
| 162 |
+
- Voice output on devices and in apps that must work offline or keep text private: assistants, accessibility and
|
| 163 |
+
screen-reading tools, kiosks, robotics, games and embedded products.
|
| 164 |
+
- CPU-only servers where cost or latency matters.
|
| 165 |
+
- Prototyping and research on small TTS models.
|
| 166 |
+
|
| 167 |
+
**Out of scope:**
|
| 168 |
+
- Languages other than English, or speaker voices other than the one provided. Junco has no voice cloning.
|
| 169 |
+
- Expressive, emotional or conversational styles. The voice reads in a neutral, read-aloud style.
|
| 170 |
+
- Impersonating a real person, or producing audio meant to deceive listeners about who is speaking or whether the
|
| 171 |
+
speech is synthetic.
|
| 172 |
+
|
| 173 |
+
## Limitations
|
| 174 |
+
|
| 175 |
+
- **No text normalisation.** Write numbers, currency, dates and abbreviations in words: "five dollars", not "$5";
|
| 176 |
+
"Doctor", not "Dr.". Raw digits and symbols are read by espeak-ng's rules, which may not be what you want. Most of
|
| 177 |
+
Junco's errors on the hard-text set are of this kind:
|
| 178 |
+
- assistant-style replies: 20% WER;
|
| 179 |
+
- contact details: 13%;
|
| 180 |
+
- money: 12%;
|
| 181 |
+
- names: 11%.
|
| 182 |
+
- **Pronunciation comes from espeak-ng.** Rare names, brands and some homographs, such as *read* and *lead*, can be
|
| 183 |
+
mispronounced.
|
| 184 |
+
- **One voice, one accent.** The model learned from a single US English speaker.
|
| 185 |
+
- **Long-form audio.** Text is synthesised sentence by sentence. Prosody does not carry across sentences, and
|
| 186 |
+
naturalness on long paragraphs is lower (UTMOS22 3.88).
|
| 187 |
+
- **Bright high frequencies.** About 14% of Junco's energy lies above 4 kHz, against 2% for real recordings. On some
|
| 188 |
+
playback systems this may sound slightly bright or hissy.
|
| 189 |
+
- **Automatic metrics only.** The quality figures come from automatic predictors (UTMOS22, UTMOSv2) and Whisper, not
|
| 190 |
+
from a formal human listening test.
|
| 191 |
+
|
| 192 |
+
## Risks and responsible use
|
| 193 |
+
|
| 194 |
+
Synthetic speech can be misused for deception. Junco produces a single fixed voice and cannot clone speakers, which
|
| 195 |
+
limits impersonation risk. We still ask that you:
|
| 196 |
+
- tell listeners when speech is synthetic, where that matters;
|
| 197 |
+
- not use the model for fraud, harassment or deceptive impersonation;
|
| 198 |
+
- review output before you use it in safety-critical or high-stakes settings.
|
| 199 |
+
|
| 200 |
+
## Model details
|
| 201 |
+
|
| 202 |
+
### Architecture
|
| 203 |
+
|
| 204 |
+
The model runs in four stages:
|
| 205 |
+
1. **Text front end:** espeak-ng converts text to IPA phonemes (en-us, with stress marks). A blank token is inserted
|
| 206 |
+
between phonemes.
|
| 207 |
+
2. **Text encoder (3.2M parameters):** 3 ConvNeXt pre-net blocks, then 6 transformer layers (width 192, RoPE, SwiGLU,
|
| 208 |
+
RMSNorm). It predicts a per-phoneme mel prior.
|
| 209 |
+
3. **Duration predictor (0.3M parameters):** a convolutional regressor of log-durations. It was trained on alignments from Monotonic
|
| 210 |
+
Alignment Search, so no external aligner is needed.
|
| 211 |
+
4. **Decoder (7.9M parameters):** a flow-matching U-Net hybrid.
|
| 212 |
+
- ConvNeXt blocks run at the full frame rate, and four adaLN transformer blocks run at half the frame rate.
|
| 213 |
+
- It uses classifier-free guidance (weight 1.0) and 8 Euler steps with a sway-sampling schedule.
|
| 214 |
+
- It outputs a 100-band log-mel spectrogram (hop 256, 24 kHz).
|
| 215 |
+
|
| 216 |
+
The vocoder is [Vocos](https://huggingface.co/charactr/vocos-mel-24khz) (charactr/vocos-mel-24khz, MIT). In ONNX it
|
| 217 |
+
predicts the STFT magnitude and phase, and the inverse STFT runs in numpy.
|
| 218 |
+
|
| 219 |
+
### Files
|
| 220 |
+
|
| 221 |
+
| File | Contents | Size |
|
| 222 |
+
|---|---|---:|
|
| 223 |
+
| `onnx/encoder.onnx` | Text encoder and duration predictor (fp16 weights, fp32 compute) | 7.2 MB |
|
| 224 |
+
| `onnx/decoder-int8.onnx` | One guided flow-matching step (int8 dynamic quantisation) | 9.9 MB |
|
| 225 |
+
| `onnx/vocoder.onnx` | Vocos backbone and spectral head (fp16 weights, fp32 compute) | 27.1 MB |
|
| 226 |
+
| `onnx/junco.json` | Mel normalisation statistics and default inference settings | <1 kB |
|
| 227 |
+
| `samples/` | The audio samples above | |
|
| 228 |
+
|
| 229 |
+
### Training
|
| 230 |
+
|
| 231 |
+
| | |
|
| 232 |
+
|---|---|
|
| 233 |
+
| **Data** | [LJ Speech](https://keithito.com/LJ-Speech-Dataset/): 13,100 clips, about 24 hours, one speaker, public domain |
|
| 234 |
+
| **Objective** | Conditional flow matching (logit-normal time sampling, σ_min 1e-4), MAS prior loss, duration MSE |
|
| 235 |
+
| **Guidance** | Condition dropped for 10% of training examples, for classifier-free guidance |
|
| 236 |
+
| **Optimiser** | AdamW (lr 2e-4, β 0.9/0.98, weight decay 0.01), 1,000 warm-up steps, EMA 0.999 |
|
| 237 |
+
| **Batching** | Dynamic batches of up to 20,000 mel frames |
|
| 238 |
+
| **Compute** | 44,485 steps in 3 hours on one NVIDIA T4 GPU |
|
| 239 |
+
| **Released weights** | EMA weights |
|
| 240 |
+
|
| 241 |
+
**Environmental impact.** The final training run used about 3 GPU-hours on one NVIDIA T4 (70 W TDP), or about
|
| 242 |
+
0.2 kWh. Architecture experiments before it used more.
|
| 243 |
+
|
| 244 |
+
## License
|
| 245 |
+
|
| 246 |
+
- **Junco weights and configuration:** [Apache License 2.0](LICENSE). Commercial use, modification and redistribution
|
| 247 |
+
are allowed.
|
| 248 |
+
- **Vocos vocoder weights** (`onnx/vocoder.onnx`): MIT, © 2023 Charactr Inc. See `onnx/LICENSE-vocos`.
|
| 249 |
+
- **Training data:** LJ Speech, public domain.
|
| 250 |
+
|
| 251 |
+
**Run-time dependency.** Text-to-phoneme conversion uses espeak-ng and phonemizer. Both are GPL-3.0 and are **not**
|
| 252 |
+
included in this repository. The `flockspeech` package installs them as separate dependencies. If you plan to ship
|
| 253 |
+
Junco inside a closed-source product, review their licence terms, or replace the phonemiser with one under a licence
|
| 254 |
+
that suits you. See [NOTICE](NOTICE).
|
| 255 |
+
|
| 256 |
+
## Citation
|
| 257 |
+
|
| 258 |
+
```bibtex
|
| 259 |
+
@misc{flockspeech2026junco,
|
| 260 |
+
title = {Junco: a small flow-matching text-to-speech model for on-device use},
|
| 261 |
+
author = {{Flock Speech}},
|
| 262 |
+
year = {2026},
|
| 263 |
+
howpublished = {\url{https://huggingface.co/flockspeech/junco}},
|
| 264 |
+
note = {Version 0.1}
|
| 265 |
+
}
|
| 266 |
+
```
|
| 267 |
+
|
| 268 |
+
## Acknowledgements
|
| 269 |
+
|
| 270 |
+
Junco builds on ideas from Matcha-TTS (conditional flow matching for TTS), Glow-TTS (Monotonic Alignment Search),
|
| 271 |
+
F5-TTS (sway sampling), ZipVoice and SupertonicTTS (efficient decoder design), and Vocos (vocoder). We thank the authors
|
| 272 |
+
of these works and of LJ Speech, LibriTTS-R, UTMOS and Whisper.
|
onnx/LICENSE-vocos
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2023 Charactr Inc.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
onnx/decoder-int8.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c940fddceb7b22fea2d1c38b4b966fc15774e093152c8c319c7d0ffbfa409cd6
|
| 3 |
+
size 9936441
|
onnx/encoder.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fae7a6d627b0d33961a78ec302d642b1d609fe68b531f82164a55b277a15e53d
|
| 3 |
+
size 7174680
|
onnx/junco.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "junco",
|
| 3 |
+
"version": "v0.1",
|
| 4 |
+
"sample_rate": 24000,
|
| 5 |
+
"hop": 256,
|
| 6 |
+
"n_fft": 1024,
|
| 7 |
+
"mean": -1.49140640330624,
|
| 8 |
+
"std": 2.024339073543612,
|
| 9 |
+
"defaults": {
|
| 10 |
+
"n_steps": 8,
|
| 11 |
+
"cfg_w": 1.0,
|
| 12 |
+
"temp": 0.667,
|
| 13 |
+
"sway": -1.0
|
| 14 |
+
},
|
| 15 |
+
"files": {
|
| 16 |
+
"encoder": "encoder.onnx",
|
| 17 |
+
"decoder": "decoder-int8.onnx",
|
| 18 |
+
"vocoder": "vocoder.onnx"
|
| 19 |
+
}
|
| 20 |
+
}
|
onnx/vocoder.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1781ab9038b0ec7c7b44dc04d00ca8fe60dde0e9215ef73be353628085a18873
|
| 3 |
+
size 27099450
|
samples/assistant.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a52a29fd3e2e9ef137c46369fd2178e24ef22e4f8a101c43836d9e2811347265
|
| 3 |
+
size 268044
|
samples/greeting.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0c69918794ce88b5648943bd25edfddf45a5fd2d43896182fe2b5c55cf071502
|
| 3 |
+
size 262924
|
samples/news.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a04fefe11667375467fce19d31ba9d4aeedec83efbdc508acf30315369c3e1e1
|
| 3 |
+
size 365612
|
samples/story.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e99fd273aaf04ec4f7d66128f082f665e89ae9dbe14362799b40c8a9302fa6cd
|
| 3 |
+
size 338476
|