Skip to content

Commit

Permalink
Skip if noe segemnets
Browse files Browse the repository at this point in the history
  • Loading branch information
patriotyk committed Mar 9, 2024
1 parent ef448ca commit e487649
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions narizaka/aligner.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ def run(self, book: pathlib.Path, transcribed):
current_waveform_orig = self.normalize_loudness(current_waveform_orig, sr)

for segment in segments['segments']:
if not segment:
continue
print(f'\n{format_timestamp(segment["start"])} -> {format_timestamp(segment["end"])}: {segment["text"]}')

match = self.find_match(segment["text"])
Expand Down

0 comments on commit e487649

Please sign in to comment.