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

    Interface SilenceOptions

    Configuration options for silence elements.

    Provides precise control over silence placement in speech output, with options for various positions and boundary types.

    const silence: SilenceOptions = {
    type: 'Sentenceboundary',
    value: '500ms' // Add 500ms between sentences
    };
    interface SilenceOptions {
        type: SilenceType;
        value: string;
    }
    Index

    Properties

    Properties

    Position and type of silence to add. (Required)

    Determines where silence is inserted:

    • Leading types: Beginning of text
    • Tailing types: End of text
    • Boundary types: Between sentences or at punctuation
    • Exact types: Replace natural silence with specified duration
    "Sentenceboundary"
    
    "Leading-exact"
    
    "Comma-exact"
    
    value: string

    Duration of the silence. (Required)

    Specified in milliseconds (ms) or seconds (s). Valid range: 0-20000ms (20 seconds max)

    For non-exact types, this is added to natural silence. For exact types, this replaces natural silence.

    "200ms" - 200 milliseconds
    
    "1s" - 1 second
    
    "500ms" - Half second