From a9c13668a9355c7e6f3784995054cc019f402854 Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 29 Jan 2025 22:37:23 -0800 Subject: [PATCH] token count for Kokoro --- App_Function_Libraries/TTS/TTS_Providers_Local.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/App_Function_Libraries/TTS/TTS_Providers_Local.py b/App_Function_Libraries/TTS/TTS_Providers_Local.py index 36821924..333b59bd 100644 --- a/App_Function_Libraries/TTS/TTS_Providers_Local.py +++ b/App_Function_Libraries/TTS/TTS_Providers_Local.py @@ -333,7 +333,7 @@ def _handle_pytorch_generation( tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased") logging.debug("Splitting text into chunks...") - text_chunks = split_text_into_sentence_chunks(text, 50, tokenizer) + text_chunks = split_text_into_sentence_chunks(text, 150, tokenizer) logging.debug("Getting Kokoro model and voicepack...") # Get default voicepack if not found diff --git a/requirements.txt b/requirements.txt index b31c3aa2..49eb087a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ bert_score chardet chromadb docx2txt -EbookLib +ebooklib elasticsearch fastapi faster_whisper