Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def generate_tts_audio(text_input, audio_prompt_path_input, exaggeration_input,
|
|
62 |
|
63 |
print(f"Generating audio for text: '{text_input}'")
|
64 |
wav = current_model.generate(
|
65 |
-
text_input,
|
66 |
audio_prompt_path=audio_prompt_path_input,
|
67 |
exaggeration=exaggeration_input,
|
68 |
temperature=temperature_input,
|
@@ -79,7 +79,7 @@ with gr.Blocks() as demo:
|
|
79 |
|
80 |
with gr.Row():
|
81 |
with gr.Column():
|
82 |
-
text = gr.Textbox(value="Now let's make my mum's favourite. So three mars bars into the pan. Then we add the tuna and just stir for a bit, just let the chocolate and fish infuse. A sprinkle of olive oil and some tomato ketchup. Now smell that. Oh boy this is going to be incredible.", label="Text to synthesize")
|
83 |
ref_wav = gr.Audio(sources=["upload", "microphone"], type="filepath", label="Reference Audio File", value="https://storage.googleapis.com/chatterbox-demo-samples/prompts/female_shadowheart.flac")
|
84 |
exaggeration = gr.Slider(0.25, 2, step=.05, label="Exaggeration (Neutral = 0.5, extreme values can be unstable)", value=.5)
|
85 |
cfg_weight = gr.Slider(0.2, 1, step=.05, label="CFG/Pace", value=0.5)
|
|
|
62 |
|
63 |
print(f"Generating audio for text: '{text_input}'")
|
64 |
wav = current_model.generate(
|
65 |
+
text_input[:300],
|
66 |
audio_prompt_path=audio_prompt_path_input,
|
67 |
exaggeration=exaggeration_input,
|
68 |
temperature=temperature_input,
|
|
|
79 |
|
80 |
with gr.Row():
|
81 |
with gr.Column():
|
82 |
+
text = gr.Textbox(value="Now let's make my mum's favourite. So three mars bars into the pan. Then we add the tuna and just stir for a bit, just let the chocolate and fish infuse. A sprinkle of olive oil and some tomato ketchup. Now smell that. Oh boy this is going to be incredible.", label="Text to synthesize (max chars 300)")
|
83 |
ref_wav = gr.Audio(sources=["upload", "microphone"], type="filepath", label="Reference Audio File", value="https://storage.googleapis.com/chatterbox-demo-samples/prompts/female_shadowheart.flac")
|
84 |
exaggeration = gr.Slider(0.25, 2, step=.05, label="Exaggeration (Neutral = 0.5, extreme values can be unstable)", value=.5)
|
85 |
cfg_weight = gr.Slider(0.2, 1, step=.05, label="CFG/Pace", value=0.5)
|