Spaces:
Sleeping
Sleeping
Michael Hu
commited on
Commit
·
d293a11
1
Parent(s):
3f1d4fe
feat: add Piper TTS UI components and remove duplicate Dia TTS UI
Browse files
app.py
CHANGED
|
@@ -432,7 +432,19 @@ with gr.Blocks(css=custom_css, title="🎙️ TTS Model Gallery", theme=gr.theme
|
|
| 432 |
piper_language_selection = gr.Radio(
|
| 433 |
choices=["English", "Chinese"],
|
| 434 |
value="English",
|
| 435 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 436 |
# Dia TTS UI
|
| 437 |
dia_model_info = gr.HTML(create_model_card("nari-labs/Dia-1.6B"))
|
| 438 |
|
|
@@ -446,18 +458,6 @@ with gr.Blocks(css=custom_css, title="🎙️ TTS Model Gallery", theme=gr.theme
|
|
| 446 |
|
| 447 |
with gr.Column():
|
| 448 |
dia_audio_output = gr.Audio(label="Generated Speech", type="filepath")
|
| 449 |
-
label="Language"
|
| 450 |
-
)
|
| 451 |
-
piper_voice_selection = gr.Dropdown(
|
| 452 |
-
choices=list(voices_by_lang["English"].keys()),
|
| 453 |
-
value=list(voices_by_lang["English"].keys())[0] if voices_by_lang["English"] else None,
|
| 454 |
-
label="Voice"
|
| 455 |
-
)
|
| 456 |
-
piper_generate_btn = gr.Button("Generate Speech")
|
| 457 |
-
|
| 458 |
-
with gr.Column():
|
| 459 |
-
piper_audio_output = gr.Audio(label="Generated Speech", type="filepath")
|
| 460 |
-
piper_status = gr.Textbox(label="Status", interactive=False)
|
| 461 |
|
| 462 |
# Faster Whisper section
|
| 463 |
whisper_model_info = gr.HTML(create_model_card("SYSTRAN/faster-whisper"))
|
|
|
|
| 432 |
piper_language_selection = gr.Radio(
|
| 433 |
choices=["English", "Chinese"],
|
| 434 |
value="English",
|
| 435 |
+
label="Language"
|
| 436 |
+
)
|
| 437 |
+
piper_voice_selection = gr.Dropdown(
|
| 438 |
+
choices=list(voices_by_lang["English"].keys()),
|
| 439 |
+
value=list(voices_by_lang["English"].keys())[0] if voices_by_lang["English"] else None,
|
| 440 |
+
label="Voice"
|
| 441 |
+
)
|
| 442 |
+
piper_generate_btn = gr.Button("Generate Speech")
|
| 443 |
+
|
| 444 |
+
with gr.Column():
|
| 445 |
+
piper_audio_output = gr.Audio(label="Generated Speech", type="filepath")
|
| 446 |
+
piper_status = gr.Textbox(label="Status", interactive=False)
|
| 447 |
+
|
| 448 |
# Dia TTS UI
|
| 449 |
dia_model_info = gr.HTML(create_model_card("nari-labs/Dia-1.6B"))
|
| 450 |
|
|
|
|
| 458 |
|
| 459 |
with gr.Column():
|
| 460 |
dia_audio_output = gr.Audio(label="Generated Speech", type="filepath")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 461 |
|
| 462 |
# Faster Whisper section
|
| 463 |
whisper_model_info = gr.HTML(create_model_card("SYSTRAN/faster-whisper"))
|