Table of Contents

Constructor AudioFormat

Namespace
DSharpPlus.VoiceNext
Assembly
DSharpPlus.VoiceNext.dll

AudioFormat(int, int, VoiceApplication)

Creates a new audio format for use with Opus encoder.

public AudioFormat(int sampleRate = 48000, int channelCount = 2, VoiceApplication voiceApplication = VoiceApplication.Music)

Parameters

sampleRate int

Audio sampling rate in Hz.

channelCount int

Number of audio channels in the data.

voiceApplication VoiceApplication

Encoder preset to use.