gspeech-api icon indicating copy to clipboard operation
gspeech-api copied to clipboard

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

Open brettz9 opened this issue 7 years ago • 1 comments

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?

brettz9 avatar Oct 02 '17 02:10 brettz9

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.

juesato avatar Oct 03 '17 01:10 juesato