Spaces:
Sleeping
Sleeping
File size: 421 Bytes
b001436 ef76b1d 4eef939 397a04f 4eef939 df2946f 56db895 4eef939 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from fastrtc import Stream, ReplyOnPause, get_hf_turn_credentials
import logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
logger = logging.getLogger("fastrtc")
def echo(audio):
yield audio
print(get_hf_turn_credentials())
stream = Stream(ReplyOnPause(echo), modality="audio", mode="send-receive", rtc_configuration=get_hf_turn_credentials())
stream.ui.launch() |