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

    Type Alias SayAsInterpretAs

    SayAsInterpretAs:
        | "address"
        | "cardinal"
        | "characters"
        | "date"
        | "digits"
        | "fraction"
        | "ordinal"
        | "spell-out"
        | "telephone"
        | "time"
        | "name"
        | "currency"

    Interpretation types for the say-as element.

    Specifies how text should be interpreted and pronounced. Essential for proper pronunciation of numbers, dates, times, and other formatted text.

    Types:

    • address: Street addresses
    • cardinal: Cardinal numbers (1, 2, 3)
    • characters: Spell out each character
    • date: Date values
    • digits: Speak each digit individually
    • fraction: Fractions (1/2, 3/4)
    • ordinal: Ordinal numbers (1st, 2nd, 3rd)
    • spell-out: Spell out the entire word
    • telephone: Phone numbers
    • time: Time values
    • name: Personal names
    • currency: Monetary amounts
    // Date pronunciation
    voice.sayAs('2025-12-31', { interpretAs: 'date', format: 'ymd' });

    // Currency with detail
    voice.sayAs('\$42.50', { interpretAs: 'currency', detail: 'USD' });

    // Phone number
    voice.sayAs('1-800-555-1234', { interpretAs: 'telephone' });

    // Ordinal number
    voice.sayAs('3', { interpretAs: 'ordinal' }); // "third"