Module: Discordrb::Voice

Defined in:
lib/discordrb/voice/encoder.rb,
lib/discordrb/voice/network.rb,
lib/discordrb/voice/voice_bot.rb

Overview

Voice support

Defined Under Namespace

Classes: Encoder, VoiceBot, VoiceUDP, VoiceWS

Constant Summary collapse

IDEAL_LENGTH =

How long one packet should ideally be (20 ms as defined by Discord)

20.0
DATA_LENGTH =

How many bytes of data to read (1920 bytes * 2 channels)

1920 * 2