feat(voice): on-device voice tier — Gemma 4, Moonshine and Kokoro in the browser

This commit is contained in:
Bilawal Sidhu committed 2026-09-28 23:00:00 -05:00
1 parent a19897ad15
commit b55663e3ce
65 files changed
+9257 -58

No files matched your search

+7 -1
View File
@@ -24,6 +24,10 @@ const renderer = (file) =>
/^src\/layers\/[^/]+\/(?:index|rendering|snapshotRenderer|overlay|presentation|cards|controls)\.js$/.test(
file,
);
// The runtime phonemizer loader imports a downloaded file only after its
// SHA-256 matches the pinned value; no other module may import a computed URL.
const verifiedRuntimeImport = (file) =>
file === 'src/voice/local/workers/phonemizerRuntime.js';
// Two compatibility composition entries intentionally select standalone defaults.
const compatibilityEdge = (from, to) =>
(from === 'server/providers/local.js' &&
@@ -84,7 +88,9 @@ export function checkImportDirections(root) {
}
let analysis;
try {
analysis = analyzeModule(readFileSync(resolved, 'utf8'));
analysis = analyzeModule(readFileSync(resolved, 'utf8'), {
allowComputedImport: verifiedRuntimeImport(file),
});
} catch (error) {
report(file, error.message);
return null;