Abstract
An instance of a text-to-speech response, 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 ChunkedStream class, which inherits this class's methods.
Close both the input and output of the TTS stream
Collect every frame into one in a single call
An instance of a text-to-speech response, 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 ChunkedStream class, which inherits this class's methods.