Skip to content

Commit 50217ad

Browse files
committed
chore(STT): set interim_results=True for microphone
1 parent e0f1d11 commit 50217ad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/microphone-speech-to-text.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def recognize_using_weboscket(*args):
7474
mycallback = MyRecognizeCallback()
7575
speech_to_text.recognize_using_websocket(audio=audio_source,
7676
content_type='audio/l16; rate=44100',
77-
recognize_callback=mycallback)
77+
recognize_callback=mycallback,
78+
interim_results=True)
7879

7980
###############################################
8081
#### Prepare the for recording using Pyaudio ##

0 commit comments

Comments
 (0)