diff --git a/voice_recognition.py b/voice_recognition.py index c63245b..79f68dc 100644 --- a/voice_recognition.py +++ b/voice_recognition.py @@ -73,12 +73,12 @@ class Transcriber(commands.Cog): logger.info("Attempt transcribe") vc = await ctx.author.voice.channel.connect(cls=voice_recv.VoiceRecvClient) logger.info("Connected") - bsink = voice_recv.BasicSink(callback) - sink = voice_recv.WaveSink(destination="/home/pi/Conjurer/Test.wav") - fsink = voice_recv.WaveSink(destination="/home/pi/Conjurer/Test.mp3") + wsink = voice_recv.WaveSink(destination="/home/pi/Conjurer/Test.mp3") + fsink = voice_recv.FFmpegSink(destination="/home/pi/Conjurer/Test.mp3") vc.listen(fsink) + @commands.command(name="stop_transcribe") async def stop(self, ctx): await ctx.voice_client.disconnect()