vakodiya commited on
Commit
44e5aa1
1 Parent(s): d03574b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -38,12 +38,11 @@ def audio_callback(frame):
38
  webrtc_ctx = webrtc_streamer(
39
  key="audio-only",
40
  mode=WebRtcMode.SENDRECV,
41
- client_settings=ClientSettings(
42
- media_stream_constraints={
43
- "audio": True,
44
- "video": False
45
- }
46
- ),
47
  audio_frame_callback=audio_callback
48
  )
49
 
 
38
  webrtc_ctx = webrtc_streamer(
39
  key="audio-only",
40
  mode=WebRtcMode.SENDRECV,
41
+ rtc_configuration={"iceServers": [{"urls": ["stun:stun1.l.google.com:19302"]}]},
42
+ media_stream_constraints={
43
+ "audio": True,
44
+ "video": False
45
+ },
 
46
  audio_frame_callback=audio_callback
47
  )
48