sugo-module-say
Say command module for SUGOS. (Supports only OSX)
Requirements
This modules uses say
command of OSX, thus you need a mac.
Installation
$ npm install sugo-module-say --save
Usage
Register module to SUGO-Actor
#!/usr/bin/env node /** * Example usage to register module on actor * @see https://github.com/realglobe-Inc/sugo-actor */'use strict' const sugoModuleSay = const sugoActor = const co =
Then, call the module from remote caller.
#!/usr/bin/env node /** * Example to call from caller * @see https://github.com/realglobe-Inc/sugo-caller */'use strict' const co = const assert = const sugoCaller =
Methods
The following methods are available from remote callers for the module.
array
.voices() -> List available voices
.say(text, options)
Say texts
Param | Type | Description |
---|---|---|
text | string |
Text to say |
options | Object |
Optional settings |
string
.ping(pong) -> Test the reachability of a module.
Param | Type | Description |
---|---|---|
pong | string |
Pong message to return |
boolean
.assert() -> Test if the actor fulfills system requirements
License
This software is released under the Apache-2.0 License.