SalexAI commited on
Commit
c7ba53a
·
verified ·
1 Parent(s): 29e4c2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
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,