Church Translate, as it runs at the campuses

Live sermon translation into 100+ languages, running entirely on one Mac per
campus: audio in, voice detection, Whisper on the GPU, NLLB-200 in its own
process, and a built-in web server the congregation reads from on their
phones. No audio leaves the building.

This is the source only. What used to sit beside it — 14 GB of speech and
translation models, 8 GB of voice bundles, 6 GB of natural voices, the Electron
caches, and the app data holding the operator PIN and every service transcript
— is machine state and downloaded assets, and stays in the NAS backup where it
belongs. The vendored node, cloudflared and Windows ffmpeg binaries are out too
(533 MB, re-fetched for packaging); the browser-side runtime beside them is
kept, so a checkout still serves the congregation page.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-23 15:41:21 -04:00
co-authored by Claude Opus 5
commit c9eef0672c
118 changed files with 36031 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
/* Unit-test the Spanish conjugation repairs against MEASURED NLLB output — no model needed.
Every 'from' is a non-word (safe by construction); every real form must pass untouched. */
const S = require('./spa-variants.js');
let pass = 0, fail = 0;
const t = (label, input, want) => {
const got = S.toChurchRegister(input);
const ok = got === want;
console.log((ok ? ' PASS ' : ' FAIL ') + label + (ok ? '' : '\n got "' + got + '"\n want "' + want + '"'));
ok ? pass++ : fail++;
};
console.log('\nMEASURED NON-WORDS — must be repaired');
t('bendecemos (transcript 2026-09-13)', 'Te bendecemos, Señor.', 'Te bendecimos, Señor.');
t('bendicemos (transcript)', 'Bendicemos el nombre de Jesús.', 'Bendecimos el nombre de Jesús.');
t('bendimos (transcript)', 'Bendimos su nombre.', 'Bendecimos su nombre.');
t('bendicimos', 'Hoy bendicimos al Señor.', 'Hoy bendecimos al Señor.');
t('bendico', 'Yo te bendico.', 'Yo te bendigo.');
t('bendecen', 'Ellos bendecen a Dios.', 'Ellos bendicen a Dios.');
t('bendiciré', 'Bendiciré al Señor.', 'Bendeciré al Señor.');
t('benditaremos / bendiciremos', 'Bendiciremos tu nombre. Benditaremos tu nombre.', 'Bendeciremos tu nombre. Bendeciremos tu nombre.');
t('bendíelo -> 1pl hortative, NOT the tú imperative', '¡Bendíelo!', '¡Bendigámoslo!');
t('bendíalo', 'Bendíalo, pueblo.', 'Bendigámoslo, pueblo.');
t('maldiciré', 'No maldiciré.', 'No maldeciré.');
t('pedamos', 'Pedamos en su nombre.', 'Pidamos en su nombre.');
t('ungas / undémonos / redémonos', 'Que ungas a tu siervo. Undémonos, Señor. Redémonos, Señor.', 'Que unjas a tu siervo. Úngenos, Señor. Redímenos, Señor.');
t('dás', 'Tú nos dás vida.', 'Tú nos das vida.');
t('capital preserved at sentence start', 'Bendecemos tu nombre.', 'Bendecimos tu nombre.');
console.log('\nREAL FORMS — must not be touched');
for (const real of ['Bendecimos su nombre.', 'Dios te bendiga.', 'Bendice, alma mía, al Señor.', 'Bendito sea el nombre del Señor.',
'Bendiciones para todos.', 'La bendición de Dios.', 'Él nos bendijo.', 'Bendecirá a su pueblo.', 'Bendiciendo al Señor.',
'Yo bendigo al Señor.', 'Ustedes bendicen a Dios.', 'Pidamos con fe.', 'Nos das vida.', 'Úngenos con tu Espíritu.']) {
t('untouched: ' + real, real, real);
}
console.log('\nEXISTING REGISTER PASS still runs');
t('rezar -> orar', 'Vamos a rezar juntos.', 'Vamos a orar juntos.');
console.log('\n' + pass + ' passed, ' + fail + ' failed');
process.exit(fail ? 1 : 0);