fixing lag in uploading file
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def frontend():
|
|
16 |
st.title("Voice AI Demo")
|
17 |
status_placeholder = st.empty()
|
18 |
status_placeholder.write("Press Mic button to start asking question")
|
19 |
-
recorded_audio = audio_recorder()
|
20 |
if recorded_audio:
|
21 |
status_placeholder.write("Converting audio ...")
|
22 |
data_to_file(recorded_audio)
|
|
|
16 |
st.title("Voice AI Demo")
|
17 |
status_placeholder = st.empty()
|
18 |
status_placeholder.write("Press Mic button to start asking question")
|
19 |
+
recorded_audio = audio_recorder(sample_rate=10000)
|
20 |
if recorded_audio:
|
21 |
status_placeholder.write("Converting audio ...")
|
22 |
data_to_file(recorded_audio)
|