Table of Contents
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

pcmStream Stream

The PCM audio stream to play as an overlay.

name string

An optional display name for the overlay (used for diagnostics).

cancellationToken CancellationToken

A token to cancel the queue operation.

Returns

ValueTask