Fsink wsink

This commit is contained in:
2024-09-17 16:25:18 +02:00
parent b59bd4c41d
commit 7e4e8f167f
+3 -3
View File
@@ -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()