Table of Contents

Class VoiceReceiveEventArgs

Namespace
DSharpPlus.VoiceNext.EventArgs
Assembly
DSharpPlus.VoiceNext.dll

Represents arguments for VoiceReceived events.

public class VoiceReceiveEventArgs : DiscordEventArgs
Inheritance
object
EventArgs
VoiceReceiveEventArgs

Properties

AudioDuration

Gets the millisecond duration of the PCM audio sample.

AudioFormat

Gets the format of the received PCM data.

Important: This isn't always the format set in AudioFormat, and depends on the audio data received.

OpusData

Gets the received voice data, in Opus format. Note that for packets that were lost and/or compensated for, this will be empty.

PcmData

Gets the received voice data, decoded to PCM format.

SSRC

Gets the SSRC of the audio source.

User

Gets the user that sent the audio data.