From 46657e60f3bc9375809944f8fdb335f45b028a1d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 2 Mar 2021 17:18:47 +0000 Subject: [PATCH] Pronounce emoji --- speaker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/speaker.py b/speaker.py index f4a8e99fe..54fa64a28 100644 --- a/speaker.py +++ b/speaker.py @@ -48,6 +48,7 @@ def speakerPronounce(baseDir: str, sayText: str, translate: {}) -> str: convertDict = { "Epicyon": "Epi-cyon", "espeak": "e-speak", + "emoji": "emowji", "clearnet": "clear-net", "RT @": "Re-Tweet ", "#": translate["hashtag"], @@ -100,7 +101,7 @@ def speakerReplaceLinks(sayText: str, translate: {}, for word in wordsList: if word.startswith(':'): if word.endswith(':'): - replacements[word] = ', emoji ' + word.replace(':', '') + ',' + replacements[word] = ', emowji ' + word.replace(':', '') + ',' continue # replace mentions, but not re-tweets if word.startswith('@') and not prevWord.endswith('RT'):