bcci commited on
Commit
8c8e429
·
verified ·
1 Parent(s): 562211b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -198,7 +198,7 @@ def tts_streaming(text: str, voice: str = "af_heart", speed: float = 1.0, format
198
  if i == 0:
199
  tokens_to_send = [0] + chunk_tokens + [0]
200
  else:
201
- tokens_to_send = [prev_last_token] + [16] + chunk_tokens + [0]
202
  # token_to_send = [0] + chunk_tokens + [0]
203
 
204
  # Save the last token of this chunk for the next iteration.
 
198
  if i == 0:
199
  tokens_to_send = [0] + chunk_tokens + [0]
200
  else:
201
+ tokens_to_send = [prev_last_token] + [16] + [0] + chunk_tokens + [0]
202
  # token_to_send = [0] + chunk_tokens + [0]
203
 
204
  # Save the last token of this chunk for the next iteration.