Table of Contents
API reference

Class VoiceConfiguration

Namespace
DisCatSharp.Voice
Assembly
DisCatSharp.Voice.dll

Voice client configuration.

public sealed class VoiceConfiguration
Inheritance
VoiceConfiguration
Inherited Members

Constructors

VoiceConfiguration()

Creates a new instance of VoiceConfiguration.

VoiceConfiguration(VoiceConfiguration)

Creates a new instance of VoiceConfiguration, copying the properties of another configuration.

Properties

AudioFormat

Sets the audio format for Opus. This will determine the quality of the audio output.

Defaults to Default.

DavePendingAudioBehavior

Controls outbound audio behavior while DAVE is negotiated but not active.

Use Throw to fail fast when a producer attempts to send before DAVE is active.

Defaults to PassThrough.

EnableDebugLogging

Controls whether debug and trace logs from the DisCatSharp.Voice project are emitted.

Warnings and errors are always logged regardless of this value.

Defaults to false.

EnableExternalOpus

Enables accepting pre-encoded Opus frames from an external source via BindExternalOpusSourceAsync(IExternalOpusSource, CancellationToken).

When enabled, the internal Opus encoder is bypassed for externally-supplied frames, while RTP framing, DAVE E2EE, and AEAD transport encryption are still applied.

Defaults to false.

EnableIncoming

Sets whether incoming voice receiver should be enabled.

Defaults to false.

MaxDaveProtocolVersion

Sets the maximum DAVE protocol version this client advertises to the gateway.

A value of 0 disables DAVE negotiation entirely (server will not initiate DAVE).

Defaults to 1.

PacketQueueSize

Sets the size of the packet queue.

Defaults to 25 or ~500ms.