audio-vs1053b-textspeech
Text-to-Speech module for tessel audio module, using mp3 from Google translate.
Usage
var audio = require('audio-vs1053b').use(tessel.port['A']);
var textspeech = require('audio-vs1053b-textspeech').use(audio);
audio.on('ready', function(){
audio.setVolume(20, function(err){
console.log('audio setup');
});
});
textspeech.speech('こんにちは');
textspeech.speech('hello world', {tl: 'en'});
set mp3 data cache size
textspeech.setCacheSize(5);
Sample
% npm install
% tessel run sample.js
# or
% npm test
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request