Cloud Speech API on Bash-on-Windows

86 views
Skip to first unread message

Husam Abdul-Kafi

unread,
Aug 2, 2016, 4:12:20 PM8/2/16
to Google APIs
So, I'm working in a Bash On Windows environment and I'm trying out the new Google Cloud Speech API.  There's an example script here used to stream audio from the microphone to the API and return the ASR output.  To run it, I had to install grpc-google-cloud-speech-v1beta1 using pip install grpc-google-cloud-speech-v1beta1.  Running the python script, I came across this error (entire output shown):

[root@DESKTOP-4933SCP ~]# python speech_streaming.py
D0802 15:43:09.021122100     124 ev_posix.c:101]             Using polling engine: poll
I0802 15:43:09.497654600     126 subchannel.c:642]           Connect failed: {"created":"@1470166989.497599100","description":"Failed to set TCP_NODELAY","file":"src/core/lib/iomgr/socket_utils_common_posix.c","file_line":184}
I0802 15:43:09.499343800     126 subchannel.c:647]           Retry in 0.999801000 seconds
I0802 15:43:09.499843400     126 subchannel.c:642]           Connect failed: {"created":"@1470166989.499788400","description":"Failed to set TCP_NODELAY","file":"src/core/lib/iomgr/socket_utils_common_posix.c","file_line":184}
I0802 15:43:09.500223600     126 subchannel.c:647]           Retry in 0.999892000 seconds
Traceback (most recent call last):
  File "speech_streaming.py", line 157, in <module>
    main()
  File "speech_streaming.py", line 149, in main
    request_stream(stop_audio), DEADLINE_SECS))
  File "speech_streaming.py", line 125, in listen_print_loop
    for resp in recognize_stream:
  File "/usr/local/lib/python2.7/dist-packages/grpc/beta/_client_adaptations.py", line 150, in next
    return self._next()
  File "/usr/local/lib/python2.7/dist-packages/grpc/beta/_client_adaptations.py", line 144, in _next
    raise _abortion_error(rpc_error_call)
grpc.framework.interfaces.face.face.AbortionError: AbortionError(code=StatusCode.UNAVAILABLE, details="")

I really don't know the first place to look to find out what is happening in this error and eventually found this group (I'm pretty shaky on most of what is going on here, especially grpc).  Any help would be appreciated!



Hong

unread,
Aug 2, 2016, 5:10:48 PM8/2/16
to Husam Abdul-Kafi, Google APIs
The error code indicates either the server is down or grpc is not configured properly somewhere. Please use this page to find more info, https://cloud.google.com/speech/support.

Hong

--
You received this message because you are subscribed to the Google Groups "Google APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googleapis+unsubscribe@googlegroups.com.
To post to this group, send email to googl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/googleapis/8affee6d-9740-49cd-b6fe-93e6e10600a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Husam Abdul-Kafi

unread,
Aug 2, 2016, 5:47:26 PM8/2/16
to Google APIs, husamab...@gmail.com
Thanks for the pointer!  I'll ask the group over at https://groups.google.com/forum/#!forum/cloud-speech-discuss 

Hong

To unsubscribe from this group and stop receiving emails from it, send an email to googleapis+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages