From 15f9d4a8ef56cf8a8075e1dd6e524c37884219f3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 10 Mar 2021 12:15:49 +0000 Subject: [PATCH 1/2] Less delay on quit --- notifications_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications_client.py b/notifications_client.py index 0a16b6ddf..91780e49a 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -301,7 +301,7 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str, sayStr = 'Quit' _sayCommand(sayStr, screenreader, systemLanguage, espeak) - keyPress = _waitForKeypress(3, debug) + keyPress = _waitForKeypress(2, debug) break elif keyPress == 'sounds on' or keyPress == 'sound': sayStr = 'Notification sounds on' From bcebd79b976aa7f382e8ad464f296904c5dddeb7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 10 Mar 2021 12:26:10 +0000 Subject: [PATCH 2/2] Don't show picospeaker output --- notifications_client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/notifications_client.py b/notifications_client.py index 91780e49a..45b106e34 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -62,8 +62,7 @@ def _speakerPicospeaker(pitch: int, rate: int, systemLanguage: str, '-l ' + speakerLang + \ ' -r ' + str(rate) + \ ' -p ' + str(pitch) + ' "' + \ - html.unescape(sayText) + '"' - # print(speakerCmd) + html.unescape(sayText) + '" 2> /dev/null' os.system(speakerCmd)