chromebots
Version:
chromebots specific APIs in browsers or node-ified
21 lines (14 loc) • 311 B
JavaScript
var controls = require('./lib/controls');
function speak(text){
const msg = {
command: 'speak',
payload: new String(text || '')
};
console.log('speak ' + JSON.stringify(msg));
window.parent.postMessage(msg, '*');
}
module.exports = {
controls : controls,
speak : speak
}
;