JS的TTS引擎 Say.js

fmms 13年前

JS的TTS引擎 Say.js

Say.js 是一个支持 Node.js的 Javascript 的 TTS语音引擎。

翻译由 translate.js提供

支持的语言包括:

Afrikaans
Albanian
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bulgarian
Catalan
中文
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

 

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);    });

项目主页:http://www.open-open.com/lib/view/home/1328928109280