sonus icon indicating copy to clipboard operation
sonus copied to clipboard

CloudSpeechRecognizer connection status

Open lpercifield opened this issue 7 years ago • 5 comments

Great work BTW!

I'm interested in understanding if there is a way to detect the status of the cloud speech recognizer. I'm working on an embedded application and would love to be able to display an "offline" if the recognizer socket has disconnected or if the connection fails. Currently it fails silently.

Tested by disconnecting network and running any sonus example.

I looked through the google cloud docs and didn't see anything obvious.

Hopefully it's a quick fix, or you can point me to the google module that does it.

Thanks again, Leif

lpercifield avatar Feb 13 '17 22:02 lpercifield

I've been looking for the docs on this as well. It doesn't seem like it's obviously exposed. Ideally sonus could trigger the error event with context saying that there is a connection issue, but I haven't been able to find any documentation about it in their speech library. Maybe it'd better to look at the grpc lib?

evancohen avatar Feb 14 '17 05:02 evancohen

That's really a must. Amazon DOT comes back with a red light and "I'm sorry but I'm having trouble understanding right now".

scargill avatar Mar 02 '17 10:03 scargill

Totally agreed. I'm still looking for a good way to do this and am open to suggestions :)

evancohen avatar Mar 02 '17 14:03 evancohen

I opened an issue with in the google repo, seems like there might be something doing on their end: https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1993

lpercifield avatar Mar 02 '17 15:03 lpercifield

It seems that this is now exposed! I should have time to implement it this weekend :)

evancohen avatar Apr 28 '17 08:04 evancohen