Git Product home page Git Product logo

say.js's Introduction

Installing npm (node package manager)

 curl http://npmjs.org/install.sh | sh

Installing say.js

 npm install say

usage - Mac OS voices

  var say = require('say'),
  colors = require('colors'),
  sys = require('sys');

  // no callback, fire and forget
  say.speak('Alex', 'whats up, dog?');

  // no callback, fire and forget
  say.speak('Cellos', 'whats up, dog?');

  // output some text to the console as the callback
  say.speak('Good News', 'whats up, dog?', function () {
    sys.puts('text to speech complete'.green);
  });


  // try using translate.js with say.js
  var translate = require('translate');

  translate.text('Yo quero tacos por favor', function(result){
    say.speak('Alex', result);
  });

Usage - Linux

Linux support involves the use of Festival, which uses decidedly less friendly names for its voices. Voices for Festival sometimes need to be installed separately - you can check which voices are available by starting up Festival in interactive mode, typing (voice_, and pressing TAB. Then take the name of the voice you'd like to try, minus the parentheses, and pass it in to say.js.

voices

girls

  • Agnes
  • Kathy
  • Princess
  • Vicki
  • Victoria

guys

  • Albert
  • Alex
  • Bruce
  • Fred
  • Junior
  • Ralph

others

  • Bad News
  • Bahh
  • Bells
  • Boing
  • Bubbles
  • Cellos
  • Deranged
  • Good News
  • Hysterical
  • Pipe Organ
  • Trinoids
  • Whisper
  • Zarvox

fun facts

say.speak calls are asynchronous, lol ^_^

translation provided by translate.js

languages

Afrikaans
Albanian
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bulgarian
Catalan
Chinese
Croatian
Czech
Danish
Dutch
English
Estonian
Filipino
Finnish
French
Galician
Georgian
German
Greek
Haitian Creole
Hebrew
Hindi
Hungarian
Icelandic
Indonesian
Irish
Italian
Japanese
Korean
Latvian
Lithuanian
Macedonian
Malay
Maltese
Norwegian
Persian
Polish
Portuguese
Romanian
Russian
Serbian
Slovak
Slovenian
Spanish
Swahili
Swedish
Thai
Turkish
Ukrainian
Urdu
Vietnamese
Welsh
Yiddish

Requirements

Mac OS

say.js's People

Contributors

marak avatar 4ver avatar avianflu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.