tsbase
    Preparing search index...

    Class SpeechSynthesizer

    Provides an interface for synthesizing speech

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

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

      Parameters

      • phrase: string | SpeechSynthesisUtterance
      • Optionalvoice: SpeechSynthesisVoice
      • utteranceFactory: (phrase: string) => SpeechSynthesisUtterance = ...

      Returns Promise<void>