evancohen / sonus

:speech_balloon: /so.nus/ STT (speech to text) for Node with offline hotword detection
MIT License
619 stars 79 forks source link

fixing example, cleaning up API, and adding language configuration #8

Closed evancohen closed 7 years ago

evancohen commented 7 years ago

@ashishsc

Changes:

ashishsc commented 7 years ago

Plenty of things, do while, a small function, even an object literal instead of a one works better

On Tue, Oct 4, 2016, 10:41 PM Evan Cohen notifications@github.com wrote:

@evancohen commented on this pull request.

In index.js https://github.com/evancohen/sonus/pull/8:

sonus.mic = {}

  • const csr = CloudSpeechRecognizer.init(recognizer) +
  • opts.hotwords = opts.hotwords || [1]

What do you propose?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/evancohen/sonus/pull/8, or mute the thread https://github.com/notifications/unsubscribe-auth/ACgRCpKnJXMjeK-vw_l4qqXTn4aj1VBnks5qwzhsgaJpZM4KOabL .

ashishsc commented 7 years ago

:chains: saw