[Balabolka's Substitute] How I Use Reader View to Enjoy Microsoft Edge's Read Aloud in Linux
Earlier this year I wrote Bimodal Reading in Balabolka, Microsoft Edge’s Read Aloud, and Audible’s Immersion Reading. For my brief introduction please see Microsoft Edge’s Read Aloud.
Ever since I switched to Linux, I’d been searching for a Balabolka substitute for a long time. The search was over for me. In terms of convenience, it was just as good as my old F7_SuperMemo_to_Balabolka.ahk, but Microsoft’s AI-generated voices is phenomenal. This guide is for Linux users who would like to do Bimodal Reading as convenient as possible.
It’s a command-line automation tool. If you’re on
Xorg, use xdotool.
pandoc to convert
- Microsoft Edge version
The latest Edge version in Linux doesn’t have Read Aloud. Read Aloud is only available on version
98.0.1108.62. We need this exact version. If you’re on Arch Linux:
0.6.9 broke on Edge
98.0.1108.62. I’d to upgrade Edge to version
reader-view works again in Edge.
Please use the below setting. If not, change it as you see fit and change the
clipboard-to-html.sh script as well.
- Global shortcut
~/.config/sway/config.d/default, I have the following keybinding:
bindsym $mod+e exec /home/username/.local/bin/clipboard-to-html.sh
Whenever I press
Super+e, it executes the
- Create the following directories and files
Try to run
clipboard-to-html.sh in the terminal to see if it works.
- Start a local server
We use python to start a local server. Visit http://0.0.0.0:8000/ to see if you can connect to it.
- Now try it! Copy something to the clipboard with
C-c, then press
Super+eto trigger the script.
From the video, I only press
C-c to copy the content I want, then press
Super+e to trigger the global script. The rest is automated from the script.
This also works for local epub.
- Use Calibre to convert epub to html.
- Go to the output folder and start another python server with a different port (e.g.,
python3 -m http.server 8001).
- Visit http://0.0.0.0:8001/ to enjoy reading
I hope this is helpful. Feel free to comment and start a disucssion below.