from fastrtc import Stream, ReplyOnPause, get_hf_turn_credentials def echo(audio): yield audio stream = Stream(ReplyOnPause(echo), mode="send-receive", modality="audio", rtc_configuration=get_hf_turn_credentials()) #stream.ui.launch() stream.fastphone()