API reference
Method QueuePcmOverlayAsync
- Namespace
- DisCatSharp.Voice.Entities
- Assembly
- DisCatSharp.Voice.dll
QueuePcmOverlayAsync(Stream, string?, CancellationToken)
Queues a PCM overlay job, such as TTS or a system prompt. The PCM stream must be 16-bit little-endian PCM matching the configured output format.
public ValueTask QueuePcmOverlayAsync(Stream pcmStream, string? name = null, CancellationToken cancellationToken = default)
Parameters
pcmStreamStreamThe PCM audio stream to play as an overlay.
namestringAn optional display name for the overlay (used for diagnostics).
cancellationTokenCancellationTokenA token to cancel the queue operation.