diff --git a/f5_tts_mlx/generate.py b/f5_tts_mlx/generate.py index 2ce0279..7ab660b 100644 --- a/f5_tts_mlx/generate.py +++ b/f5_tts_mlx/generate.py @@ -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( diff --git a/pyproject.toml b/pyproject.toml index b1a3377..6e27c8b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "lucasnewman@me.com"}] license = {text = "MIT"} description = "F5-TTS - MLX"