canStartLiveTranscription method

  1. @override
Future<bool> canStartLiveTranscription()

Determine whether the user can start live transcription. The live transcription service is an add-on, so make sure you have it enabled or this method will always return false.
Return true indicates the user can start live transcription, otherwise this function returns false.

Implementation

@override
Future<bool> canStartLiveTranscription() async {
  return await methodChannel
      .invokeMethod<bool>('canStartLiveTranscription')
      .then<bool>((bool? value) => value ?? false);
}