Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
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()
|