Simplify local speech models

This commit is contained in:
Mohamed Boudra
2026-05-28 15:40:37 +07:00
parent 0737c5c973
commit 8e4cbf8ca6
23 changed files with 192 additions and 2235 deletions
@@ -29,7 +29,7 @@ function usage(): string {
" npm run speech:transcribe:local -- ./sample.wav --out ./tmp/sample.transcript.txt",
"",
"Env fallbacks:",
" PASEO_LOCAL_MODELS_DIR, PASEO_LOCAL_STT_MODEL",
" PASEO_LOCAL_MODELS_DIR",
].join("\n");
}
@@ -49,9 +49,7 @@ function parseArgs(argv: string[]): CliOptions {
const positional: string[] = [];
let outPath: string | undefined;
let model = LocalSttModelIdSchema.parse(
process.env.PASEO_LOCAL_STT_MODEL ?? DEFAULT_LOCAL_STT_MODEL,
);
let model = LocalSttModelIdSchema.parse(DEFAULT_LOCAL_STT_MODEL);
let modelsDir = defaultModelsDir;
for (let i = 0; i < argv.length; i++) {