getVoiceProfile method
Retrieves the details of the specified voice profile.
May throw AccessDeniedException.
May throw BadRequestException.
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<GetVoiceProfileResponse> getVoiceProfile({
required String voiceProfileId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/voice-profiles/${Uri.encodeComponent(voiceProfileId)}',
exceptionFnMap: _exceptionFns,
);
return GetVoiceProfileResponse.fromJson(response);
}