getStreamingAudio method
Stream<TextToSpeechResponseUpdate>
getStreamingAudio(
- String text, {
- TextToSpeechOptions? options,
- CancellationToken? cancellationToken,
override
Synthesizes text into audio and returns a stream of response updates.
Implementation
@override
Stream<TextToSpeechResponseUpdate> getStreamingAudio(
String text, {
TextToSpeechOptions? options,
CancellationToken? cancellationToken,
}) {
final opts = (options ?? TextToSpeechOptions()).clone();
_configure(opts);
return super.getStreamingAudio(text, options: opts, cancellationToken: cancellationToken);
}