I’m trying to make a command with nextcord where the bot would join the vc I’m currently in and speak a message, but it gives me this error:
AttributeError: ‘FFmpegOpusAudio’ object has no attribute ‘_process’
https://replit.com/@pelican012009/Funny-Bot#main.py
from gtts import gTTS
@bot.command(name='tts', description='TALK')
async def tts(ctx, *args):
text = ' '.join(args)
if ctx.author.voice != None:
try:
vc = await ctx.author.voice.channel.connect()
except:
vc = ctx.voice_client
sound = gTTS(text=text, lang='en', slow=False)
sound.save("tts-audio.mp3")
source = await nextcord.FFmpegOpusAudio.from_probe("tts-audio.mp3",method="fallback")
vc.play(source)