getAudio method

  1. @override
Future<TextToSpeechResponse> getAudio(
  1. String text, {
  2. TextToSpeechOptions? options,
  3. 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);
}