Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -919,46 +919,49 @@ def display_voice_tab():
|
|
| 919 |
"""
|
| 920 |
|
| 921 |
# βΆ Voice Settings
|
| 922 |
-
st.
|
| 923 |
-
|
| 924 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 925 |
|
| 926 |
-
|
| 927 |
-
|
| 928 |
-
|
| 929 |
-
|
| 930 |
-
|
| 931 |
-
|
| 932 |
-
|
| 933 |
-
|
| 934 |
-
|
| 935 |
-
|
| 936 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 937 |
|
| 938 |
-
|
| 939 |
-
|
| 940 |
-
|
| 941 |
-
|
| 942 |
-
|
| 943 |
-
|
| 944 |
-
|
| 945 |
-
- π· **Clara** β Cheerful, empathetic
|
| 946 |
-
|
| 947 |
-
*Male Voices*:
|
| 948 |
-
- π **Guy** β Authoritative, versatile
|
| 949 |
-
- π οΈ **Ryan** β Approachable, casual
|
| 950 |
-
- π» **William** β Classic, scholarly
|
| 951 |
-
- π **Liam** β Energetic, engaging
|
| 952 |
-
""")
|
| 953 |
|
| 954 |
-
|
| 955 |
-
|
| 956 |
-
|
| 957 |
-
|
| 958 |
-
|
| 959 |
-
|
| 960 |
-
|
| 961 |
-
)
|
| 962 |
|
| 963 |
# βΆ Update session state if changed
|
| 964 |
if selected_voice != st.session_state['tts_voice']:
|
|
|
|
| 919 |
"""
|
| 920 |
|
| 921 |
# βΆ Voice Settings
|
| 922 |
+
with st.expander("π€ Voice Settings"):
|
| 923 |
+
st.sidebar.markdown("### π€ Voice Settings")
|
| 924 |
+
caption_female = 'Top: πΈ **Aria** β πΆ **Jenny** β πΊ **Sonia** β π **Natasha** β π· **Clara**'
|
| 925 |
+
caption_male = 'Bottom: π **Guy** β π οΈ **Ryan** β π» **William** β π **Liam**'
|
| 926 |
+
|
| 927 |
+
# Optionally, replace with your own local image or comment out
|
| 928 |
+
try:
|
| 929 |
+
st.sidebar.image('Group Picture - Voices.png', caption=caption_female + ' | ' + caption_male)
|
| 930 |
+
except:
|
| 931 |
+
st.sidebar.write('.')
|
| 932 |
|
| 933 |
+
selected_voice = st.sidebar.selectbox(
|
| 934 |
+
"π Select TTS Voice:",
|
| 935 |
+
options=EDGE_TTS_VOICES,
|
| 936 |
+
index=EDGE_TTS_VOICES.index(st.session_state['tts_voice'])
|
| 937 |
+
)
|
| 938 |
+
|
| 939 |
+
|
| 940 |
+
with st.expander("ποΈ Voice Character Agent Selector π"):
|
| 941 |
+
st.sidebar.markdown("""
|
| 942 |
+
# ποΈ Voice Character Agent Selector π
|
| 943 |
+
*Female Voices*:
|
| 944 |
+
- πΈ **Aria** β Elegant, creative storytelling
|
| 945 |
+
- πΆ **Jenny** β Friendly, conversational
|
| 946 |
+
- πΊ **Sonia** β Bold, confident
|
| 947 |
+
- π **Natasha** β Sophisticated, mysterious
|
| 948 |
+
- π· **Clara** β Cheerful, empathetic
|
| 949 |
|
| 950 |
+
*Male Voices*:
|
| 951 |
+
- π **Guy** β Authoritative, versatile
|
| 952 |
+
- π οΈ **Ryan** β Approachable, casual
|
| 953 |
+
- π» **William** β Classic, scholarly
|
| 954 |
+
- π **Liam** β Energetic, engaging
|
| 955 |
+
""")
|
| 956 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 957 |
|
| 958 |
+
# βΆ Audio Format
|
| 959 |
+
st.markdown("### π Audio Format")
|
| 960 |
+
selected_format = st.radio(
|
| 961 |
+
"Choose Audio Format:",
|
| 962 |
+
options=["MP3", "WAV"],
|
| 963 |
+
index=0
|
| 964 |
+
)
|
|
|
|
| 965 |
|
| 966 |
# βΆ Update session state if changed
|
| 967 |
if selected_voice != st.session_state['tts_voice']:
|