getSpeakerSearchTask method

Future<GetSpeakerSearchTaskResponse> getSpeakerSearchTask({
  1. required String speakerSearchTaskId,
  2. required String voiceConnectorId,
})

Retrieves the details of the specified 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.

Parameter speakerSearchTaskId : The ID of the speaker search task.

Parameter voiceConnectorId : The Voice Connector ID.

Implementation

Future<GetSpeakerSearchTaskResponse> getSpeakerSearchTask({
  required String speakerSearchTaskId,
  required String voiceConnectorId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/voice-connectors/${Uri.encodeComponent(voiceConnectorId)}/speaker-search-tasks/${Uri.encodeComponent(speakerSearchTaskId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetSpeakerSearchTaskResponse.fromJson(response);
}