From 60ae4edf2c934bb84b0b60152dd6693db9861fbf Mon Sep 17 00:00:00 2001 From: jerjou Date: Wed, 7 Sep 2016 12:45:49 -0700 Subject: [PATCH] Continuously transcribe in streaming. --- speech/grpc/transcribe_streaming.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/speech/grpc/transcribe_streaming.py b/speech/grpc/transcribe_streaming.py index d4bd86685af..586a7a85986 100644 --- a/speech/grpc/transcribe_streaming.py +++ b/speech/grpc/transcribe_streaming.py @@ -100,12 +100,6 @@ def request_stream(stop_audio, channels=CHANNELS, rate=RATE, chunk=CHUNK): ) streaming_config = cloud_speech.StreamingRecognitionConfig( config=recognition_config, - # Note that setting interim_results to True means that you'll likely - # get multiple results for the same bit of audio, as the system - # re-interprets audio in the context of subsequent audio. However, this - # will give us quick results without having to tell the server when to - # finalize a piece of audio. - interim_results=True, single_utterance=True ) yield cloud_speech.StreamingRecognizeRequest(