updateVoiceProfile method

Future<UpdateVoiceProfileResponse> updateVoiceProfile({
  1. required String speakerSearchTaskId,
  2. required String voiceProfileId,
})

Updates the specified voice profile’s voice print and refreshes its expiration timestamp.

You must provide a written release to each caller through a process that clearly reflects each caller’s informed consent before using Amazon Chime SDK Voice Insights service, as required under the terms of your agreement with AWS governing your use of the service.

May throw AccessDeniedException. May throw BadRequestException. May throw ConflictException. May throw ForbiddenException. May throw GoneException. 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 voiceProfileId : The profile ID.

Implementation

Future<UpdateVoiceProfileResponse> updateVoiceProfile({
  required String speakerSearchTaskId,
  required String voiceProfileId,
}) async {
  final $payload = <String, dynamic>{
    'SpeakerSearchTaskId': speakerSearchTaskId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/voice-profiles/${Uri.encodeComponent(voiceProfileId)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateVoiceProfileResponse.fromJson(response);
}