Spaces:
Sleeping
Sleeping
attempt (request) better audio. not sure it makes much of a difference
Browse files
d_app.py
CHANGED
@@ -67,6 +67,15 @@ async def main():
|
|
67 |
queued_audio_frames_callback=st.session_state.streamlit_av_queue.queued_audio_frames_callback,
|
68 |
queued_video_frames_callback=st.session_state.streamlit_av_queue.queued_video_frames_callback,
|
69 |
mode=WebRtcMode.SENDRECV,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
rtc_configuration={"iceServers": get_ice_servers()},
|
71 |
async_processing=True,
|
72 |
)
|
|
|
67 |
queued_audio_frames_callback=st.session_state.streamlit_av_queue.queued_audio_frames_callback,
|
68 |
queued_video_frames_callback=st.session_state.streamlit_av_queue.queued_video_frames_callback,
|
69 |
mode=WebRtcMode.SENDRECV,
|
70 |
+
media_stream_constraints={
|
71 |
+
"video": True,
|
72 |
+
"audio": {
|
73 |
+
"sampleRate": 48000,
|
74 |
+
"sampleSize": 16,
|
75 |
+
"noiseSuppression": True,
|
76 |
+
"channelCount": 1,
|
77 |
+
}
|
78 |
+
},
|
79 |
rtc_configuration={"iceServers": get_ice_servers()},
|
80 |
async_processing=True,
|
81 |
)
|