Spaces:
Runtime error
Runtime error
AbdullaShafeeg
commited on
Commit
·
a27b3f6
1
Parent(s):
067ad2d
app update
Browse files
app.py
CHANGED
@@ -42,11 +42,11 @@ with st.expander('About this App'):
|
|
42 |
# col3.button('Stop', on_click=stop_monitoring)
|
43 |
# record_button = col3.button('Monitor')
|
44 |
|
45 |
-
while
|
46 |
wav_audio_data = st_audiorec(key="FirstWidget")
|
47 |
if wav_audio_data is not None:
|
48 |
st.audio(wav_audio_data, format=FORMAT, sample_rate=16000)
|
49 |
-
|
50 |
# audio_chunk = stream.read(FRAMES_PER_BUFFER)
|
51 |
# audio_data.append(np.frombuffer(audio_chunk, dtype=np.int16))
|
52 |
|
|
|
42 |
# col3.button('Stop', on_click=stop_monitoring)
|
43 |
# record_button = col3.button('Monitor')
|
44 |
|
45 |
+
while True:
|
46 |
wav_audio_data = st_audiorec(key="FirstWidget")
|
47 |
if wav_audio_data is not None:
|
48 |
st.audio(wav_audio_data, format=FORMAT, sample_rate=16000)
|
49 |
+
print(type(wav_audio_data))
|
50 |
# audio_chunk = stream.read(FRAMES_PER_BUFFER)
|
51 |
# audio_data.append(np.frombuffer(audio_chunk, dtype=np.int16))
|
52 |
|