aedocw / epub2tts

Turn an epub or text file into an audiobook
Apache License 2.0
433 stars 43 forks source link

250 char token size exeeded #151

Closed rejuce closed 6 months ago

rejuce commented 6 months ago

sometimes, seldomly I see:

Text splitted to sentences. ["Mary and Souji's eyes narrowed.", "Paying no mind to the two of them, Genia continued, “My family has studied curse ore for many long years. You could say our discovery of its ability to steal and store magic's power was the result of intergenerational research. During all our time studying it, I had one constant doubt, If magic was the result of magicium, what exactly was curse ore?”", 'No one answered her question, so Genia elaborated.', '“I had a vague idea.'] [!] Warning: The text length exceeds the character limit of 250 for language 'en', this might cause truncated audio.

aedocw commented 6 months ago

This comes up sometimes but usually has no impact on the output.

Can you paste the full command you are calling it with, just so I can make sure there's nothing off?

rejuce commented 6 months ago

python3 /home/jk/epub2tts/epub2tts.py ~/epubconvert/myepub.epub --start 4 --end 4 --engine xtts --speaker "Baldur Sanjin" for example

aedocw commented 6 months ago

Oh right! Thanks, I forgot that using Coqui speakers, it could show this warning. I have seen the warning lots of times with this path but have never noticed any truncated audio. If you do catch it actually cutting off audio please let me know, there's a part I can adjust where it will send even smaller sentence sets.

aedocw commented 6 months ago

Closing this, as I don't think there's anything to fix at this time.

rejuce commented 6 months ago

i converted now server books and it run through smoothly. occasionally I get and small audioartifact or the last letter of a sentance chopped but i guess thats xtts. I am not sure though if its caused by segments that had this warning