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

Properties

lang: string
onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any)

Type declaration

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

Type declaration

Type declaration

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

Type declaration

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

Type declaration

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

Type declaration

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

Type declaration

pitch: number
rate: number
text: string
volume: number

Methods

  • 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