Interface ISpeechSynthesizer

Provides an interface for synthesizing speech

interface ISpeechSynthesizer {
    Speak(phrase, voice?, utteranceFactory?): Promise<void>;
}

Implemented by

Methods

Methods

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

    Parameters

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

          • phrase: string

          Returns SpeechSynthesisUtterance

    Returns Promise<void>

Generated using TypeDoc