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.
This commit is contained in:
2026-11-02 15:44:47 -06:00
parent f3da940d0f
commit 51932b1cd7
4 changed files with 393 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
{
"name": "Transcribe",
"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": [],
"tags": [
"transcribe",
"whisper",
"speech",
"voice",
"translate",
"stt"
],
"min_bot_version": "3.5.0",
"min_python_version": [
3,
11,
0
],
"end_user_data_statement": "This cog sends the audio of the message being transcribed to a local service and does not store it. Only a per-server display preference is saved."
}