LWT JavaScript API
    Preparing search index...
    • Read a text aloud, works with a phonetic version only.

      Parameters

      • text: string

        Text to read, won't be parsed further.

      • lang: string

        Language code with BCP 47 convention (e. g. "en-US" for English with an American accent)

      • Optionalrate: number

        Reading rate

      • Optionalpitch: number

        Pitch value

      • Optionalvoice: string

        Optional voice

      Returns SpeechSynthesisUtterance

      The spoken message object

      2.9.0 Accepts "voice" as a new optional argument