0.1.2 • Published 8 years ago

say-something v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Say something Build Status

NPM

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

twitter/vitorleal
Vitor Leal

License

LICENSE