getSpokenLanguage method

Get the spoken language of the current user.
Return the spoken language of the current user.

Implementation

@override
Future<ZoomVideoSdkLiveTranscriptionLanguage> getSpokenLanguage() async {
  var languageString = await methodChannel
      .invokeMethod<String?>('getSpokenLanguage')
      .then<String?>((String? value) => value);

  Map<String, dynamic> languageMap = jsonDecode(languageString!);
  var transcriptionLanguage =
      ZoomVideoSdkLiveTranscriptionLanguage.fromJson(languageMap);
  return transcriptionLanguage;
}