POST
https://api.typecast.ai
/
v1
/
text-to-speech
curl --request POST \
  --url https://api.typecast.ai/v1/text-to-speech \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "voice_id": "tc_62a8975e695ad26f7fb514d1",
  "text": "Hello. How are you?",
  "model": "ssfm-v21",
  "language": "eng",
  "prompt": {
    "emotion_preset": "normal",
    "emotion_intensity": 1
  },
  "output": {
    "volume": 100,
    "audio_pitch": 0,
    "audio_tempo": 1,
    "audio_format": "wav"
  },
  "seed": 42
}'
This response does not have an example.

Authorizations

X-API-KEY
string
header
required

API key for authentication. You can obtain an API key from the Typecast dashboard.

Body

application/json

Response

200
audio/wav

Success - Returns audio file

The response is of type file.