speechToText abstract method

Future<String> speechToText(
  1. List<int> audioBytes, {
  2. String? mimeType,
  3. String? language,
})

Transcribes spoken audio bytes into text.

audioBytes Raw or encoded audio data (e.g. mp3, wav). mimeType The MIME type of the audio. language Optional ISO code to force parsing in a specific language (e.g., 'en', 'ar').

Implementation

Future<String> speechToText(
  List<int> audioBytes, {
  String? mimeType,
  String? language,
});