Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

VoiceMessage

import type { VoiceMessage } from "https://aws-api.deno.dev/v0.4/services/pinpoint.ts?docs=full";

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

interface VoiceMessage {
Body?: string | null;
LanguageCode?: string | null;
OriginationNumber?: string | null;
Substitutions?: {
[key: string]: string[] | null | undefined;
}
| null;
VoiceId?: string | null;
}

§Properties

§
Body?: string | null
[src]

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

§
LanguageCode?: string | null
[src]

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.

§
OriginationNumber?: string | null
[src]

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.

§
Substitutions?: {
[key: string]: string[] | null | undefined;
}
| null
[src]

The default message variables to use in the voice message. You can override the default variables with individual address variables.

§
VoiceId?: string | null
[src]

The name of the voice to use when delivering the message. For a list of supported voices, see the Amazon Polly Developer Guide.