Twitter Espeak
                    Contents
                    
                
                
            What if my tweets can be heard
Install rainbowstream
rainbowstream is a twitter client for linux cli.
- prepare python venv
python3 -m venv venv
source venv/bin/activate- install rainbowstream
pip install rainbowstream- run rainbowstream
rainbowstream
# you will be asked to login to twitterInstall espeak
espeak is TTS software for linux
sudo apt install espeaktest espeak can speak
espeak hello
espeak "한글"
echo "hello" | espeakPrepare text stream
I will create temporary PIPE file that will pass the texts from rainbowstream to espeak
mkfifo /tmp/sockRun read and speaker
espeak will listen on /tmp/sock for text
#!/bin/bash
test -e /tmp/rainbowsream || mkfifo /tmp/rainbowstream
while true
do
espeak < /tmp/rainbowstream
doneRun rainbowstream and feed texts
run rainbowstream in text only mode
rainbowstream | sed -u -e 's/\x1b\[[0-9;]*m//g' | tee /tmp/sock- sedwill remove color code
- teewill pass text to the PIPE and will print out too
- you can remove additional unnecessary text via sedorgrep. I usesgrep --line-buffered -v "id:[0-9]+ via"
 Deokgon Kim
Deokgon Kim