speech method

  1. @override
Future<List<int>> speech(
  1. String text
)
override

Simple text-to-speech conversion (convenience method)

Implementation

@override
Future<List<int>> speech(String text) async {
  final response = await textToSpeech(TTSRequest(text: text));
  return response.audioData;
}