AWSPinpointTargetingVoiceMessage

Objective-C

@interface AWSPinpointTargetingVoiceMessage

Swift

class AWSPinpointTargetingVoiceMessage

Specifies the settings for a one-time voice message that’s sent directly to an endpoint through the voice channel.

  • The text of the script to use for the voice message.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable body;

    Swift

    var body: String? { get set }
  • The code for the language to use when synthesizing the text of the message script. For a list of supported languages and the code for each one, see the Amazon Polly Developer Guide.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable languageCode;

    Swift

    var languageCode: String? { get set }
  • The long code to send the voice message from. This value should be one of the dedicated long codes that’s assigned to your AWS account. Although it isn’t required, we recommend that you specify the long code in E.164 format, for example +12065550100, to ensure prompt and accurate delivery of the message.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable originationNumber;

    Swift

    var originationNumber: String? { get set }
  • The default message variables to use in the voice message. You can override the default variables with individual address variables.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDictionary<NSString *, NSArray<NSString *> *> *_Nullable substitutions;

    Swift

    var substitutions: [String : [String]]? { get set }
  • The name of the voice to use when delivering the message. For a list of supported voices, see the Amazon Polly Developer Guide.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable voiceId;

    Swift

    var voiceId: String? { get set }