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

EventTarget

EventTarget: { constructor: any; prototype: EventTarget }

Type declaration

lang

lang: string

onboundary

onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null

onend

onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null

onerror

onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null

onmark

onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null

onpause

onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null

onresume

onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null

onstart

onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null

pitch

pitch: number

rate

rate: number

text

text: string

voice

voice: SpeechSynthesisVoice | null

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

    Returns boolean

removeEventListener

Generated using TypeDoc