texttospeech.tools is built on the following third-party components. Each is used under the licence named here; the full licence texts are linked at the bottom of this page.
Voices and speech engine
Kokoro-82M v1.0 voice model and voice files, © hexgrad, Apache License 2.0. Source · ONNX export used here.
Kokoro-82M v1.1-zh voice model and the 100 Mandarin voices, © hexgrad, Apache License 2.0; the Chinese speech data was contributed by LongMaoData. Source · ONNX export used here.
Text normalisation and phoneme post-processing adapted from kokoro-js 1.2.1, © hexgrad and contributors, Apache License 2.0. Source.
Transformers.js 3.8.1, © Hugging Face, Apache License 2.0. Source.
ONNX Runtime Web 1.30, © Microsoft Corporation, MIT License. Source.
Pronunciation (eSpeak NG)
Words are converted to pronunciations with eSpeak NG, compiled to WebAssembly by phonemizer.js 1.2.1. eSpeak NG is © its authors and licensed under the GNU General Public License, version 3 or later; phonemizer.js is © Joshua Lochner and licensed under the Apache License 2.0. This component is delivered to your browser as a separate file (the phonemizer script this site loads on demand) and is not combined with the rest of the site's code.
Corresponding source: eSpeak NG at github.com/espeak-ng/espeak-ng; the WebAssembly build scripts and wrapper at github.com/xenova/phonemizer.js (version 1.2.1). On request we will provide a copy of the exact corresponding source for the version served on this site, for at least three years from the last time we served it. Write to support@texttospeech.tools.
You may replace or modify this component under the terms of the GPL; it is loaded as its own file and the rest of the site does not depend on its internals.
Chinese pronunciation
Chinese text is converted to pronunciations by our port of the Chinese front end of misaki 0.9, © hexgrad, Apache License 2.0 (source); its tone-sandhi rules are adapted from PaddleSpeech, © PaddlePaddle Authors, Apache License 2.0 (source).
Word segmentation: jieba-wasm 2.4 (jieba-rs), © its authors, MIT License (source). Pinyin: pinyin-pro 3.29, © zh-lx, MIT License (source). Traditional-to-simplified conversion: opencc-js 1.4, © nk2028, MIT License, with OpenCC dictionaries © the OpenCC authors, Apache License 2.0 (source). These are loaded only on the Chinese voice pages.
Audio encoding
Mediabunny 1.60 and @mediabunny/mp3-encoder 1.60, © Vanilagy, Mozilla Public License 2.0. Source.
The MP3 encoder includes the LAME MP3 encoder compiled to WebAssembly, © the LAME authors, GNU Lesser General Public License, version 2 or later. Source. It is loaded as a separate file only when you download an MP3, and can be replaced by the user under the terms of the LGPL.
Document import
PDF.js 5.7, © Mozilla Foundation, Apache License 2.0. Source. Word files are read by our own code.
Licence texts
Apache License 2.0 · MIT License · GNU GPL v3 · GNU LGPL v2 · Mozilla Public License 2.0