Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,16 @@ def echo(audio):
|
|
20 |
for audio_chunk in tts_model.stream_tts_sync(prompt):
|
21 |
yield audio_chunk
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
Stream(
|
24 |
handler=...,
|
25 |
rtc_configuration=get_cloudflare_turn_credentials,
|
|
|
20 |
for audio_chunk in tts_model.stream_tts_sync(prompt):
|
21 |
yield audio_chunk
|
22 |
|
23 |
+
|
24 |
+
def get_cloudflare_turn_credentials(
|
25 |
+
turn_key_id=None,
|
26 |
+
turn_key_api_token=None,
|
27 |
+
hf_token=None,
|
28 |
+
ttl=600,
|
29 |
+
client: httpx.AsyncClient | None = None,
|
30 |
+
):
|
31 |
+
|
32 |
+
|
33 |
Stream(
|
34 |
handler=...,
|
35 |
rtc_configuration=get_cloudflare_turn_credentials,
|