bcci commited on
Commit
562211b
·
verified ·
1 Parent(s): 15723b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -209,7 +209,7 @@ def tts_streaming(text: str, voice: str = "af_heart", speed: float = 1.0, format
209
  print(final_token)
210
 
211
  # Use the number of tokens to select the appropriate style vector.
212
- style_index = len(chunk_tokens) + 1
213
  if style_index >= len(voices):
214
  style_index = len(voices) - 1 # Fallback if index is out-of-bounds.
215
  ref_s = voices[style_index]
 
209
  print(final_token)
210
 
211
  # Use the number of tokens to select the appropriate style vector.
212
+ style_index = len(chunk_tokens) + 2
213
  if style_index >= len(voices):
214
  style_index = len(voices) - 1 # Fallback if index is out-of-bounds.
215
  ref_s = voices[style_index]