Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Turn any text file into an audiobook (gist.github.com)
1 point by ivansavz on Aug 24, 2021 | hide | past | favorite | 3 comments


Say you want to have a few hacker news articles lined up that you want to read, but you also want to lift weights, cook some food, or clean your house. How do you choose what to do?? Or maybe you don't need to choose!

Copy-paste the text of the news articles into a regular .txt file then use this script to make the computer read them to you while you do your day to day tasks. macOS users only (please comment if you know how to make this cross-platform).

WARNING: excessive muscles, food consumption, and cleanliness may result ;)


    lynx -dump -nolist $URL | flite -voice slt -o file.wav && opusenc --bitrate 12 file.wav file.opus && mplayer file.opus


sample output: https://minireference.com/static/tmp/constructive_feedback.m... which was obtained from https://productivityhub.org/2019/04/19/how-to-deliver-constr... via https://news.ycombinator.com/item?id=28266658

obtained using

   1. COPY-PASTE the article text into a .txt temp file
   2. RUN  txt2mp3.sh /tmp/constructive_feedback.txt




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: