Class SynthesizeStreamAbstract

An instance of a text-to-speech stream, as an asynchronous iterable iterator.

Example: Looping through frames

for await (const event of stream) {
await source.captureFrame(event.frame);
}

Remarks

This class is abstract, and as such cannot be used directly. Instead, use a provider plugin that exports its own child SynthesizeStream class, which inherits this class's methods.

Hierarchy (view full)

Implements

Constructors

Properties

END_OF_STREAM: typeof END_OF_STREAM = ...

Methods