diff --git a/README_commandline.md b/README_commandline.md index f260a6e68..48979d41b 100644 --- a/README_commandline.md +++ b/README_commandline.md @@ -401,4 +401,10 @@ On Debian based systems you will need to have the **python3-espeak** package ins python3 epicyon.py --speaker yournickname@yourdomain --password [yourpassword] ``` +Or if you have [picospeaker](https://gitlab.com/ky1e/picospeaker) installed: + +``` bash +python3 epicyon.py --screenreader picospeaker --speaker yournickname@yourdomain --password [yourpassword] +``` + This will then stay running and incoming posts will be announced as they arrive. diff --git a/speaker.py b/speaker.py index 5c9ac3514..b7f239aa7 100644 --- a/speaker.py +++ b/speaker.py @@ -96,6 +96,10 @@ def speakerReplaceLinks(sayText: str, translate: {}, linkedStr = translate['Linked'] prevWord = '' for word in wordsList: + if word.startswith(':'): + if word.endswith(':'): + replacements[word] = ', emoji ' + word.replace(':', '') + ',' + continue # replace mentions, but not re-tweets if word.startswith('@') and not prevWord.endswith('RT'): replacements[word] = \