From 7e4e8f167fd21ae30687a9e034f819f889b16ea8 Mon Sep 17 00:00:00 2001 From: mtuszowski Date: Tue, 17 Sep 2024 16:25:18 +0200 Subject: [PATCH] Fsink wsink --- voice_recognition.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()