Twitter Espeak
What if my tweets
can be heard
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 twitter
espeak is TTS software for linux
sudo apt install espeak
test espeak can speak
espeak hello
espeak "한글"
echo "hello" | espeak
I will create temporary PIPE file that will pass the texts from rainbowstream
to espeak
mkfifo /tmp/sock
espeak will listen on /tmp/sock for text
#!/bin/bash
test -e /tmp/rainbowsream || mkfifo /tmp/rainbowstream
while true
do
espeak < /tmp/rainbowstream
done
run rainbowstream in text only mode
rainbowstream | sed -u -e 's/\x1b\[[0-9;]*m//g' | tee /tmp/sock
sed
will remove color codetee
will pass text to the PIPE and will print out too- you can remove additional unnecessary text via
sed
orgrep
. I usesgrep --line-buffered -v "id:[0-9]+ via"