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)