transcribe method
Transcribe audio file to text
Implementation
Future<AsrTranscriptionResult> transcribe(AsrTranscribeInput input) async {
try {
final result = await _channel.invokeMethod('transcribe', {
'wrapperId': _wrapperId,
...input.toMap(),
});
return AsrTranscriptionResult.fromMap(result as Map<String, dynamic>);
} on PlatformException catch (e) {
throw Exception('Failed to transcribe: ${e.message}');
}
}