From 2a11f68845e5a20fe69b00ed0f8892048a0b4469 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 10 Mar 2021 10:49:45 +0000 Subject: [PATCH] Initial announces --- notifications_client.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/notifications_client.py b/notifications_client.py index d7f4a5cce..381272b89 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -137,14 +137,20 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str, print(screenreader + ' is not a supported TTS system') return - print('Running ' + screenreader + ' for ' + nickname + '@' + domain) + sayStr = 'Running ' + screenreader + ' for ' + nickname + '@' + domain + _sayCommand(sayStr, screenreader, + systemLanguage, espeak) else: print('Running desktop notifications for ' + nickname + '@' + domain) if notificationSounds: - print('Notification sounds on') + sayStr = 'Notification sounds on' else: - print('Notification sounds off') - print('/q or /quit to exit') + sayStr = 'Notification sounds off' + _sayCommand(sayStr, screenreader, + systemLanguage, espeak) + sayStr = '/q or /quit to exit' + _sayCommand(sayStr, screenreader, + systemLanguage, espeak) originalScreenReader = screenreader domainFull = getFullDomain(domain, port)