mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Fsink wsink
This commit is contained in:
@@ -73,12 +73,12 @@ class Transcriber(commands.Cog):
|
|||||||
logger.info("Attempt transcribe")
|
logger.info("Attempt transcribe")
|
||||||
vc = await ctx.author.voice.channel.connect(cls=voice_recv.VoiceRecvClient)
|
vc = await ctx.author.voice.channel.connect(cls=voice_recv.VoiceRecvClient)
|
||||||
logger.info("Connected")
|
logger.info("Connected")
|
||||||
bsink = voice_recv.BasicSink(callback)
|
wsink = voice_recv.WaveSink(destination="/home/pi/Conjurer/Test.mp3")
|
||||||
sink = voice_recv.WaveSink(destination="/home/pi/Conjurer/Test.wav")
|
fsink = voice_recv.FFmpegSink(destination="/home/pi/Conjurer/Test.mp3")
|
||||||
fsink = voice_recv.WaveSink(destination="/home/pi/Conjurer/Test.mp3")
|
|
||||||
|
|
||||||
vc.listen(fsink)
|
vc.listen(fsink)
|
||||||
|
|
||||||
|
|
||||||
@commands.command(name="stop_transcribe")
|
@commands.command(name="stop_transcribe")
|
||||||
async def stop(self, ctx):
|
async def stop(self, ctx):
|
||||||
await ctx.voice_client.disconnect()
|
await ctx.voice_client.disconnect()
|
||||||
|
|||||||
Reference in New Issue
Block a user