Neurosis Prevention Mechanism

    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

    Install

    npm i say-something

    DownloadsWeekly Downloads

    6

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • vitorleal