Spaces:
Paused
Paused
rick
commited on
amelioration UI/UX
Browse files
app.py
CHANGED
|
@@ -244,9 +244,6 @@ def main():
|
|
| 244 |
if "enable_tts_for_input_from_audio_record" not in st.session_state:
|
| 245 |
st.session_state["enable_tts_for_input_from_audio_record"] = True
|
| 246 |
|
| 247 |
-
#if "tts_voice" not in st.session_state:
|
| 248 |
-
# st.session_state.tts_voice = "onyx"
|
| 249 |
-
|
| 250 |
def init_process_mode():
|
| 251 |
# Configuration du mode de traduction si nécessaire
|
| 252 |
if "translation" == st.session_state["process_mode"]:
|
|
@@ -300,7 +297,12 @@ def main():
|
|
| 300 |
with st.container(border=True):
|
| 301 |
# Interface utilisateur pour l'enregistrement audio
|
| 302 |
st.write("Ou enregistrez votre message audio :")
|
| 303 |
-
audio = audiorecorder("Cliquez pour enregistrer",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 304 |
|
| 305 |
|
| 306 |
# Traitement de l'entrée audio de l'utilisateur
|
|
|
|
| 244 |
if "enable_tts_for_input_from_audio_record" not in st.session_state:
|
| 245 |
st.session_state["enable_tts_for_input_from_audio_record"] = True
|
| 246 |
|
|
|
|
|
|
|
|
|
|
| 247 |
def init_process_mode():
|
| 248 |
# Configuration du mode de traduction si nécessaire
|
| 249 |
if "translation" == st.session_state["process_mode"]:
|
|
|
|
| 297 |
with st.container(border=True):
|
| 298 |
# Interface utilisateur pour l'enregistrement audio
|
| 299 |
st.write("Ou enregistrez votre message audio :")
|
| 300 |
+
audio = audiorecorder(start_prompt="Cliquez pour enregistrer",
|
| 301 |
+
stop_prompt="Cliquez pour arrêter l'enregistrement",
|
| 302 |
+
pause_prompt="Cliquez pour mettre en pause",
|
| 303 |
+
show_visualizer=True,
|
| 304 |
+
key="vocal_chat_input"
|
| 305 |
+
)
|
| 306 |
|
| 307 |
|
| 308 |
# Traitement de l'entrée audio de l'utilisateur
|