Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
from fastrtc import Stream, ReplyOnPause
|
2 |
|
3 |
def echo(audio):
|
4 |
yield audio
|
5 |
|
6 |
-
stream = Stream(ReplyOnPause(echo), modality="audio", mode="send-receive")
|
7 |
stream.ui.launch()
|
|
|
1 |
+
from fastrtc import Stream, ReplyOnPause, get_hf_turn_credentials
|
2 |
|
3 |
def echo(audio):
|
4 |
yield audio
|
5 |
|
6 |
+
stream = Stream(ReplyOnPause(echo), modality="audio", mode="send-receive", rtp_configuration=get_hf_turn_credentials())
|
7 |
stream.ui.launch()
|