Table of Contents

Method GetDurationAndWaveformBytes

Namespace
DisCatSharp.Experimental
Assembly
DisCatSharp.Experimental.dll

GetDurationAndWaveformBytes(Stream)

Generates the waveform bytes and calculates the duration in seconds.

public static (float DurationSeconds, byte[] Waveform) GetDurationAndWaveformBytes(this Stream opusStream)

Parameters

opusStream Stream

The audio stream.

Returns

(float DurationSeconds, byte[] Waveform)

The generated data.