Interface ISpeechRecognizer

Provides an interface for listening to and interacting with user speech

interface ISpeechRecognizer {
    HandleSpeechCommands(commands, until): Promise<void>;
    Listen(): Promise<string>;
}

Implemented by

Methods

  • Continuously listen and react with the given commands to user speech until a given condition is met

    Parameters

    • commands: ISpeechCommand[]
    • until: (() => boolean)
        • (): boolean
        • Returns boolean

    Returns Promise<void>

Generated using TypeDoc