Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix app.py #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import ChatTTS

from OpenVoice import se_extractor
from OpenVoice.utils import se_extractor
from OpenVoice.api import ToneColorConverter
import soundfile

Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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()
demo.launch()