SSML Builder Documentation - v1.0.1
    Preparing search index...

    Type Alias ExpressAsStyle

    ExpressAsStyle:
        | "advertisement_upbeat"
        | "affectionate"
        | "angry"
        | "assistant"
        | "calm"
        | "chat"
        | "cheerful"
        | "customerservice"
        | "depressed"
        | "disgruntled"
        | "documentary-narration"
        | "embarrassed"
        | "empathetic"
        | "envious"
        | "excited"
        | "fearful"
        | "friendly"
        | "gentle"
        | "hopeful"
        | "lyrical"
        | "narration-professional"
        | "narration-relaxed"
        | "newscast"
        | "newscast-casual"
        | "newscast-formal"
        | "poetry-reading"
        | "sad"
        | "serious"
        | "shouting"
        | "sports_commentary"
        | "sports_commentary_excited"
        | "whispering"
        | "terrified"
        | "unfriendly"

    Expression styles for Azure neural voices.

    Defines emotional and speaking styles available for neural voices that support the express-as element. Not all voices support all styles - check voice documentation for supported styles per voice.

    Style categories:

    Emotions:

    • affectionate: Warm, caring tone
    • angry: Angry, irritated tone
    • cheerful: Happy, upbeat tone
    • depressed: Sad, low-energy tone
    • embarrassed: Embarrassed, hesitant tone
    • envious: Jealous tone
    • excited: High energy, enthusiastic
    • fearful: Scared, worried tone
    • gentle: Soft, gentle tone
    • hopeful: Optimistic tone
    • sad: Sad, sorrowful tone
    • terrified: Very frightened tone

    Professional styles:

    • advertisement_upbeat: Energetic advertising voice
    • assistant: Professional virtual assistant
    • customerservice: Friendly customer service tone
    • newscast: Professional news reading
    • newscast-casual: Casual news presentation
    • newscast-formal: Formal news presentation
    • narration-professional: Professional narration
    • narration-relaxed: Relaxed storytelling
    • documentary-narration: Documentary style

    Conversational styles:

    • calm: Calm, composed tone
    • chat: Casual conversation
    • friendly: Friendly, warm tone
    • serious: Serious, formal tone
    • unfriendly: Cold, distant tone

    Special styles:

    • empathetic: Understanding, empathetic tone
    • lyrical: Musical, poetic style
    • poetry-reading: Poetry recitation style
    • shouting: Loud, shouting voice
    • whispering: Quiet, whispering voice
    • sports_commentary: Sports announcer style
    • sports_commentary_excited: Excited sports announcer
    // Emotional expression
    voice.expressAs('I am so happy!', { style: 'cheerful' });

    // Professional tone
    voice.expressAs('Breaking news...', { style: 'newscast-formal' });

    // With intensity control
    voice.expressAs('This is amazing!', {
    style: 'excited',
    styledegree: '2' // Double intensity
    });