Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def main():
|
|
96 |
if not st.session_state.pre_prompt_sent:
|
97 |
st.session_state.pre_prompt_sent = True
|
98 |
|
99 |
-
audio = mic_recorder(start_prompt="▶️", stop_prompt="🛑", key='recorder')
|
100 |
|
101 |
if audio:
|
102 |
st.audio(audio['bytes'], format="audio/wav")
|
|
|
96 |
if not st.session_state.pre_prompt_sent:
|
97 |
st.session_state.pre_prompt_sent = True
|
98 |
|
99 |
+
audio = mic_recorder(start_prompt="▶️", stop_prompt="🛑", key='recorder', sample_rate=16000)
|
100 |
|
101 |
if audio:
|
102 |
st.audio(audio['bytes'], format="audio/wav")
|