10000 Continuously transcribe in streaming. · comcomhanb/python-docs-samples@60ae4ed · GitHub
[go: up one dir, main page]

Skip to content

Commit 60ae4ed

Browse files
author
jerjou
committed
Continuously transcribe in streaming.
1 parent 30b1df2 commit 60ae4ed

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

speech/grpc/transcribe_streaming.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,6 @@ def request_stream(stop_audio, channels=CHANNELS, rate=RATE, chunk=CHUNK):
100100
)
101101
streaming_config = cloud_speech.StreamingRecognitionConfig(
102102
config=recognition_config,
103-
# Note that setting interim_results to True means that you'll likely
104-
# get multiple results for the same bit of audio, as the system
105-
# re-interprets audio in the context of subsequent audio. However, this
106-
# will give us quick results without having to tell the server when to
107-
# finalize a piece of audio.
108-
interim_results=True, single_utterance=True
109103
)
110104

111105
yield cloud_speech.StreamingRecognizeRequest(

0 commit comments

Comments
 (0)
0