say-something
v0.1.2
Published
Use the Google Translate voice to make you apps and things talk!
Downloads
24
Maintainers
Readme
Say something
Say something is a node.js module to make your apps and things talk using the Google Trasnlate Voice. It requeires internet connection.
Install
Use NPM to instal the module
$ npm install say-something
Example
Quick example:
var SaySomehting = require('say-something');
saySomething = new SaySomehting();
//Say something
saySomething.now('I am talking to you!');
//When start talking
saySomething.on('talking', function (text) {
console.log("I'm saying: " + text);
});
//After stop talking
saySomething.on('done', function () {
console.log("I'm done talking");
});
Change the default language (en) to 'pt-br' for example:
var SaySomehting = require('say-something');
saySomething = new SaySomehting({ language: 'pt-br' });
//Say something
saySomething.now('Eu estou falando!');
//When start talking
saySomething.on('talking', function (text) {
console.log('Comecei a falar: ' + text);
});
//After stop talking
saySomething.on('done', function () {
console.log('Terminei de falar');
});
Documentation
Read the Docs - Link
Author
| | |---| | Vitor Leal |