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
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.