Update app.py
Browse files
app.py
CHANGED
|
@@ -715,14 +715,20 @@ else:
|
|
| 715 |
)
|
| 716 |
|
| 717 |
with col3:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 718 |
tts_voice = st.selectbox(
|
| 719 |
-
"Voice Style",
|
| 720 |
-
|
| 721 |
-
index=
|
| 722 |
-
|
| 723 |
-
help="Select the voice style for text-to-speech"
|
| 724 |
)
|
| 725 |
-
|
| 726 |
# Technical Settings Section
|
| 727 |
st.markdown('<div class="section-header">💻 Technical Settings</div>', unsafe_allow_html=True)
|
| 728 |
|
|
|
|
| 715 |
)
|
| 716 |
|
| 717 |
with col3:
|
| 718 |
+
# Gemini voice models
|
| 719 |
+
if tts_gender == "male":
|
| 720 |
+
voice_options = ["Puck", "Charon", "Kore", "Fenrir", "Aoede"]
|
| 721 |
+
default_voice = "Puck"
|
| 722 |
+
else: # female
|
| 723 |
+
voice_options = ["Puck", "Charon", "Kore", "Fenrir", "Aoede"]
|
| 724 |
+
default_voice = "Puck"
|
| 725 |
+
|
| 726 |
tts_voice = st.selectbox(
|
| 727 |
+
"Voice Style (Gemini)",
|
| 728 |
+
voice_options,
|
| 729 |
+
index=voice_options.index(default_voice),
|
| 730 |
+
help=f"Select the Gemini voice model for text-to-speech ({tts_gender})"
|
|
|
|
| 731 |
)
|
|
|
|
| 732 |
# Technical Settings Section
|
| 733 |
st.markdown('<div class="section-header">💻 Technical Settings</div>', unsafe_allow_html=True)
|
| 734 |
|