speechToText abstract method
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,
});