evancohen / sonus

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

adapt API usage for latest google speech library #87

Closed timaschew closed 6 years ago

timaschew commented 6 years ago

This works for google @google-cloud/speech version 2.0.0

evancohen commented 6 years ago

Thanks for the contribution! Does v2 not allow you to use a keyfile?

timaschew commented 6 years ago

No, unfortunately that doesn't work anymore.

see https://cloud.google.com/speech-to-text/docs/reference/libraries#setting_up_authentication

evancohen commented 6 years ago

In that case we should probably update the examples and bump up the version in package.json too. Can you take a stab at that? (Or I can after my road trip)

timaschew commented 6 years ago

Oh, yes, that's true. I will try the next days.