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

    Interface ExpressAsOptions

    Configuration options for express-as elements (Azure-specific).

    Controls emotional expression and speaking styles for neural voices that support these features. Allows for nuanced emotional delivery and role-playing scenarios.

    // Happy expression
    const happy: ExpressAsOptions = {
    style: 'cheerful',
    styledegree: '2' // Double intensity
    };

    // Child narrator
    const childNarrator: ExpressAsOptions = {
    style: 'narration-relaxed',
    role: 'Girl'
    };
    interface ExpressAsOptions {
        role?: ExpressAsRole;
        style: ExpressAsStyle;
        styledegree?: string;
    }
    Index

    Properties

    Age and gender role for voice modification.

    Simulates different speaker characteristics. Only supported by certain voices.

    "Girl"
    
    "OlderAdultMale"
    
    "YoungAdultFemale"
    

    ExpressAsRole type for full list

    Emotional or speaking style to apply. (Required)

    The available styles depend on the voice being used. Common categories include emotions (cheerful, sad, angry), professional styles (newscast, customerservice), and special effects (whispering, shouting).

    "cheerful"
    
    "newscast-formal"
    
    "whispering"
    

    ExpressAsStyle type for full list

    styledegree?: string

    Intensity of the style expression.

    Controls how strongly the style is applied. Range: "0.01" (minimal) to "2" (double intensity)

    "1"
    
    "0.5" - Half intensity
    
    "1.5" - 50% more intense
    
    "2" - Maximum intensity