// Installs local neural voices for race announcements: the standalone Piper release for // this OS plus Swedish and English voices, into piper/. Run once with internet access: // npm run tts:install const path = require("path"); const { resolvePiperBinary } = require("../server/tts"); const { installAll } = require("../server/tts_install"); const projectDir = path.join(__dirname, ".."); installAll({ projectDir, hasBinary: Boolean(resolvePiperBinary(process.env.RC_PIPER_BIN || "", projectDir)), log: (line) => console.log(line) }) .catch((error) => { console.error(`Piper install failed: ${error.message}`); process.exit(1); });