Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,12 +37,6 @@ with gr.Blocks(title="🗣️ F5-TTS | Integrated By Muhammad Zameer ul Hassan")
|
|
| 37 |
# 🗣️ F5-TTS Text-to-Speech
|
| 38 |
|
| 39 |
Upload a reference voice, give reference and generation text, and hear it in the same voice!
|
| 40 |
-
|
| 41 |
-
**Instructions:**
|
| 42 |
-
1. Upload a reference audio file (preferably 3-10 seconds)
|
| 43 |
-
2. Enter the text that corresponds to your reference audio
|
| 44 |
-
3. Enter the text you want to generate in the same voice
|
| 45 |
-
4. Optionally enable silence removal for cleaner output
|
| 46 |
""")
|
| 47 |
|
| 48 |
with gr.Row():
|
|
@@ -65,22 +59,7 @@ with gr.Blocks(title="🗣️ F5-TTS | Integrated By Muhammad Zameer ul Hassan")
|
|
| 65 |
with gr.Column():
|
| 66 |
output_audio = gr.Audio(label="Generated Speech")
|
| 67 |
|
| 68 |
-
|
| 69 |
-
gr.Markdown("### Examples")
|
| 70 |
-
gr.Examples(
|
| 71 |
-
examples=[
|
| 72 |
-
[
|
| 73 |
-
None, # Reference audio will need to be provided by user
|
| 74 |
-
"some call me nature, others call me mother nature.",
|
| 75 |
-
"I don't really care what you call me, but I do care about the environment.",
|
| 76 |
-
False
|
| 77 |
-
]
|
| 78 |
-
],
|
| 79 |
-
inputs=[ref_audio, ref_text, gen_text, remove_silence],
|
| 80 |
-
outputs=output_audio,
|
| 81 |
-
fn=run_tts,
|
| 82 |
-
cache_examples=False
|
| 83 |
-
)
|
| 84 |
|
| 85 |
generate_btn.click(
|
| 86 |
fn=run_tts,
|
|
|
|
| 37 |
# 🗣️ F5-TTS Text-to-Speech
|
| 38 |
|
| 39 |
Upload a reference voice, give reference and generation text, and hear it in the same voice!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
""")
|
| 41 |
|
| 42 |
with gr.Row():
|
|
|
|
| 59 |
with gr.Column():
|
| 60 |
output_audio = gr.Audio(label="Generated Speech")
|
| 61 |
|
| 62 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
generate_btn.click(
|
| 65 |
fn=run_tts,
|