Spaces:
Sleeping
Sleeping
from fastrtc import Stream, ReplyOnPause, get_hf_turn_credentials | |
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() |