diff --git a/python-api-examples/two-pass-speech-recognition-from-microphone.py b/python-api-examples/two-pass-speech-recognition-from-microphone.py index 7d5017f58..aa2245c5c 100755 --- a/python-api-examples/two-pass-speech-recognition-from-microphone.py +++ b/python-api-examples/two-pass-speech-recognition-from-microphone.py @@ -427,6 +427,7 @@ def main(): ) print("\r{}:{}".format(segment_id, result), flush=True) segment_id += 1 + else: sample_buffers = [] first_recognizer.reset(stream)