makinuh's picture
Update app.py
8d9c48e verified
raw
history blame contribute delete
260 Bytes
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()