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

EventTarget

EventTarget: object

Type declaration

  • constructor: function
    • new __type(): EventTarget
    • Returns EventTarget

  • prototype: EventTarget

lang

lang: string

onboundary

onboundary: function | null

onend

onend: function | null

onerror

onerror: function | null

onmark

onmark: function | null

onpause

onpause: function | null

onresume

onresume: function | null

onstart

onstart: function | null

pitch

pitch: number

rate

rate: number

text

text: string

voice

volume

volume: number

Methods

addEventListener

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

    • event: Event

    Returns boolean

removeEventListener

Generated using TypeDoc