Nostrum.Voice.send_frames
You're seeing just the function
send_frames
, go back to Nostrum.Voice module for more information.
Specs
send_frames(Nostrum.Struct.Guild.id(), [binary()]) :: :ok | {:error, String.t()}
Low-level. Send pre-encoded audio packets directly.
Speaking should be set to true via Nostrum.Voice.set_is_speaking/2
before sending frames.
Opus frames will be encrypted and prefixed with the appropriate RTP header and sent immediately.
The length of frames
depends on how often you wish to send a sequence of frames.
A single frame contains 20ms of audio. Sending more than 50 frames (1 second of audio)
in a single function call may result in inconsistent playback rates.
Nostrum.Voice.playing?/1
will not return accurate values when using send_frames/2
instead of Nostrum.Voice.play/4