Spaces:
Running
on
Zero
Running
on
Zero
Sync from GitHub repo
Browse filesThis Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there
- pyproject.toml +1 -1
- src/f5_tts/api.py +3 -4
pyproject.toml
CHANGED
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4 |
|
5 |
[project]
|
6 |
name = "f5-tts"
|
7 |
-
version = "1.0.
|
8 |
description = "F5-TTS: A Fairytaler that Fakes Fluent and Faithful Speech with Flow Matching"
|
9 |
readme = "README.md"
|
10 |
license = {text = "MIT License"}
|
|
|
4 |
|
5 |
[project]
|
6 |
name = "f5-tts"
|
7 |
+
version = "1.0.3"
|
8 |
description = "F5-TTS: A Fairytaler that Fakes Fluent and Faithful Speech with Flow Matching"
|
9 |
readme = "README.md"
|
10 |
license = {text = "MIT License"}
|
src/f5_tts/api.py
CHANGED
@@ -74,8 +74,6 @@ class F5TTS:
|
|
74 |
elif model == "E2TTS_Base":
|
75 |
repo_name = "E2-TTS"
|
76 |
ckpt_step = 1200000
|
77 |
-
else:
|
78 |
-
raise ValueError(f"Unknown model type: {model}")
|
79 |
|
80 |
if not ckpt_file:
|
81 |
ckpt_file = str(
|
@@ -117,8 +115,9 @@ class F5TTS:
|
|
117 |
seed=None,
|
118 |
):
|
119 |
if seed is None:
|
120 |
-
|
121 |
-
seed_everything(
|
|
|
122 |
|
123 |
ref_file, ref_text = preprocess_ref_audio_text(ref_file, ref_text, device=self.device)
|
124 |
|
|
|
74 |
elif model == "E2TTS_Base":
|
75 |
repo_name = "E2-TTS"
|
76 |
ckpt_step = 1200000
|
|
|
|
|
77 |
|
78 |
if not ckpt_file:
|
79 |
ckpt_file = str(
|
|
|
115 |
seed=None,
|
116 |
):
|
117 |
if seed is None:
|
118 |
+
seed = random.randint(0, sys.maxsize)
|
119 |
+
seed_everything(seed)
|
120 |
+
self.seed = seed
|
121 |
|
122 |
ref_file, ref_text = preprocess_ref_audio_text(ref_file, ref_text, device=self.device)
|
123 |
|