Skip to main content

Text to Speech Generation

Convert Text into Speech

The text-to-speech feature enables you to convert written text into spoken audio with a selection of voices and languages. You can seamlessly integrate this audio into a clip by specifying the desired voice and the text to be spoken.

{
"asset": {
"type": "text-to-speech",
"text": "Good evening, in Sydney tonight we’re tracking a developing story as unexpected storms roll in across the city, bringing with them flash flooding warnings and major disruptions to the evening commute.",
"voice": "Amy"
},
"start": 0,
"length": "auto"
}

This request will embed the generated speech at the beginning of your video, with the duration automatically matching the length of the generated audio. For more details on optimizing timing, refer to smart clips.

Translating text

To create an audio file in a different language, use the language option. Ensure that you select a voice compatible with the desired language.

{
"asset": {
"type": "text-to-speech",
"text": "Good evening, in Sydney tonight we’re tracking a developing story as unexpected storms roll in across the city, bringing with them flash flooding warnings and major disruptions to the evening commute.",
"voice": "Seoyeon",
"language": "ko-KR"
},
"start": 0,
"length": "auto"
}

The above example creates an audio file in Korean. The English text is translated to and spoken in Korean.

Supported translations

LanguageValue
Chinese (Mandarin)cmn-CN
Danishda-DK
Germande-DE
English (Australian)en-AU
English (British)en-GB
English (Indian)en-IN
English (US)en-US
Spanish (European)es-ES
Spanish (Mexican)es-MX
Spanish (US)es-US
French (Canadian)fr-CA
Frenchfr-FR
Italianit-IT
Japaneseja-JP
Hindihi-IN
Koreanko-KR
Norwegian Bokmålnb-NO
Dutchnl-NL
Polishpl-PL
Portuguese (Brazilian)pt-BR
Portuguese (European)pt-PT
Swedishsv-SE
English (New Zealand)en-NZ
English (South African)en-ZA
Catalanca-ES
German (Austrian)de-AT
Chinese (Cantonese)yue-CN
Arabic (Gulf)ar-AE
Finnishfi-FI

Newscaster mode

Shotstack’s text-to-speech service includes a newscaster mode, which produces audio that emulates a newsreader’s delivery. To enable this mode, set the newscaster option to true.

{
"asset": {
"type": "text-to-speech",
"text": "Good evening, in Sydney tonight we’re tracking a developing story as unexpected storms roll in across the city, bringing with them flash flooding warnings and major disruptions to the evening commute.",
"voice": "Joanna",
"newscaster": true
},
"start": 0,
"length": "auto"
}

The newscaster style is available with the Matthew and Joanna voices in US English, the Lupe voice in US Spanish, and the Amy voice in British English.

Voices

The Shotstack text-to-speech service offers a variety of voices in different languages and genders:

Voice NameLanguageGender
HalaArabic (Gulf)Female
LisaDutch (Belgian)Female
ArletCatalanFemale
HiujinChinese (Cantonese)Female
ZhiyuChinese (Mandarin)Female
SofieDanishFemale
LauraDutchFemale
OliviaEnglish (Australian)Female
AmyEnglish (British)Female
EmmaEnglish (British)Female
BrianEnglish (British)Male
ArthurEnglish (British)Male
KajalEnglish (Indian)Female
NiamhEnglish (Ireland)Female
AriaEnglish (New Zealand)Female
AyandaEnglish (South African)Female
IvyEnglish (US)Female (child)
JoannaEnglish (US)Female
KendraEnglish (US)Female
KimberlyEnglish (US)Female
SalliEnglish (US)Female
JoeyEnglish (US)Male
JustinEnglish (US)Male (child)
KevinEnglish (US)Male (child)
MatthewEnglish (US)Male
RuthEnglish (US)Female
StephenEnglish (US)Male
SuviFinnishFemale
LéaFrenchFemale
RémiFrenchMale
GabrielleFrench (Canadian)Female
LiamFrench (Canadian)Male
VickiGermanFemale
DanielGermanMale
HannahGerman (Austrian)Female
BiancaItalianFemale
AdrianoItalianMale
TakumiJapaneseMale
KazuhaJapaneseFemale
TomokoJapaneseFemale
SeoyeonKoreanFemale
IdaNorwegianFemale
OlaPolishFemale
CamilaPortuguese (Brazilian)Female
Vitória/VitoriaPortuguese (Brazilian)Female
ThiagoPortuguese (Brazilian)Male
Inês/InesPortuguese (European)Female
LuciaSpanish (European)Female
SergioSpanish (European)Male
MiaSpanish (Mexican)Female
AndrésSpanish (Mexican)Male
LupeSpanish (US)Female
PedroSpanish (US)Male
ElinSwedishFemale

ElevenLabs Integration

Our ElevenLabs integration is currently unavailable.