From 743a88b2d5fa485eba760df1e60ce10f988af829 Mon Sep 17 00:00:00 2001 From: VEP Date: Fri, 8 Nov 2024 21:28:04 +0800 Subject: [PATCH] Revert: [#1521] No need to reset sample-buffer (#1524) Co-authored-by: VEP <517138883@qq.com> --- .../two-pass-speech-recognition-from-microphone.py | 1 + 1 file changed, 1 insertion(+) 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 7d5017f584..aa2245c5c9 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)