stopSpeakerSearchTask method

Future<void> stopSpeakerSearchTask({
  1. required String speakerSearchTaskId,
  2. required String voiceConnectorId,
})

Stops a speaker search task.

May throw AccessDeniedException. May throw BadRequestException. May throw ConflictException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException. May throw UnprocessableEntityException.

Parameter speakerSearchTaskId : The speaker search task ID.

Parameter voiceConnectorId : The Voice Connector ID.

Implementation

Future<void> stopSpeakerSearchTask({
  required String speakerSearchTaskId,
  required String voiceConnectorId,
}) async {
  await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri:
        '/voice-connectors/${Uri.encodeComponent(voiceConnectorId)}/speaker-search-tasks/${Uri.encodeComponent(speakerSearchTaskId)}?operation=stop',
    exceptionFnMap: _exceptionFns,
  );
}