Spaces:
Paused
Paused
0x07CB
commited on
fix: Suppression du paramètre voice inutile dans les appels à process_tts_message
Browse files- pages/main.py +4 -3
pages/main.py
CHANGED
|
@@ -294,7 +294,9 @@ def recorder_released():
|
|
| 294 |
if st.session_state.full_response != "":
|
| 295 |
message_placeholder.markdown(st.session_state.full_response)
|
| 296 |
if st.session_state.enable_tts_for_input_from_audio_record:
|
| 297 |
-
st.session_state.tts_audio, st.session_state.tts_duration = process_tts_message(
|
|
|
|
|
|
|
| 298 |
|
| 299 |
if st.session_state.tts_audio:
|
| 300 |
st.session_state.audio_list.append(
|
|
@@ -532,8 +534,7 @@ def main_page():
|
|
| 532 |
if st.session_state.enable_tts_for_input_from_text_field:
|
| 533 |
status.update(label=f"Generating audio in {lang['language']}...")
|
| 534 |
tts_audio, tts_duration = process_tts_message(
|
| 535 |
-
full_response
|
| 536 |
-
voice=st.session_state.tts_voice
|
| 537 |
)
|
| 538 |
if tts_audio:
|
| 539 |
st.session_state.audio_list.append(
|
|
|
|
| 294 |
if st.session_state.full_response != "":
|
| 295 |
message_placeholder.markdown(st.session_state.full_response)
|
| 296 |
if st.session_state.enable_tts_for_input_from_audio_record:
|
| 297 |
+
st.session_state.tts_audio, st.session_state.tts_duration = process_tts_message(
|
| 298 |
+
st.session_state.full_response
|
| 299 |
+
)
|
| 300 |
|
| 301 |
if st.session_state.tts_audio:
|
| 302 |
st.session_state.audio_list.append(
|
|
|
|
| 534 |
if st.session_state.enable_tts_for_input_from_text_field:
|
| 535 |
status.update(label=f"Generating audio in {lang['language']}...")
|
| 536 |
tts_audio, tts_duration = process_tts_message(
|
| 537 |
+
full_response
|
|
|
|
| 538 |
)
|
| 539 |
if tts_audio:
|
| 540 |
st.session_state.audio_list.append(
|