Tortoise TTS's text splitter, repackaged. All credit goes to the author of Tortoise TTS.
pip install txtsplit
(0 dependencies)
from txtsplit import txtsplit
print(txtsplit("Long text", desired_length=100, max_length=200))Most of the code was taken from Tortoise TTS.
Apache 2.0, like Tortoise TTS.