Spaces:
Running
Running
ui(tts): adjust audio output and default voice
Browse files- [ui] Modify `autoplay` and add `show_download_button` for `gr.Audio` (ui_components.py:create_tts_tab():433-434)
- [ui] Change default `value` for `tts_voice` `gr.Dropdown` (ui_components.py:create_tts_tab():462)
- ui_components.py +3 -2
ui_components.py
CHANGED
|
@@ -430,7 +430,8 @@ def create_tts_tab(handle_tts_generation_fn):
|
|
| 430 |
label="Generated Audio",
|
| 431 |
type="numpy",
|
| 432 |
interactive=False,
|
| 433 |
-
autoplay=
|
|
|
|
| 434 |
)
|
| 435 |
status_text = gr.Textbox(
|
| 436 |
label="Generation Status",
|
|
@@ -459,7 +460,7 @@ def create_tts_tab(handle_tts_generation_fn):
|
|
| 459 |
gr.Markdown("**🎤 Voice Settings**")
|
| 460 |
tts_voice = gr.Dropdown(
|
| 461 |
choices=list(TTS_VOICES.items()),
|
| 462 |
-
value="
|
| 463 |
label="Voice",
|
| 464 |
info="Choose from various English voices"
|
| 465 |
)
|
|
|
|
| 430 |
label="Generated Audio",
|
| 431 |
type="numpy",
|
| 432 |
interactive=False,
|
| 433 |
+
autoplay=False,
|
| 434 |
+
show_download_button=True
|
| 435 |
)
|
| 436 |
status_text = gr.Textbox(
|
| 437 |
label="Generation Status",
|
|
|
|
| 460 |
gr.Markdown("**🎤 Voice Settings**")
|
| 461 |
tts_voice = gr.Dropdown(
|
| 462 |
choices=list(TTS_VOICES.items()),
|
| 463 |
+
value="af_bella",
|
| 464 |
label="Voice",
|
| 465 |
info="Choose from various English voices"
|
| 466 |
)
|