API reference
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
opusStreamStreamThe audio stream.
Returns
- (float DurationSeconds, byte[] Waveform)
The generated data.