Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
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 |
|