Show HN: Convert ePub to audio files
(github.com)37 points by rafael1mc 2 days ago | 8 comments
A way to generate .mp3 files from ePUB.
I wanted to continue "reading" even after my eyes got tired or if I went away from the screen. For these cases, what I did was select a given text, and select "Speech". If you've used this before, you know it's fine for small sections, but not for big chunks of text.
So, I challenged myself to create a project that would "text-to-speech" a given book. After some attempts, I came up with a good-enough initial version using Golang. It will parse an ePUB into sections and run MacOS's `say` command to generate audio files.
For now it's quite basic, but worked fine for the few files I tested.
sandreas 6 hours ago | next |
Cool. Maybe you'd like to take a look at F5-TTS, where you can upload a voice sample to "clone" a narrator voice, e.g.
https://github.com/JarodMica/audiobook_maker
Here is a video about it:
https://www.youtube.com/watch?v=HbUnb5znNwM
With gradio and F5-TTS it is also possible to train your own voice by Speech-To-Text via Whisper and after this train your model to use the generated LJSpeech dataset to train your own voice model for F5-TTS. Video:
https://www.youtube.com/watch?v=GmketyZW2c4
This way you basically can take any audio book with your favourite narrator, clone his voice and let him read ANY of your epubs. Even more, you could use F5-TTS extensions to use different voices e.g. for female and male characters:
But you'd probably need a pretty decent GPU to get this going :-)