Spaces:
Configuration error
Configuration error
fix rel path for pip pkg usage
Browse files
src/f5_tts/infer/examples/basic/basic.toml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
# F5-TTS | E2-TTS
|
2 |
model = "F5-TTS"
|
3 |
-
ref_audio = "
|
4 |
# If an empty "", transcribes the reference audio automatically.
|
5 |
ref_text = "Some call me nature, others call me mother nature."
|
6 |
gen_text = "I don't really care what you call me. I've been a silent spectator, watching species evolve, empires rise and fall. But always remember, I am mighty and enduring."
|
|
|
1 |
# F5-TTS | E2-TTS
|
2 |
model = "F5-TTS"
|
3 |
+
ref_audio = "infer/examples/basic/basic_ref_en.wav"
|
4 |
# If an empty "", transcribes the reference audio automatically.
|
5 |
ref_text = "Some call me nature, others call me mother nature."
|
6 |
gen_text = "I don't really care what you call me. I've been a silent spectator, watching species evolve, empires rise and fall. But always remember, I am mighty and enduring."
|
src/f5_tts/infer/examples/multi/story.toml
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
# F5-TTS | E2-TTS
|
2 |
model = "F5-TTS"
|
3 |
-
ref_audio = "
|
4 |
# If an empty "", transcribes the reference audio automatically.
|
5 |
ref_text = ""
|
6 |
gen_text = ""
|
7 |
# File with text to generate. Ignores the text above.
|
8 |
-
gen_file = "
|
9 |
remove_silence = true
|
10 |
output_dir = "tests"
|
11 |
|
12 |
[voices.town]
|
13 |
-
ref_audio = "
|
14 |
ref_text = ""
|
15 |
|
16 |
[voices.country]
|
17 |
-
ref_audio = "
|
18 |
ref_text = ""
|
19 |
|
|
|
1 |
# F5-TTS | E2-TTS
|
2 |
model = "F5-TTS"
|
3 |
+
ref_audio = "infer/examples/multi/main.flac"
|
4 |
# If an empty "", transcribes the reference audio automatically.
|
5 |
ref_text = ""
|
6 |
gen_text = ""
|
7 |
# File with text to generate. Ignores the text above.
|
8 |
+
gen_file = "infer/examples/multi/story.txt"
|
9 |
remove_silence = true
|
10 |
output_dir = "tests"
|
11 |
|
12 |
[voices.town]
|
13 |
+
ref_audio = "infer/examples/multi/town.flac"
|
14 |
ref_text = ""
|
15 |
|
16 |
[voices.country]
|
17 |
+
ref_audio = "infer/examples/multi/country.flac"
|
18 |
ref_text = ""
|
19 |
|
src/f5_tts/infer/infer_cli.py
CHANGED
@@ -80,8 +80,8 @@ args = parser.parse_args()
|
|
80 |
config = tomli.load(open(args.config, "rb"))
|
81 |
|
82 |
ref_audio = args.ref_audio if args.ref_audio else config["ref_audio"]
|
83 |
-
if "
|
84 |
-
ref_audio = str(files("f5_tts").joinpath(f"
|
85 |
ref_text = args.ref_text if args.ref_text != "666" else config["ref_text"]
|
86 |
gen_text = args.gen_text if args.gen_text else config["gen_text"]
|
87 |
gen_file = args.gen_file if args.gen_file else config["gen_file"]
|
|
|
80 |
config = tomli.load(open(args.config, "rb"))
|
81 |
|
82 |
ref_audio = args.ref_audio if args.ref_audio else config["ref_audio"]
|
83 |
+
if "infer/examples/" in ref_audio: # for pip pkg user
|
84 |
+
ref_audio = str(files("f5_tts").joinpath(f"{ref_audio}"))
|
85 |
ref_text = args.ref_text if args.ref_text != "666" else config["ref_text"]
|
86 |
gen_text = args.gen_text if args.gen_text else config["gen_text"]
|
87 |
gen_file = args.gen_file if args.gen_file else config["gen_file"]
|