Skip to main content

Request

Make a POST request to below endpoint and pass the required parameters as a request body.
curl
--request POST 'https://modelslab.com/api/v1/enterprise/text_to_speech/make' \

Emotion Support

Emotion support is currently only available in English (en) language. When emotion is enabled, you can use special tags in your text prompt to add expressive elements to the generated speech.

Available Emotion-Supported Voices

Female Voices

  • Tara
  • Leah
  • Jess
  • Mia
  • Zoe

Male Voices

  • Leo
  • Dan
  • Zac

Supported Emotion Tags

The following emotion tags can be added to speech prompts to enhance expressiveness:
TagDescription
<laugh>Adds a laughing effect
<chuckle>A soft chuckle for a subtle humorous tone
<sigh>Expresses disappointment, relief, or tiredness
<cough>Simulates a short cough
<sniffle>Mimics a sniffle, indicating sadness or a cold
<groan>Adds a groaning effect for frustration or discomfort
<yawn>Simulates yawning to express boredom or tiredness
<gasp>Expresses shock or surprise

Body

json
{    
    "key": "enterprise_api_key",
    "prompt":"Build next-generation AI products without worrying about GPUs",
    "language":"american english",
    "voice_id":"madison",
    "speed":1,
    "emotion":false
}

Body Attributes

key
string
required
API key for authentication.
prompt
string
default:"2500 Chars"
required
Text prompt describing audio to be generate Max len 2500 chars.
voice_id
string
required
ID of trained voice Find Pretrained Voices Here.
language
string
default:"english"
Language for the voice.
Allowed values: american english, british english, spanish, japanese, mandarin chinese, french, brazilian portuguese, hindi, italian.
speed
number
default:"1.0"
Playback speed of generated audio.
emotion
boolean
default:"false"
Enable emotion support (English only).
temp
boolean
default:"false"
Use temporary links valid for 24 hours.
webhook
string
URL to receive POST notification upon completion.
track_id
integer
ID for webhook identification.
I