Options
All
  • Public
  • Public/Protected
  • All
Menu

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: object

Type declaration

  • constructor: function
    • Returns EventTarget

  • prototype: EventTarget

onvoiceschanged

onvoiceschanged: function | null

paused

paused: boolean

pending

pending: boolean

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

  • Returns SpeechSynthesisVoice[]

pause

  • pause(): void
  • Returns void

removeEventListener

resume

  • resume(): void
  • Returns void

speak

  • Parameters

    Returns void

Generated using TypeDoc