getAudio method
Future<TextToSpeechResponse>
getAudio(
- String text, {
- TextToSpeechOptions? options,
- CancellationToken? cancellationToken,
override
Synthesizes text into audio and returns the complete response.
Implementation
@override
Future<TextToSpeechResponse> getAudio(
String text, {
TextToSpeechOptions? options,
CancellationToken? cancellationToken,
}) {
final opts = (options ?? TextToSpeechOptions()).clone();
_configure(opts);
return super.getAudio(text, options: opts, cancellationToken: cancellationToken);
}