From be4a2488a839fc57b861cf8141c93eea3a10d652 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 11 Apr 2024 15:58:11 +0800 Subject: [PATCH] Use batch size 1 in generating subtitles. (#756) --- python-api-examples/generate-subtitles.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python-api-examples/generate-subtitles.py b/python-api-examples/generate-subtitles.py index b1b9eca58..1f03d0d08 100755 --- a/python-api-examples/generate-subtitles.py +++ b/python-api-examples/generate-subtitles.py @@ -417,7 +417,9 @@ def main(): vad.pop() - recognizer.decode_streams(streams) + for s in streams: + recognizer.decode_stream(s) + for seg, stream in zip(segments, streams): seg.text = stream.result.text segment_list.append(seg)