textToSpeech abstract method

Future<List<int>> textToSpeech(
  1. String text, {
  2. String? voice,
})

Synthesizes spoken audio from text.

text The text to synthesize. voice The identifier for the voice to use. Returns the raw audio bytes (usually MP3).

Implementation

Future<List<int>> textToSpeech(
  String text, {
  String? voice,
});