startTranscription static method

Future<HMSException?> startTranscription({
  1. HMSTranscriptionMode mode = HMSTranscriptionMode.caption,
})

startTranscription is used to start the transcription of the meeting.

parameters:

mode - HMSTranscriptionMode to start the transcription in the meeting. Default is HMSTranscriptionMode.caption

Refer startTranscription

Implementation

static Future<HMSException?> startTranscription(
    {HMSTranscriptionMode mode = HMSTranscriptionMode.caption}) async {
  var result = await PlatformService.invokeMethod(
      PlatformMethod.startRealTimeTranscription,
      arguments: {'mode': mode.name});

  if (result != null) {
    return HMSException.fromMap(result["error"]);
  } else {
    return null;
  }
}