audio-vs1053b-textspeech
v0.0.3
Published
Text-to-Speech module for tessel audio module (vs1053b), using mp3 from Google translate.
Downloads
4
Maintainers
Readme
audio-vs1053b-textspeech
Text-to-Speech module for tessel audio module, using mp3 from Google translate.
- https://github.com/shokai/audio-vs1053b-textspeech
- https://npmjs.org/package/audio-vs1053b-textspeech
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('こんにちは'); // japanese
textspeech.speech('hello world', {tl: 'en'}); // english
set mp3 data cache size
textspeech.setCacheSize(5); // default is 3
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