27 ms·
Show HN: Turn any text file into an audiobook
- ivan_ah 5y agoSay 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 ;)
- ivan_ah 5y agosample output: https://minireference.com/static/tmp/constructive_feedback.mp3 https://minireference.com/static/tmp/constructive_feedback.m... which was obtained from https://productivityhub.org/2019/04/19/how-to-deliver-constructive-feedback-in-difficult-situations/ https://productivityhub.org/2019/04/19/how-to-deliver-constr... via https://news.ycombinator.com/item?id=28266658 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
- anthk 5y agolynx -dump -nolist $URL | flite -voice slt -o file.wav && opusenc --bitrate 12 file.wav file.opus && mplayer file.opus