An instance of a text-to-speech stream, as an asynchronous iterable iterator.
for await (const event of stream) { await source.captureFrame(event.frame);} Copy
for await (const event of stream) { await source.captureFrame(event.frame);}
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.
Static
Readonly
Close both the input and output of the TTS stream
Mark the input as ended and forbid additional pushes
Flush the TTS, causing it to process all pending text
Push a string of text to the TTS
An instance of a text-to-speech stream, as an asynchronous iterable iterator.
Example: Looping through frames
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.