This is extremely cool. Likewise a gui would be helpful or at least a progress update periodically. For long books it's very hard to know how far along the status is. The long phonemes error or message had me wonder if it had stalled, though my PC was buzzing along with resources allocated so I just assumed.
It does work for me which is cool as hell.
**/u/inkompatible**
YOU! are amazing! your use case exactly matches mine. I've just converted to dearly loved books into audiobooks after years of searching for them in any audio format.
This has made my week. I really want to buy you a pint.
Works great!
* Could it also work with .txt files? `pip install txt2epub` worked for me.
* Could the "{title} by {author}" be optional? (add a `--no-title` command line flag?)
* Could the ffmpeg m4b output be optional? I only need the .wav (`--no-m4b`?)
* Could the ffmpeg path be configured? (`--ffmpeg=./ffmpeg`. Or documented that it must be in PATH)
* Why is the example mixing en_gb and `-v a...`? Isn't the "a" for en_us?
This is such a great idea for a project. I need to dig through the source more, but currently i'm unable to get any epubs to actually convert. Also posted this on Github [https://github.com/santinic/audiblez/issues/1](https://github.com/santinic/audiblez/issues/1)
My son legit asked me about something like this today.
I found a solution, at least for me, and it's a pretty simple edit of the [audiblez.py](http://audiblez.py) file. Find the "Find\_Chapters" function in the file, and change it to something like this... "is\_chapter = lambda c: 'chapter' in c.get\_name().lower() or 'part' in c.get\_name().lower() or 'split' in c.get\_name().lower()". Since I noticed that most of my epub files use "split" in the internal filenames, I added that keyword to the list, and suddenly it all worked.
Just commenting to say I had the same issue as you. I was really excited to try this, too. Thanks for posting about the problem on the GitHub, I hope a solution comes from it
That is very cool. I would love to be able to process plain text files as well. It would allow for fun workflows. For example first create articles or book chapters summaries and then generate audio from them.
I see this error in some cases :
\[...\] \_\_init\_\_.py", line 152, in create
audio = np.concatenate(audio)
ValueError: need at least one array to concatenate
I haven't looked into the code, but perhaps there are instances where epub sections have no content?
38 Comments
TruckUseful4423@reddit
inkompatible@reddit (OP)
TruckUseful4423@reddit
eggs-benedryl@reddit
eggs-benedryl@reddit
GrepZen@reddit
newDell@reddit
onewd@reddit
yegods666@reddit
onewd@reddit
maddogawl@reddit
inkompatible@reddit (OP)
maddogawl@reddit
duyntnet@reddit
inkompatible@reddit (OP)
duyntnet@reddit
inkompatible@reddit (OP)
duyntnet@reddit
Ilforte@reddit
yegods666@reddit
GlowingPulsar@reddit
remixer_dec@reddit
zeldaleft@reddit
xyzoo2077@reddit
inkompatible@reddit (OP)
xyzoo2077@reddit
Donnybonny22@reddit
johannoriel@reddit
Same-Chemical-780@reddit
yegods666@reddit
inkompatible@reddit (OP)
inkompatible@reddit (OP)
ramzeez88@reddit
inkompatible@reddit (OP)
bymihaj@reddit
rorowhat@reddit
redditisunproductive@reddit
Felladrin@reddit