Show HN: Lue – Terminal eBook Reader with Text-to-Speech
99 points| superstarryeyes | 6 months ago |github.com
Hello,
Just went live on GitHub with this project.
I really enjoy listening to my eBooks as audiobooks but was frustrated by the available options. Converting books into audiobooks with scripts is tedious, and most tools stumble over footnotes, headers, or formatting. I wanted something simple: just throw a book at it, and it starts reading immediately without any clicking or loading.
I also wanted it to be customizable and modular because new, better TTS engines are released all the time. For this initial release, I settled on Edge and Kokoro because they’re both fast (real-time) and good quality. I’ve already made modules for Kitten TTS, Gemini and a few others, and they work too. So I hope this setup is future-proof.
Here’s what Lue supports:
Multi-format: EPUB, PDF, TXT, DOCX, HTML, RTF, and Markdown.
Modular TTS system: Default Edge TTS (online) and Kokoro TTS (offline/local), with an architecture to add more models.
Rich terminal UI: Full keyboard and mouse support, customizable color themes, smooth scrolling.
Smart persistence: Automatically saves reading progress across sessions.
Cross-platform & multilingual: macOS, Linux, Windows, supporting 100+ languages.
I’d love feedback on both usability and the TTS experience. Are there any features you wish it had?
nd4spdviper|6 months ago
For me, running it on my home server so it can save my progress would be good.
aidenn0|6 months ago
superstarryeyes|6 months ago
it saves the state of having the narration on or off, so if you ever open the book again you don't hear any voice. also the reading progress and state is automatically saved to your system log files. I'm pretty sure with a few settings in the config.py file you could direct them to your server.
about the monospace fonts. yes, they're not the prettiest but they're very easy to read! easier than many much more beautiful fonts. and if you're tired of reading, just switch on the tts. ;)
okasaki|6 months ago
SilentM68|6 months ago
Only drawback, in my view, is the requirement of "espeak, antiword" packages outside the uv environment. I would prefer that all tools be installable inside the uv environment to reduce possible corruption or errors.
I do seem to have one issue. When I tried to use the "t" keyboard shortcut, the application refused to continue reading the book, epub in this case, when I pressed "a" to start auto playback. Pressing and depressing "pause" has no effect. Deactivating and reactivating the environment has no effect but it does drop me back to where it left off.
Though the terminal interface is acceptable, may I suggest that a more interactive interface might make it more attractive to people that are also used to a GUI interface. Perhaps creating a terminal GUI option using the Textual Python Terminal package.
It would also be good if when typing "lue", the app will automatically find the book I was last reading without me having to specify it in as an argument every time. A keyboard shortcut to display the reading history would also be useful.
Just a thought :)
superstarryeyes|6 months ago
i hadn't heard of textual python terminal before but i'm looking at the documentation right now and it seems very useful package. thanks for the recommendation! i'll definitely research this more.
sync|6 months ago
Just one quick note as I ran into this when setting it up:
Note I definitely disregarded your instructions and used `uv` to setup the project. Still, it seems like changing the `pyproject.toml` to `requires-python = ">=3.10"` would be good considering kokoro's Python version support.superstarryeyes|6 months ago
stakhanov|6 months ago
I have a section on my reading list for books that are available as e-books, but not as audiobooks, and that section just keeps growing ad infinitum. I seldom find the time to read, but I often have time for audiobooks, as I listen to them while driving, or doing household chores, etc.
So, when I saw your post, I immediately tried it out, and it works really well for my purposes.
One feature request: It would be awesome if there was a control for the speech rate.
superstarryeyes|6 months ago
drewbitt|6 months ago
> I’ve already made modules for Kitten TTS, Gemini and a few others, and they work too.
Did you publish these? or provide a guide to build your own? I have my own quick epub/txt to MiniMax tool but adapters or a framework to build your own would be nice. I see "modular" and "extensible" but not what to do.
superstarryeyes|6 months ago
anyway, the instructions are here: https://github.com/superstarryeyes/lue/blob/main/DEVELOPER.m...
i'll give you a tip for making the modules, which worked for me incredibly well:
copy/paste the DEVELOPER.md to a high context window llm like gemini and then use something like this tool: https://repomix.com to generate a markdown of the whole github repo of a tts you want to port, and ask it to generate a module out of it for lue. it might work with one shot like it did for me for kitten tts, or you could have to do some follow ups, but this method has worked for me with many models already.
tiberius_p|6 months ago
superstarryeyes|6 months ago
unknown|6 months ago
[deleted]
skyzouwdev|6 months ago
superstarryeyes|6 months ago
those elements are basically removed from the text, because i wanted to keep the reading experience very simple in a sense, but i should maybe add an option to only skip them with the tts.
though, i have to say lue is still not absolutely 100% perfect with this. epubs were easier because many of them are full of standardized xhtml/html tags. but there is still a lot of manual regexing in my code which i took a lot of time with, testing filters with 100 or so books to find the best and most general ones that are able to clean up most books.
pdfs are whole another beast because they are basically blocks of text without any tags so it's much harder to format and clean them up. the way i solved this was to use positional filters which are of course not bullet proof because people scan pdf's in different ways and pages are laid out differently. so i tried to find the best average placements of these elements (top 10% and bottom 10%) and there's always the option not enable this filtering or change the values. i'm still trying to look maybe a better way to solve this.
Ciantic|6 months ago
P.S. "lue" means "read" in Finnish.
superstarryeyes|6 months ago
gosub100|6 months ago