Skip to content

shokai/audio-vs1053b-textspeech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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('こんにちは'); // 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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Text-to-Speech module for tessel audio module (vs1053b)

Resources

Stars

Watchers

Forks

Packages

No packages published