Scissor Text voice runtime: /vendor/kokoro/kokoro.js ==================================================== This file as a whole is distributed under the GNU General Public License, version 3 or (at your option) any later version, because it contains eSpeak NG, which is under that licence. The full text is beside it in LICENSE.txt. The other parts keep their own licences as well (Apache-2.0 and MIT, see https://text.scissor.studio/vendor/THIRD-PARTY-NOTICES.txt), which allow this combination. It runs only in its own Web Worker (/assets/kokoro-worker.js), which exchanges messages with the page: text to speak in, audio out. The page's other code is not part of it. Exact source of every part -------------------------- - @huggingface/transformers@3.8.1: https://github.com/huggingface/transformers.js/tree/2ec882e739e4cb461f8d440d4d7394cbf5372429 npm: https://registry.npmjs.org/@huggingface/transformers/-/transformers-3.8.1.tgz - kokoro-js@1.2.1: https://github.com/hexgrad/kokoro/tree/664c76a704021239ba59c84dcbaa4d3dece01fe9/kokoro.js npm: https://registry.npmjs.org/kokoro-js/-/kokoro-js-1.2.1.tgz - onnxruntime-common@1.21.0: https://github.com/microsoft/onnxruntime/tree/v1.21.0/js/common npm: https://registry.npmjs.org/onnxruntime-common/-/onnxruntime-common-1.21.0.tgz - onnxruntime-web@1.22.0-dev.20250409-89f8206ba4: https://github.com/microsoft/onnxruntime/tree/89f8206ba4f1c22c39e0297fb55272e8ce8cd7d0/js/web npm: https://registry.npmjs.org/onnxruntime-web/-/onnxruntime-web-1.22.0-dev.20250409-89f8206ba4.tgz - phonemizer@1.2.1: https://github.com/xenova/phonemizer.js/tree/6835144b7ee9043129222549c1ed2f6a27216278 npm: https://registry.npmjs.org/phonemizer/-/phonemizer-1.2.1.tgz - eSpeak NG: compiled to WebAssembly and embedded in phonemizer 1.2.1 (src/espeakng.worker.js and data/espeakng.worker.data at the commit above), built with eSpeak NG's own Emscripten wrapper (emscripten/espeakng_glue.cpp). phonemizer does not record which eSpeak NG revision it was built from; it was built in January 2025, after eSpeak NG 1.52.0. Source: https://github.com/espeak-ng/espeak-ng (release 1.52.0: https://github.com/espeak-ng/espeak-ng/tree/1.52.0). - ONNX Runtime WebAssembly files beside the bundle (ort-wasm-simd-threaded.jsep.mjs and .wasm): copied unchanged from onnxruntime-web above (its dist/ folder). How this file is built ---------------------- 1. npm install (versions above, from Scissor Text's package-lock.json). 2. Bundle this entry file with esbuild 0.25.10: esbuild entry.mjs --bundle --format=esm --platform=browser --target=es2022 --minify --legal-comments=none 3. Replace every "https://huggingface.co/onnx-community/Kokoro-82M-v1.0-ONNX/resolve/main/voices/" in the output with "/models/kokoro-82m/voices/", so the voices load from this site. The entry file (site/vendor/kokoro.mjs), in full: // Entry for the on-device voice bundle (scripts/build.mjs builds it with esbuild into // dist/vendor/kokoro/kokoro.js): Kokoro plus the transformers.js settings it needs, so the // worker can point every download at this site instead of Hugging Face. export { KokoroTTS, TextSplitterStream } from 'kokoro-js'; export { env } from '@huggingface/transformers';