speech method

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

Simple text-to-speech conversion (convenience method)

Implementation

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