Table of Contents

Interface IAudioConverter

Namespace
Uncreated.Warfare.Moderation
Assembly
Uncreated.Warfare.dll

The implementation for this is private code given to me by Senior-S (https://github.com/Senior-S) which exists as a plugin.

public interface IAudioConverter

Remarks

He maintains a web API for https://github.com/Senior-S/SVD-Example-Use.

Properties

Enabled

If this audio converter has the info it needs to work.

bool Enabled { get; }

Property Value

bool

Methods

ConvertAsync(Stream, bool, IEnumerable<ArraySegment<byte>>, float, CancellationToken)

Convert voice packets to WAV and write it to output.

Task<AudioConvertResult> ConvertAsync(Stream output, bool leaveOpen, IEnumerable<ArraySegment<byte>> packets, float volume, CancellationToken token = default)

Parameters

output Stream
leaveOpen bool
packets IEnumerable<ArraySegment<byte>>
volume float
token CancellationToken

Returns

Task<AudioConvertResult>