PinpointSMSVoice.Client.
send_voice_message
(**kwargs)¶Create a new voice message and send it to a recipient's phone number.
See also: AWS API Documentation
Request Syntax
response = client.send_voice_message(
CallerId='string',
ConfigurationSetName='string',
Content={
'CallInstructionsMessage': {
'Text': 'string'
},
'PlainTextMessage': {
'LanguageCode': 'string',
'Text': 'string',
'VoiceId': 'string'
},
'SSMLMessage': {
'LanguageCode': 'string',
'Text': 'string',
'VoiceId': 'string'
}
},
DestinationPhoneNumber='string',
OriginationPhoneNumber='string'
)
An object that contains a voice message and information about the recipient that you want to send it to.
dict
Response Syntax
{
'MessageId': 'string'
}
Response Structure
Exceptions
PinpointSMSVoice.Client.exceptions.TooManyRequestsException
PinpointSMSVoice.Client.exceptions.BadRequestException
PinpointSMSVoice.Client.exceptions.InternalServiceErrorException