Skip to content

Latest commit

 

History

History
68 lines (63 loc) · 2.66 KB

SpeakRequest.md

File metadata and controls

68 lines (63 loc) · 2.66 KB

SpeakRequest

Properties

Name Type Description Notes
payload String The text or SSML to be converted into speech. There is a 5,000 character limit.
payloadType PayloadTypeEnum The type of the provided payload. The payload can either be plain text, or Speech Synthesis Markup Language (SSML). [optional]
serviceLevel ServiceLevelEnum This parameter impacts speech quality, language options and payload types. When using `basic`, only the `en-US` language and payload type `text` are allowed. [optional]
stop String When specified, it stops the current audio being played. Specify `current` to stop the current audio being played, and to play the next file in the queue. Specify `all` to stop the current audio file being played and to also clear all audio files from the queue. [optional]
voice VoiceEnum The gender of the voice used to speak back the text.
language LanguageEnum The language you want spoken.
clientState String Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. [optional]
commandId String Use this field to avoid duplicate commands. Telnyx will ignore commands with the same `command_id`. [optional]

Enum: PayloadTypeEnum

Name Value
TEXT "text"
SSML "ssml"

Enum: ServiceLevelEnum

Name Value
BASIC "basic"
PREMIUM "premium"

Enum: VoiceEnum

Name Value
MALE "male"
FEMALE "female"

Enum: LanguageEnum

Name Value
ARB "arb"
CMN_CN "cmn-CN"
CY_GB "cy-GB"
DA_DK "da-DK"
DE_DE "de-DE"
EN_AU "en-AU"
EN_GB "en-GB"
EN_GB_WLS "en-GB-WLS"
EN_IN "en-IN"
EN_US "en-US"
ES_ES "es-ES"
ES_MX "es-MX"
ES_US "es-US"
FR_CA "fr-CA"
FR_FR "fr-FR"
HI_IN "hi-IN"
IS_IS "is-IS"
IT_IT "it-IT"
JA_JP "ja-JP"
KO_KR "ko-KR"
NB_NO "nb-NO"
NL_NL "nl-NL"
PL_PL "pl-PL"
PT_BR "pt-BR"
PT_PT "pt-PT"
RO_RO "ro-RO"
RU_RU "ru-RU"
SV_SE "sv-SE"
TR_TR "tr-TR"