startMeetingTranscription method

Future<void> startMeetingTranscription({
  1. required String meetingId,
  2. required TranscriptionConfiguration transcriptionConfiguration,
})

Starts transcription for the specified meetingId. For more information, refer to Using Amazon Chime SDK live transcription in the Amazon Chime SDK Developer Guide.

If you specify an invalid configuration, a TranscriptFailed event will be sent with the contents of the BadRequestException generated by Amazon Transcribe. For more information on each parameter and which combinations are valid, refer to the StartStreamTranscription API in the Amazon Transcribe Developer Guide.

May throw BadRequestException. May throw ForbiddenException. May throw LimitExceededException. May throw NotFoundException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottlingException. May throw UnauthorizedException. May throw UnprocessableEntityException.

Parameter meetingId : The unique ID of the meeting being transcribed.

Parameter transcriptionConfiguration : The configuration for the current transcription operation. Must contain EngineTranscribeSettings or EngineTranscribeMedicalSettings.

Implementation

Future<void> startMeetingTranscription({
  required String meetingId,
  required TranscriptionConfiguration transcriptionConfiguration,
}) async {
  final $payload = <String, dynamic>{
    'TranscriptionConfiguration': transcriptionConfiguration,
  };
  await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/meetings/${Uri.encodeComponent(meetingId)}/transcription?operation=start',
    exceptionFnMap: _exceptionFns,
  );
}