Select any text and have it read out loud, uses google wavenet api for good quality audio.
- clone repo
- get dependencies
- change path to gcp credentials in
speak.sh
- add keyboard shortcut
Install google cloud sdk and enable tts api
sudo apt install xsel jq mpg123 curl
- xsel to get selected text
- jq to create json
- mpg123 to play mp3 audio
- curl to send request