API reference
Class ExternalOpusFrame
- Namespace
- DisCatSharp.Voice.Entities
- Assembly
- DisCatSharp.Voice.dll
Represents a single pre-encoded Opus audio frame from an external source.
public sealed record ExternalOpusFrame : IEquatable<ExternalOpusFrame>
- Inheritance
-
ExternalOpusFrame
- Implements
- Inherited Members
Constructors
- ExternalOpusFrame(ReadOnlyMemory<byte>, int, uint, uint, bool)
Represents a single pre-encoded Opus audio frame from an external source.
Properties
- DurationMs
Frame duration in milliseconds (typically 20).
- IsSilence
Whether this frame represents silence (no real audio). Used to control speaking indicators.
- Payload
The Opus-encoded audio payload.
- Sequence
Source-side sequence number (informational; VoiceConnection uses its own).
- Timestamp
Source-side RTP timestamp (informational; VoiceConnection uses its own).