Options
All
  • Public
  • Public/Protected
  • All
Menu

This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.)

Hierarchy

  • EventTarget
    • SpeechSynthesisUtterance

Index

Properties

lang: string
onboundary: null | ((this: internal.SpeechSynthesisUtterance, ev: internal.SpeechSynthesisEvent) => any)
onmark: null | ((this: internal.SpeechSynthesisUtterance, ev: internal.SpeechSynthesisEvent) => any)
onpause: null | ((this: internal.SpeechSynthesisUtterance, ev: internal.SpeechSynthesisEvent) => any)
onresume: null | ((this: internal.SpeechSynthesisUtterance, ev: internal.SpeechSynthesisEvent) => any)
onstart: null | ((this: internal.SpeechSynthesisUtterance, ev: internal.SpeechSynthesisEvent) => any)
pitch: number
rate: number
text: string
volume: number

Methods

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

Generated using TypeDoc