API reference
Class VoiceReceiveEventArgs
- Namespace
- DisCatSharp.Voice.EventArgs
- Assembly
- DisCatSharp.Voice.dll
Represents arguments for VoiceReceived events.
public class VoiceReceiveEventArgs : DiscordEventArgs
- Inheritance
-
VoiceReceiveEventArgs
- Inherited Members
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.
- IsConcealmentFrame
Gets whether this frame is concealment (packet-loss compensation) rather than a directly decoded packet.
- MissingFrames
Gets the number of missing frames detected before this frame.
- 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.
- Sequence
Gets the unwrapped RTP sequence number for this audio frame.
- Ssrc
Gets the SSRC of the audio source.
- User
Gets the user that sent the audio data.