https://github.com/rafael1mc/epub-tts Skip to content Navigation Menu Toggle navigation Sign in * Product + GitHub Copilot Write better code with AI + Security Find and fix vulnerabilities + Actions Automate any workflow + Codespaces Instant dev environments + Issues Plan and track work + Code Review Manage code changes + Discussions Collaborate outside of code + Code Search Find more, search less Explore + All features + Documentation + GitHub Skills + Blog * Solutions By company size + Enterprises + Small and medium teams + Startups By use case + DevSecOps + DevOps + CI/CD + View all use cases By industry + Healthcare + Financial services + Manufacturing + Government + View all industries View all solutions * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners + Executive Insights * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} rafael1mc / epub-tts Public * Notifications You must be signed in to change notification settings * Fork 1 * Star 14 Create audio files from ePUB. License MIT license 14 stars 1 fork Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights rafael1mc/epub-tts main BranchesTags [ ] Go to file Code Folders and files Name Name Last commit message Last commit date Latest commit History 12 Commits internal internal volume volume .gitignore .gitignore LICENSE LICENSE README.md README.md go.mod go.mod go.sum go.sum main.go main.go View all files Repository files navigation * README * MIT license epub-tts Convert ePUB into audio files. Code will parse the ePUB into sections (which roughly correlates to book chapters) and 'text-to-speech' each section into its own audio file. Output will be prefixed with a number to maintain order. [ This is an alpha, proof of concept version. To me, it's supposed to be a simple alternative for when eyes are tired but the mind is not :) ] Requirements * Run on MacOS * ffmpeg installed and available in $PATH * Golang How to use 1. Clone this repo 2. Replace the file inside volume/input.epub with the book you want to convert to audio (keep file name) 3. Execute the program (note that it will take quite some time, but you should see some output during execution): go run . 5. You should see a new output folder with each text and audio file. TODO * [*] Parse ePUB from Golang * [*] Organize code * [*] Add worker pools for batch conversion and less CPU strain * [*] Reduce output audio size * [*] Extract chapter info * [ ] Add more sample ePUBs * [ ] Add automated tests * [ ] Add multiple input (separate output by folder same name as input file) * [ ] Organize the code some more * [ ] Support other languages beyond english * [ ] Display progress * [ ] Add support for Ubuntu TTS * [ ] Add Web UI to Drag and Drop epub files * [ ] ? Dependencies * MacOS say command * Note: The example book in this repo is taken from Project Guttenber, with Copyright Status as "Public domain in the USA" --------------------------------------------------------------------- License Check LICENSE file. About Create audio files from ePUB. Resources Readme License MIT license Activity Stars 14 stars Watchers 1 watching Forks 1 fork Report repository Languages * Go 100.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.