You are currently viewing the Homey Apps SDK v2 documentation. New apps should use Homey Apps SDK v3 ››

Homey.ManagerSpeechOutput

const { ManagerSpeechOutput } = require('homey');

Table of Contents

Methods

say(text, opts, callback)

Let Homey say something. There is a limit of 255 characters.

Permissions:
  • homey:manager:speech-output
Parameters:
Name Type Description
text string

The sentence to say

opts Object
Name Type Description
session Object

The session of the speech. Leave empty to use Homey's built-in speaker

callback genericCallbackFunction
Returns:

Promise

Example
const Homey = require('homey');
Homey.ManagerSpeechOutput.say('Hello world!')
   .then( this.log )
   .catch( this.error );