Commit Graph

7 Commits

Author SHA1 Message Date
kingston 451d3dea70 transcribe: document video support and shallow source lookup
Completes the video-source fix: the command help and README still promised a
25-message scan, and the low-confidence branch was missing the message
provenance line the other replies carry.
2026-11-02 16:13:08 -06:00
kingston ca99bd59df transcribe: accept video audio, stop reusing older clips
A video that did not match the extension list made _find_attachment scan 25
messages back and silently resend the previous clip, so every request
transcribed the same audio (visible in the service log as repeated 15.4s and
4.7s durations). Accept video containers, which Whisper decodes the audio track
from, restrict the fallback to the message immediately before, and state which
message was transcribed in the reply.
2026-11-02 16:12:34 -06:00
kingston eb4f7139a2 transcribe: refuse to auto-detect very short text
langdetect labels 'ok' as Slovak with high confidence, so the probability gate
alone was not enough. Require 12+ characters before guessing, and document the
translate command in the README.
2026-11-02 16:07:16 -06:00
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