createVoiceProfile method
Creates a voice profile, which consists of an enrolled user and their latest voice print. For more information about voice profiles and voice analytics, see Using Amazon Chime SDK Voice Analytics in the Amazon Chime SDK Developer Guide.
May throw AccessDeniedException.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw GoneException.
May throw NotFoundException.
May throw ResourceLimitExceededException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter speakerSearchTaskId :
The ID of the speaker search task.
Implementation
Future<CreateVoiceProfileResponse> createVoiceProfile({
required String speakerSearchTaskId,
}) async {
final $payload = <String, dynamic>{
'SpeakerSearchTaskId': speakerSearchTaskId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/voice-profiles',
exceptionFnMap: _exceptionFns,
);
return CreateVoiceProfileResponse.fromJson(response);
}