v1

latestOpenAPI 3.1.02026-07-26273351.7 KB
Text-to-Speech

Text To Speech

Converts text into speech using a voice of your choice and returns audio.

post/v1/text2speech

Headers

x-api-keystring

Request body

textstring required
speakerstring required
emotionstring nullable

some voice have emotion: Angry, Cheerful, Sad, Excited, Friendly, Terrified, Shouting, Unfriendly, Whispering, Hopeful, Soulful, Pleasant, Complaining, Surprised, Uneasy, Fearful, Disgust

Example request

{
  "text": "Welcome to our API",
  "speaker": "00151554-3826-11ee-a861-00163e2ac61b",
  "emotion": "Neutral"
}

Response

Successful Response

{"stackTrail":"paths:/v1/text2speech:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}