diff --git a/tts/tts.py b/tts/tts.py index ef2a223..e00bfa7 100644 --- a/tts/tts.py +++ b/tts/tts.py @@ -12,7 +12,8 @@ class TTS(Cog): Send Text-to-Speech messages """ - def __init__(self, bot: Red): + def __init__(self, bot: Red, *args, **kwargs): + super().__init__(*args, **kwargs) self.bot = bot self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True) @@ -28,7 +29,7 @@ class TTS(Cog): Send Text to speech messages as an mp3 """ mp3_fp = io.BytesIO() - tts = gTTS(text, "en") + tts = gTTS(text, lang="en") tts.write_to_fp(mp3_fp) mp3_fp.seek(0) await ctx.send(file=discord.File(mp3_fp, "text.mp3"))