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:
@@ -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))
|
||||
Reference in New Issue
Block a user