Don't print message twice

main
Bob Mottram 2021-03-10 12:15:08 +00:00
parent 411c5f7f0d
commit 1c5993b704
1 changed files with 3 additions and 12 deletions

View File

@ -272,21 +272,12 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
# append image description if needed
if not speakerJson.get('imageDescription'):
sayStr = speakerJson['say']
if screenreader:
# echo spoken text to the screen
print(html.unescape(nameStr) + ': ' +
html.unescape(speakerJson['say']) + '\n')
else:
sayStr = speakerJson['say'] + '. ' + \
speakerJson['imageDescription']
# echo spoken text to the screen
imageDescription = \
html.unescape(speakerJson['imageDescription'])
if screenreader:
print(html.unescape(nameStr) + ': ' +
html.unescape(speakerJson['say']) +
'\n' + imageDescription)
print('')
# say the speaker's name
_sayCommand(nameStr, screenreader,
systemLanguage, espeak,