say-something

0.1.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    1
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i say-something

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • vitorleal