Commit Graph

4 Commits

Author SHA1 Message Date
kingston 95b14dc8c1 transcribe: add [p]translate for text messages
Reply to any message with '[p]translate spanish' to translate it. The source
language is detected with langdetect and the command refuses to translate when
detection is ambiguous, pointing at the explicit 'from <language>' form rather
than guessing.
2026-11-02 16:06:49 -06:00
kingston e43447fc7a transcribe: keep Chinese script variants distinct
'zh-Hant' was stripped to 'zh' and silently produced Simplified output. Map
the script variants explicitly and let FLORES-200 tags pass through to NLLB,
which validates them itself.
2026-11-02 15:45:43 -06:00
kingston 60cb3e30ac transcribe: label every mapped language, resolve replied messages off-cache
Irish, Javanese and Latin mapped to codes with no display name, so a reply
header would have shown a raw ISO code. A reply to a message outside the
25-message cache also fell through to the newest voice message instead of the
one the user actually replied to.
2026-11-02 15:45:19 -06:00
kingston 51932b1cd7 Add Transcribe cog
Voice messages become text via the local whisper-server, with optional
translation through nllb-server. English uses Whisper's own translate task so
the common case needs no second model; other targets transcribe first and
translate after, and skip translation when Whisper's language confidence is
too low to trust.
2026-11-02 15:44:47 -06:00