Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -93,14 +93,12 @@ def generate_audio(text, audio_ref, temperature, top_P, top_K, audio_seed_input,
|
|
93 |
print("Get voices segment!")
|
94 |
|
95 |
# Run the tone color converter
|
96 |
-
encode_message = "@Hilley"
|
97 |
# convert from file
|
98 |
tone_color_converter.convert(
|
99 |
audio_src_path=src_path,
|
100 |
src_se=source_se,
|
101 |
tgt_se=target_se,
|
102 |
-
output_path=save_path
|
103 |
-
message=encode_message)
|
104 |
else:
|
105 |
chat_tts(text, temperature, top_P, top_K, audio_seed_input, text_seed_input, refine_text_flag, refine_text_input, save_path)
|
106 |
|
|
|
93 |
print("Get voices segment!")
|
94 |
|
95 |
# Run the tone color converter
|
|
|
96 |
# convert from file
|
97 |
tone_color_converter.convert(
|
98 |
audio_src_path=src_path,
|
99 |
src_se=source_se,
|
100 |
tgt_se=target_se,
|
101 |
+
output_path=save_path)
|
|
|
102 |
else:
|
103 |
chat_tts(text, temperature, top_P, top_K, audio_seed_input, text_seed_input, refine_text_flag, refine_text_input, save_path)
|
104 |
|