Skip to content

Commit

Permalink
Fix duration from predictor.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnewman committed Oct 21, 2024
1 parent 4dd52da commit 7e5540d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions f5_tts_mlx/cfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,6 @@ def sample(
frame_rate = self.mel_spec.sample_rate // self.mel_spec.hop_length
duration = (duration_in_sec * frame_rate / speed).astype(mx.int32).item()
print(f"Got duration of {duration} frames ({duration_in_sec.item()} secs) for generated speech.")

# include the reference audio length
duration = duration + lens
elif duration is None:
raise ValueError("Duration must be provided or a duration predictor must be set.")

Expand Down

0 comments on commit 7e5540d

Please sign in to comment.