Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SpeechSynthesis

This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides.

Hierarchy

Index

Properties

EventTarget

EventTarget: { constructor: any; prototype: EventTarget }

Type declaration

onvoiceschanged

onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null

Readonly paused

paused: boolean

Readonly pending

pending: boolean

Readonly speaking

speaking: boolean

Methods

addEventListener

cancel

  • cancel(): void
  • Returns void

dispatchEvent

  • 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

getVoices

pause

  • pause(): void
  • Returns void

removeEventListener

resume

  • resume(): void
  • Returns void

speak

Generated using TypeDoc