HomeyAPI~ManagerSpeechInput

Methods

async parseSpeech(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.speech

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Attributes Description
transcript string
confidence number <optional>
session string <optional>
synthesize boolean <optional>
words Array.<object> <optional>
waitForAnswer object <optional>
Returns:
Promise.<void> - Successful response

async ask(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.speech

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Attributes Description
text string
session string <optional>
synthesize boolean <optional>
timeout number <optional>
Returns:
Promise.<void> - Successful response

async askResponse(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.speech

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Attributes Description
session string
transcript string <optional>
Returns:
Promise.<void> - Successful response

async confirm(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.speech

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Attributes Description
text string
session string <optional>
timeout number <optional>
Returns:
Promise.<void> - Successful response

async getHistory(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.speech

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Returns:
Promise.<void> - Successful response

async getSpeechAgents(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.speech

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Returns:
Promise.<void> - Successful response

Classes

Error