gs

google-speech

node.js module for Google speech systems (ASR & TTS)

Showing:

Popularity

Downloads/wk

39

GitHub Stars

23

Maintenance

Last Commit

6yrs ago

Contributors

2

Package

Dependencies

1

Size (min+gzip)

190.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

google-speech

node.js module for Google speech systems (ASR)

Install

npm install google-speech --save

Automatic Speech Recognition

Get API key: https://console.developers.google.com/

more docs: https://github.com/gillesdemey/google-speech-v2

var google_speech = require('google-speech');

google_speech.ASR({
    developer_key: 'XXXXXXXX',
    file: 'data/1.wav',
  }, function(err, httpResponse, xml){
    if(err){
        console.log(err);
      }else{
        console.log(httpResponse.statusCode, xml)
      }
    }
);

Text-To-Speech

(use unofficial api, api key not required)

var google_speech = require('google-speech');

google_speech.TTS({
  text: 'Привет, мир!',
  file: 'data/hello.mp3'
  }, function(){
    console.log('done');
  }
);

//or so

google_speech.TTS({
  text: 'Привет, мир!',
  file: 'data/hello.mp3',
  language: 'ru',
  encoding: 'UTF-8'
  }, function(){
    console.log('done');
  }
);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100