mirror of
https://github.com/Kynde/dais.git
synced 2026-10-20 08:32:28 +02:00
Runtime-switchable ASR language without reloading the resident model: a
new set_language ndjson message mutates the language the ear passes to
faster-whisper per utterance ("auto"/null = per-utterance autodetect).
One knob, shaped like the existing strategy/enter-mode toggles
(session-only; config wins on restart): language ∈ en | fi | auto.
Commands may carry :lang; untagged commands belong to the base language
(:asr :language). The router filters live commands by the utterance's
own reported language, so it works the same forced or autodetected — a
phrase only matters when the model is transcribing in its language.
normalize is now Unicode-aware so non-ASCII phrases (Finnish ä/ö)
survive instead of being stripped.
Surfaces: dais-ctl set language <code|auto>, dais-top [l] cycle, status
reports language/languages, and a :set-language voice control (:to lang).
Default stays small.en/en — English is unchanged and fast. Switching to
fi/auto needs a MULTILINGUAL model (small/medium); validated on real
Finnish speech (gates pass with wide margin, no retuning needed).