SalexAI commited on
Commit
8eef934
·
verified ·
1 Parent(s): f88d100

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -20,6 +20,11 @@ def echo(audio):
20
  for audio_chunk in tts_model.stream_tts_sync(prompt):
21
  yield audio_chunk
22
 
23
- stream = Stream(ReplyOnPause(echo), modality="audio", mode="send-receive")
 
 
 
 
 
24
 
25
  stream.fastphone()
 
20
  for audio_chunk in tts_model.stream_tts_sync(prompt):
21
  yield audio_chunk
22
 
23
+ Stream(
24
+ handler=...,
25
+ rtc_configuration=get_hf_turn_credentials,
26
+ modality="audio",
27
+ mode="send-receive"
28
+ )
29
 
30
  stream.fastphone()