say

TTS (text to speech) for node.js. send text from node.js to your speakers.

npm install say

usage - Mac OS voices

var say = require('say'),
 
// no callback, fire and forget 
say.speak('Alex', 'whats up, dog?');
 
// use default voice in System Preferences 
say.speak(null, 'Hello!');
 
// 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 () {
     console.log('text to speech complete');
});
 
 
// 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.

  • Agnes
  • Kathy
  • Princess
  • Vicki
  • Victoria
  • Albert
  • Alex
  • Bruce
  • Fred
  • Junior
  • Ralph
  • Bad News
  • Bahh
  • Bells
  • Boing
  • Bubbles
  • Cellos
  • Deranged
  • Good News
  • Hysterical
  • Pipe Organ
  • Trinoids
  • Whisper
  • Zarvox

say.speak() calls are asynchronous, lol ^_^

translation provided by translate.js

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

Mac OS (comes with say) or Linux with Festival