tsbase
    Preparing search index...

    Interface ISpeechSynthesizer

    Provides an interface for synthesizing speech

    interface ISpeechSynthesizer {
        Speak(
            phrase: string | SpeechSynthesisUtterance,
            voice?: SpeechSynthesisVoice,
            utteranceFactory?: (phrase: string) => SpeechSynthesisUtterance,
        ): Promise<void>;
    }

    Implemented by

    Index

    Methods

    Methods

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

      Parameters

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

      Returns Promise<void>