sohojoe commited on
Commit
8332d4f
1 Parent(s): d91a673

attempt (request) better audio. not sure it makes much of a difference

Browse files
Files changed (1) hide show
  1. d_app.py +9 -0
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
  )