# SceneSparrow V2.9 speech worker source Build ss-speech-20261120.1. The combined speech worker and SceneSparrow's original files in this package are distributed under GPL-3.0-or-later. Upstream components keep their own copyright and license notices. This grant covers the worker, its adapters and build code. Artwork, imported content and the separate rehearsal interface are outside this source package. See COPYING and licenses/. No warranty. The worker uses a newly compiled eSpeak NG 1.52.0, commit 4870adfa25b1a32b4361592f1be8a40337c58d6c. It does not use the old unpinned compiled phonemizer. voice/ contains its preferred C and JavaScript source, pristine upstream archive, documented patches, exact toolchain information, generated artifacts, clean rebuild recipe and smoke test. upstream/ contains the full exact Kokoro, Transformers.js, ONNX Runtime and Emscripten source archives, with URLs and hashes. node_modules/ contains the exact dependency files read by esbuild plus their package manifests and notices. matching-output/ contains the five files distributed with this release. provenance/files.json hashes every packaged input and output except that manifest itself. ## Rebuild the pronunciation engine Use Node 24 and the official Emscripten 3.1.64 SDK with the pinned local CMake 3.30.2 and Ninja 1.11.1.1 layouts documented in voice/README.md. Set SCENESPARROW_TOOLS to that local tools root and activate the SDK locally. From this package directory run: ```text node voice/fetch-source.mjs node voice/build.mjs --clean node voice/smoke.mjs ``` The package includes the esbuild launcher and its platform tool for the combined JavaScript worker. Install the separately documented Emscripten, CMake and Ninja tools to rebuild the C pronunciation frontend; their pinned source archives and applicable notices are included. The recipe handles Windows paths and uses portable tar/CMake/Ninja/Python commands on macOS and Linux. The supplied pronunciation artifacts have Windows rebuild records; cross-platform byte identity is not claimed. ## Rebuild the combined worker From this package directory run: ```text npm ci --prefix worker-build --ignore-scripts --no-audit --no-fund node scripts/build-worker.mjs node --test tests/recording-splitter.test.mjs tests/gpu-backend.test.mjs tests/worker-policy.test.mjs ``` The worker-build lockfile pins esbuild 0.28.2 and its platform tool packages. npm ci --prefix worker-build retrieves only that general build tool. The exact speech dependencies are already vendored in node_modules; the build needs no Capacitor, Playwright or Lighthouse installation. The source snapshots and preferred upstream source archives are also included for inspection and modification. worker-build/release.json supplies only the speech version and build for the worker banner, independently of interface-only updates. The alias in build-worker.mjs replaces phonemizer with voice/artifact/phonemizer.js and rejects the old implementation entering the bundle. The normal website build command is outside this worker-only package. Compare all five dist/engine/ files with matching-output/ and provenance/files.json. The guarded dependency adapters in scripts/worker-patches.mjs pin Kokoro revisions, forward its session options and limit explicitly marked Whisper encoder fetches to last_hidden_state. Decoder outputs are unchanged. The web inference serialization tail resolves to undefined rather than retaining the last output object; its portable tests cover result delivery, order, rejection recovery and forced-GC WeakRef release. The adapters reject unexpected upstream text or match counts. CPU arena and memory pattern flags are explicit policy; the pinned runtime already disables them by default, so these flags alone do not establish memory savings. Pinned model bytes are SHA-256 checked at insertion, then trusted only in the origin-private verified-v2 cache. Legacy entries must pass the exact pinned hash before migration. Strict offline jobs cannot fetch missing model weights or voice presets. An explicitly approved voice load initializes the pronunciation runtime and caches the exact versioned local runtime files where CacheStorage is available. Native bundled-runtime mode permits only an exact same-origin runtime-file allowlist; it does not authorize model or preset downloads. Native policy is covered by mocks; this package does not claim physical-device native acceptance. The worker accepts an explicit takeModel of tiny or base for reference, song and performance transcription, and reports the selected model repository. The separate interface chooses Tiny English for phones and tablets and Base English for desktops; load-detailed continues to load Base. Shared voice and short-recognition sessions stay in one worker. A shutdown request disposes model sessions and terminates tracked runtime children before acknowledging closure. That acknowledgement is not proof that a browser has physically released its WASM memory. The portable worker-policy tests cover these routes, first-use runtime caching, native allowlist boundaries, cache failures, thread limits and low-memory voice disposal. Runtime memory measurements remain platform-specific. The portable recording splitter tests exercise bounded PCM pieces, silence, quiet and loud passages, continuity, cancellation and worker routing. Their synthetic audio is generated in memory. They import only Node built-ins and the preferred src/ files. They do not require browser models or real recordings. Kokoro's preferred JavaScript source and build scripts are inside the kokoro.js directory of its upstream archive. ONNX's web TypeScript and native runtime sources are in its upstream archive. Transformers' preferred JavaScript source and Emscripten's JavaScript and C runtime sources are in their respective archives. Browser model weights and voice presets are separately licensed runtime data fetched from Hugging Face. They are not a user's script or recording. See licenses/kokoro-js.txt and licenses/whisper.txt. These source materials do not grant rights in any script, lyrics, recording or performer identity.