juesato / gspeech-api

Node.js wrapper library to easily access Google Speech Recognition API
20 stars 9 forks source link

"Could not get valid response from Google servers for segment starting at..." #4

Open brettz9 opened 7 years ago

brettz9 commented 7 years ago

Exciting prospect for using your work...

I'm getting the following message for different talks I've tried transcribing:

Could not get valid response from Google servers for segment starting at second ...

Followed by an error like this:

/Users/brett/audio-conversion/node_modules/gspeech-api/index.js:63 full += timedTranscript[i].text + ' '; ^

TypeError: Cannot read property 'text' of undefined

I haven't taken a close look at your code, but could you just skip over errors (or provide them as HTML response strings on some error object property), or perhaps return an array of successful strings with error objects interspersed) and allow one to iterate oneself to decide what to do with error portions?

juesato commented 7 years ago

Hey, sorry I'm not maintaining this package any more. Since the whole library is a single file (index.js), the easiest thing to do would be to just to copy this file into your directory, and then you can make whatever changes you want to it.