From 28964fee3ea4b037e62c04629ffa422411db4ec6 Mon Sep 17 00:00:00 2001 From: Ming <58206790+Ming-Zhou0201@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:51:12 +0800 Subject: [PATCH 1/2] fix app.py fix import se_extractor error --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 873259b..2289018 100644 --- a/app.py +++ b/app.py @@ -9,7 +9,7 @@ import ChatTTS -from OpenVoice import se_extractor +from OpenVoice.utils import se_extractor from OpenVoice.api import ToneColorConverter import soundfile @@ -154,4 +154,4 @@ def generate_audio(text, audio_ref, temperature, top_P, top_K, audio_seed_input, # demo.launch(server_name=args.server_name, server_port=args.server_port, inbrowser=True) if __name__ == '__main__': - demo.launch() \ No newline at end of file + demo.launch() From 6ca22901a029d8b011d2f954b9af2b3d382cf916 Mon Sep 17 00:00:00 2001 From: Ming <58206790+Ming-Zhou0201@users.noreply.github.com> Date: Wed, 10 Jul 2024 18:34:39 +0800 Subject: [PATCH 2/2] fix app.py remove default voice_ref filepath --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 2289018..efdb511 100644 --- a/app.py +++ b/app.py @@ -116,7 +116,7 @@ def generate_audio(text, audio_ref, temperature, top_P, top_K, audio_seed_input, refine_text_checkbox = gr.Checkbox(label="Refine text", info="'oral' means add filler words, 'laugh' means add laughter, and 'break' means add a pause. (0-10) ", value=True) refine_text_input = gr.Textbox(label="Refine Prompt", lines=1, placeholder="Please Refine Prompt...", value=default_refine_text) with gr.Column(): - voice_ref = gr.Audio(label="Reference Audio", type="filepath", value="Examples/speaker.mp3") + voice_ref = gr.Audio(label="Reference Audio", type="filepath") with gr.Row(): temperature_slider = gr.Slider(minimum=0.00001, maximum=1.0, step=0.00001, value=0.3, label="Audio temperature")