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
+16
View File
@@ -0,0 +1,16 @@
"""Package for Transcribe cog."""
import json
from pathlib import Path
from redbot.core.bot import Red
from .transcribe import Transcribe
with Path(__file__).parent.joinpath("info.json").open() as fp:
__red_end_user_data_statement__ = json.load(fp)["end_user_data_statement"]
async def setup(bot: Red) -> None:
"""Load Transcribe cog."""
await bot.add_cog(Transcribe(bot))