Class SpeechSynthesizer

Provides an interface for synthesizing speech

Implements

Constructors

Properties

Methods

Constructors

Properties

ss: SpeechSynthesis = globalThis.speechSynthesis

Methods

  • Asynchronously synthesize the given phrase or utterance in the configured or specified voice

    Parameters

    • phrase: string | SpeechSynthesisUtterance
    • Optional voice: SpeechSynthesisVoice
    • utteranceFactory: ((phrase) => SpeechSynthesisUtterance) = ...
        • (phrase): SpeechSynthesisUtterance
        • Parameters

          • phrase: string

          Returns SpeechSynthesisUtterance

    Returns Promise<void>

Generated using TypeDoc