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.)

MDN Reference

Hierarchy

Properties

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

Type declaration

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

Type declaration

onerror: ((this, ev) => any)

Type declaration

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

Type declaration

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

Type declaration

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

Type declaration

onstart: ((this, ev) => 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.

    MDN Reference

    Parameters

    Returns boolean