From 50b5a9a5c98dd550e7b36c94f087b394cd517095 Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Mon, 15 Jan 2024 10:51:55 -0800 Subject: [PATCH] wip --- binding/python/_falcon.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/binding/python/_falcon.py b/binding/python/_falcon.py index 01b419f..054af5d 100644 --- a/binding/python/_falcon.py +++ b/binding/python/_falcon.py @@ -241,10 +241,10 @@ def process(self, pcm: Sequence[int]) -> Sequence[Segment]: segments = list() for i in range(num_segments.value): - word = self.Segment( + segment = self.Segment( start_sec=c_segments[i].start_sec, end_sec=c_segments[i].end_sec, speaker_tag=c_segments[i].speaker_tag ) - segments.append(word) + segments.append(segment) self._segments_delete_func(c_segments) @@ -276,10 +276,10 @@ def process_file(self, audio_path: str) -> Sequence[Segment]: segments = list() for i in range(num_segments.value): - word = self.Segment( + segment = self.Segment( start_sec=c_segments[i].start_sec, end_sec=c_segments[i].end_sec, speaker_tag=c_segments[i].speaker_tag ) - segments.append(word) + segments.append(segment) self._segments_delete_func(c_segments)