diff --git a/python/vosk/transcriber/transcriber.py b/python/vosk/transcriber/transcriber.py index 454257fd..ba77dc5a 100644 --- a/python/vosk/transcriber/transcriber.py +++ b/python/vosk/transcriber/transcriber.py @@ -76,7 +76,7 @@ def format_result(self, result, words_per_line=7): if self.args.output_type == "srt": subs = [] - for _, res in enumerate(result): + for res in result: if not "result" in res: continue words = res["result"] @@ -97,7 +97,7 @@ def format_result(self, result, words_per_line=7): elif self.args.output_type == "json": monologues = {"schemaVersion":"2.0", "monologues":[]} - for _, res in enumerate(result): + for res in result: if not "result" in res: continue monologue = { "speaker": {"id": "unknown", "name": None}, "start": 0, "end": 0, "terms": []}