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

lang: string

onboundary

onboundary: null | ((ev: <internal>.SpeechSynthesisEvent) => any)

onend

onend: null | ((ev: <internal>.SpeechSynthesisEvent) => any)

onerror

onerror: null | ((ev: <internal>.SpeechSynthesisErrorEvent) => any)

onmark

onmark: null | ((ev: <internal>.SpeechSynthesisEvent) => any)

onpause

onpause: null | ((ev: <internal>.SpeechSynthesisEvent) => any)

onresume

onresume: null | ((ev: <internal>.SpeechSynthesisEvent) => any)

onstart

onstart: null | ((ev: <internal>.SpeechSynthesisEvent) => any)

pitch

pitch: number

rate

rate: number

text

text: string

voice

volume

volume: number

Methods

addEventListener

dispatchEvent

  • 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