DrewThomasson / ebook2audiobook

Generates an audiobook with chapters and ebook metadata using Calibre and Xtts from Coqui tts, and with optional voice cloning, and supports multiple languages
MIT License
795 stars 78 forks source link

Fails on >24hr audiobooks & Reader Jumps Around #37

Open kkrausse opened 3 weeks ago

kkrausse commented 3 weeks ago

Seems like the failure at >24hr books is because final wav file gets too big.

Another (somewhat) related issue is that ebook reader randomly pauses and like jump backwards to random places.

Have you considered using m4b-tool instead of combining wav files & making the metadata yourself?

or maybe something with my files messes with the formatting.

edit: willing to work on this myself, but want to know if anyone has ideas first

DrewThomasson commented 2 weeks ago

hm, Ill look into this

but in the meantime I suppose you could try removing the activation of the create_m4b_from_chapters() function?

Then you should just be left with a bunch of chapter wav files located in the Chapter_wav_files dir?

Unless of course your issue comes before the creation of the final giant audiobook file

ROBERT-MCDOWELL commented 2 weeks ago

the best is standardize the audio file with a max time, for ex 2 hours, and a consistent naming convention i.e: chapter-1.1, chapter-1.2 etc... to split with ffmpeg something like ffmpeg -i long_audio.wav -f segment -segment_time 7200 chapter%03d.m4b

kkrausse commented 2 weeks ago

👍🏻 yeah for now I went the route of just commenting out create_m4b_from_chapters() and use m4b-tool to convert those which works great.