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.
This commit is contained in:
2026-11-02 16:06:49 -06:00
parent e43447fc7a
commit 95b14dc8c1
2 changed files with 150 additions and 4 deletions
+6 -4
View File
@@ -3,10 +3,12 @@
"author": [
"Scrapyard Cogworks"
],
"short": "Transcribe voice messages with Whisper, optionally translate them.",
"description": "Transcribes Discord voice messages and audio attachments using the local whisper-server, then optionally translates the result into another language with the local NLLB service. No cloud APIs are involved and no audio leaves the machine.",
"install_msg": "Thanks for installing Transcribe from Scrapyard Cogworks! It expects whisper-server on 127.0.0.1:8201 and nllb-server on 127.0.0.1:8200. Use `[p]transcribe` to transcribe to English, or `[p]transcribe french` to translate.",
"requirements": [],
"short": "Transcribe voice messages and translate messages, all locally.",
"description": "Transcribes Discord voice messages and audio attachments using the local whisper-server, and translates either those transcripts or any message you reply to using the local NLLB service. Source language is detected automatically. No cloud APIs are involved and no audio leaves the machine.",
"install_msg": "Thanks for installing Transcribe from Scrapyard Cogworks! It expects whisper-server on 127.0.0.1:8201 and nllb-server on 127.0.0.1:8200. Use `[p]transcribe` for voice messages, and `[p]translate <language>` to translate any message you reply to.",
"requirements": [
"langdetect"
],
"tags": [
"transcribe",
"whisper",