Emotion Control
Add emotional expression to synthesized speech
Overview
Use the <speechify:style> SSML tag to control the emotion of synthesized speech:
Pass SSML as the input parameter. The API detects it automatically.
Python
TypeScript
cURL
Supported emotions
angry
Forceful, intense
cheerful
Upbeat, positive
sad
Downcast, melancholic
terrified
Extreme fear
relaxed
Calm, at-ease
fearful
Anxious, worried
surprised
Astonished, unexpected
calm
Tranquil, peaceful
assertive
Confident, authoritative
energetic
Dynamic, lively
warm
Friendly, inviting
direct
Straightforward, clear
bright
Optimistic, cheerful
Tips for best results
- Match text to emotion: “I told you not to do that!” works with
angry, not withcheerful. - Keep sentences short: shorter sentences produce stronger emotional expression.
- Use punctuation:
!for anger/excitement,?for uncertainty,...for hesitation/sadness. - Combine with SSML: pair emotions with
<prosody>and<break>for finer control. See SSML docs.