Skip to main content
POST
/
v1
/
text2speech
Text To Speech
curl --request POST \
  --url https://api.topmediai.com/v1/text2speech \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "Welcome to our API",
  "speaker": "00151554-3826-11ee-a861-00163e2ac61b",
  "emotion": "Neutral"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Headers

x-api-key
string

Body

application/json
text
string
required
Required string length: 1 - 500
Example:

"Welcome to our API"

speaker
string
required
Example:

"00151554-3826-11ee-a861-00163e2ac61b"

emotion
string | null

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

Example:

"Neutral"

Response

Successful Response