UsageΒΆ
This voice implementation operates
using the discord.py VoiceProtocol
interface.
To use it, pass the class into VoiceChannel.connect
from discord.ext.audiorec import NativeVoiceClient
# ...
client = await voice_channel.connect(cls=NativeVoiceClient)
client.record()
await asyncio.sleep(30)
audio_binaries = await client.stop_record()
For other examples, please see the examples folder on GitHub.