Skip to content

Commit

Permalink
Merge pull request #6 from Picovoice/falcon-minor-rename
Browse files Browse the repository at this point in the history
rename an internal variable in the python binding
  • Loading branch information
albho authored Jan 15, 2024
2 parents ed150c8 + 50b5a9a commit 6564380
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions binding/python/_falcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 6564380

Please sign in to comment.