The notice could survive beside a finished transcript, leaving a take a
moment message under a completed reply. The typing indicator covers the
wait, so drop the separate notice and its cleanup task.
Discord keeps forwarded attachments in message snapshots, so the old
top-level attachment check reported no media for a forwarded voice message.
Check snapshots wherever media is looked up and label the origin note.
Long clips and slow CPU inference leave users staring at a typing indicator.
Post a short note after three seconds of work and remove it when the request
finishes, so short messages stay quiet.
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.
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.
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.
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.
'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.
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.
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.