Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastrtc import Stream, ReplyOnPause, get_hf_turn_credentials
|
2 |
+
|
3 |
+
def echo(audio):
|
4 |
+
yield audio
|
5 |
+
|
6 |
+
stream = Stream(ReplyOnPause(echo), mode="send-receive", modality="audio", rtc_configuration=get_hf_turn_credentials())
|
7 |
+
|
8 |
+
stream.ui.launch()
|