51932b1cd7
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.
17 lines
391 B
Python
17 lines
391 B
Python
"""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))
|