Skip to content

Commit

Permalink
Fix issue with single generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnewman committed Dec 2, 2024
1 parent 0b71dc1 commit c0e4f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion f5_tts_mlx/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def generate(
audio = audio * TARGET_RMS / rms

sentences = split_sentences(generation_text)
is_single_generation = len(sentences) == 1 or duration is not None
is_single_generation = len(sentences) <= 1 or duration is not None

if is_single_generation:
generation_text = convert_char_to_pinyin(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "f5-tts-mlx"
version = "0.2.1"
version = "0.2.2"
authors = [{name = "Lucas Newman", email = "[email protected]"}]
license = {text = "MIT"}
description = "F5-TTS - MLX"
Expand Down

0 comments on commit c0e4f62

Please sign in to comment.