Interface SynthesizedAudio

SynthesizedAudio is a packet of speech synthesis as returned by the TTS.

interface SynthesizedAudio {
    deltaText?: string;
    frame: AudioFrame;
    requestId: string;
    segmentId: string;
}

Properties

deltaText?: string

Current segment of the synthesized audio

frame: AudioFrame

Synthesized audio frame

requestId: string

Request ID (one segment could be made up of multiple requests)

segmentId: string

Segment ID, each segment is separated by a flush