From 6dd0e1865d3269b764bfce3ce4d0320a61c05c76 Mon Sep 17 00:00:00 2001 From: mtuszowski Date: Tue, 17 Sep 2024 16:15:03 +0200 Subject: [PATCH] saving --- voice_recognition.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/voice_recognition.py b/voice_recognition.py index aec6c1f..46e7100 100644 --- a/voice_recognition.py +++ b/voice_recognition.py @@ -73,7 +73,9 @@ class Transcriber(commands.Cog): logger.info("Attempt transcribe") vc = await ctx.author.voice.channel.connect(cls=voice_recv.VoiceRecvClient) logger.info("Connected") - vc.listen(voice_recv.BasicSink(callback)) + #basic = voice_recv.BasicSink(callback) + sink = voice_recv.WaveSink(destination="Test.wav") + vc.listen(sink) @commands.command(name="stop_transcribe") async def stop(self, ctx):