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