Skip to content

Send Voice Message

pinpointsmsvoice_send_voice_message R Documentation

Create a new voice message and send it to a recipient's phone number

Description

Create a new voice message and send it to a recipient's phone number.

Usage

pinpointsmsvoice_send_voice_message(CallerId, ConfigurationSetName,
  Content, DestinationPhoneNumber, OriginationPhoneNumber)

Arguments

CallerId

The phone number that appears on recipients' devices when they receive the message.

ConfigurationSetName

The name of the configuration set that you want to use to send the message.

Content
DestinationPhoneNumber

The phone number that you want to send the voice message to.

OriginationPhoneNumber

The phone number that Amazon Pinpoint should use to send the voice message. This isn't necessarily the phone number that appears on recipients' devices when they receive the message, because you can specify a CallerId parameter in the request.

Value

A list with the following syntax:

list(
  MessageId = "string"
)

Request syntax

svc$send_voice_message(
  CallerId = "string",
  ConfigurationSetName = "string",
  Content = list(
    CallInstructionsMessage = list(
      Text = "string"
    ),
    PlainTextMessage = list(
      LanguageCode = "string",
      Text = "string",
      VoiceId = "string"
    ),
    SSMLMessage = list(
      LanguageCode = "string",
      Text = "string",
      VoiceId = "string"
    )
  ),
  DestinationPhoneNumber = "string",
  OriginationPhoneNumber = "string"
)