banao-tech commited on
Commit
1771774
·
verified ·
1 Parent(s): 62b2803

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -6
app.py CHANGED
@@ -715,14 +715,20 @@ else:
715
  )
716
 
717
  with col3:
 
 
 
 
 
 
 
 
718
  tts_voice = st.selectbox(
719
- "Voice Style",
720
- ["alloy", "echo", "fable", "onyx", "nova", "shimmer"],
721
- index=3, # Default to "onyx"
722
- format_func=lambda x: x.capitalize(),
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