deleteVoiceProfile method

Future<void> deleteVoiceProfile({
  1. required String voiceProfileId,
})

Deletes a voice profile, including its voice print and enrollment data. WARNING: This action is not reversible.

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 voiceProfileId : The voice profile ID.

Implementation

Future<void> deleteVoiceProfile({
  required String voiceProfileId,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/voice-profiles/${Uri.encodeComponent(voiceProfileId)}',
    exceptionFnMap: _exceptionFns,
  );
}