We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7d2b50 commit 4e68accCopy full SHA for 4e68acc
speech/grpc/transcribe_streaming.py
@@ -28,7 +28,7 @@
28
import google.auth.transport.requests
29
from google.cloud.grpc.speech.v1beta1 import cloud_speech_pb2
30
from google.rpc import code_pb2
31
-from grpc.framework.interfaces.face import face
+import grpc
32
import pyaudio
33
from six.moves import queue
34
@@ -225,7 +225,7 @@ def main():
225
listen_print_loop(recognize_stream)
226
227
recognize_stream.cancel()
228
- except face.CancellationError:
+ except grpc.RpcError:
229
# This happens because of the interrupt handler
230
pass
231
0 commit comments