Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SpeechSynthesisUtterance

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

Index

Properties

lang: string
onboundary: null | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any)
onend: null | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any)
onerror: null | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any)
onmark: null | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any)
onpause: null | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any)
onresume: null | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any)
onstart: null | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any)
pitch: number
rate: number
text: string
voice: null | SpeechSynthesisVoice
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

    Returns boolean

Generated using TypeDoc