Skip to content

Commit

Permalink
Use batch size 1 in generating subtitles. (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Apr 11, 2024
1 parent 399d920 commit be4a248
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python-api-examples/generate-subtitles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit be4a248

Please sign in to comment.