Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,7 @@ def chat_tts(text, temperature, top_P, top_K, audio_seed_input, text_seed_input,
|
|
49 |
params_refine_text=params_refine_text,
|
50 |
params_infer_code=params_infer_code
|
51 |
)
|
|
|
52 |
|
53 |
wav = chat.infer(text,
|
54 |
skip_refine_text=True,
|
@@ -91,6 +92,7 @@ def generate_audio(text, audio_ref, temperature, top_P, top_K, audio_seed_input,
|
|
91 |
#chat_tts(text, temperature, top_P, top_K, audio_seed_input, text_seed_input, refine_text_flag, refine_text_input, src_path)
|
92 |
src_path = None
|
93 |
sample_rate, audio = chat_tts(text, temperature, top_P, top_K, audio_seed_input, text_seed_input, refine_text_flag, refine_text_input, src_path)[0]
|
|
|
94 |
|
95 |
# Run the tone color converter
|
96 |
encode_message = "@Hilley"
|
@@ -101,6 +103,7 @@ def generate_audio(text, audio_ref, temperature, top_P, top_K, audio_seed_input,
|
|
101 |
tgt_se=target_se,
|
102 |
output_path=save_path,
|
103 |
message=encode_message)
|
|
|
104 |
|
105 |
return "output.wav"
|
106 |
|
|
|
49 |
params_refine_text=params_refine_text,
|
50 |
params_infer_code=params_infer_code
|
51 |
)
|
52 |
+
print("Text has been refined!")
|
53 |
|
54 |
wav = chat.infer(text,
|
55 |
skip_refine_text=True,
|
|
|
92 |
#chat_tts(text, temperature, top_P, top_K, audio_seed_input, text_seed_input, refine_text_flag, refine_text_input, src_path)
|
93 |
src_path = None
|
94 |
sample_rate, audio = chat_tts(text, temperature, top_P, top_K, audio_seed_input, text_seed_input, refine_text_flag, refine_text_input, src_path)[0]
|
95 |
+
print("Ready for voice cloning!")
|
96 |
|
97 |
# Run the tone color converter
|
98 |
encode_message = "@Hilley"
|
|
|
103 |
tgt_se=target_se,
|
104 |
output_path=save_path,
|
105 |
message=encode_message)
|
106 |
+
print("Finished!")
|
107 |
|
108 |
return "output.wav"
|
109 |
|