Instance Methods
say
(async) say(text, opts): Promise.<any>Let Homey say something. There is a limit of 255 characters.
Requires the
homey:manager:speech
-output permission. For more information about permissions read the Permissions tutorial.
Parameters
Name | Type | Description |
---|---|---|
text
|
string | The sentence to say |
opts
|
object | |
session
|
object | The session of the speech. Leave empty to use Homey's built-in speaker |
|
Returns
Promise.<any>
Example
this.homey.speechOutput.say('Hello world!')
.then(this.log)
.catch(this.error);