Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ phoneme_vocab = config['vocab']
|
|
30 |
# ------------------------------------------------------------------------------
|
31 |
# Download the model and voice files from Hugging Face Hub
|
32 |
# ------------------------------------------------------------------------------
|
33 |
-
model_repo = "onnx-community/Kokoro-82M-ONNX"
|
34 |
model_name = "onnx/model_q4f16.onnx" # "onnx/model.onnx"
|
35 |
voice_file_pattern = "*.bin"
|
36 |
local_dir = "."
|
@@ -192,7 +192,7 @@ def tts_streaming(text: str, voice: str = "af_heart", speed: float = 1.0, format
|
|
192 |
for i, chunk in enumerate(chunks):
|
193 |
# Convert the chunk text to tokens.
|
194 |
chunk_tokens = tokenizer(chunk)
|
195 |
-
print(
|
196 |
|
197 |
# For the first chunk, prepend 0; for later chunks, start with the previous chunk's last token.
|
198 |
if i == 0:
|
|
|
30 |
# ------------------------------------------------------------------------------
|
31 |
# Download the model and voice files from Hugging Face Hub
|
32 |
# ------------------------------------------------------------------------------
|
33 |
+
model_repo = "onnx-community/Kokoro-82M-v1.0-ONNX"
|
34 |
model_name = "onnx/model_q4f16.onnx" # "onnx/model.onnx"
|
35 |
voice_file_pattern = "*.bin"
|
36 |
local_dir = "."
|
|
|
192 |
for i, chunk in enumerate(chunks):
|
193 |
# Convert the chunk text to tokens.
|
194 |
chunk_tokens = tokenizer(chunk)
|
195 |
+
print(chunk_tokens)
|
196 |
|
197 |
# For the first chunk, prepend 0; for later chunks, start with the previous chunk's last token.
|
198 |
if i == 0:
|