From f94cca71cf45bf980eca0830ff8ee91f2029a846 Mon Sep 17 00:00:00 2001 From: VEP Date: Fri, 8 Nov 2024 19:04:34 +0800 Subject: [PATCH] Fix: Reset sample-buffer after processing (#1521) Co-authored-by: VEP <517138883@qq.com> --- .../two-pass-speech-recognition-from-microphone.py | 1 - 1 file changed, 1 deletion(-) 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 aa2245c5..7d5017f5 100755 --- a/python-api-examples/two-pass-speech-recognition-from-microphone.py +++ b/python-api-examples/two-pass-speech-recognition-from-microphone.py @@ -427,7 +427,6 @@ def main(): ) print("\r{}:{}".format(segment_id, result), flush=True) segment_id += 1 - else: sample_buffers = [] first_recognizer.reset(stream)