freddyaboulton HF Staff commited on
Commit
87476ad
·
verified ·
1 Parent(s): 3bc5616

Create app.py

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