mirror of https://gitlab.com/bashrc2/epicyon
Only echo to screen if screen reader is active
parent
afb63b068e
commit
c486d56535
|
@ -218,18 +218,20 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
|
||||||
# append image description if needed
|
# append image description if needed
|
||||||
if not speakerJson.get('imageDescription'):
|
if not speakerJson.get('imageDescription'):
|
||||||
sayStr = speakerJson['say']
|
sayStr = speakerJson['say']
|
||||||
# echo spoken text to the screen
|
if screenreader:
|
||||||
print(html.unescape(nameStr) + ': ' +
|
# echo spoken text to the screen
|
||||||
html.unescape(speakerJson['say']) + '\n')
|
print(html.unescape(nameStr) + ': ' +
|
||||||
|
html.unescape(speakerJson['say']) + '\n')
|
||||||
else:
|
else:
|
||||||
sayStr = speakerJson['say'] + '. ' + \
|
sayStr = speakerJson['say'] + '. ' + \
|
||||||
speakerJson['imageDescription']
|
speakerJson['imageDescription']
|
||||||
# echo spoken text to the screen
|
# echo spoken text to the screen
|
||||||
imageDescription = \
|
imageDescription = \
|
||||||
html.unescape(speakerJson['imageDescription'])
|
html.unescape(speakerJson['imageDescription'])
|
||||||
print(html.unescape(nameStr) + ': ' +
|
if screenreader:
|
||||||
html.unescape(speakerJson['say']) + '\n' +
|
print(html.unescape(nameStr) + ': ' +
|
||||||
imageDescription)
|
html.unescape(speakerJson['say']) +
|
||||||
|
'\n' + imageDescription)
|
||||||
|
|
||||||
# speak the post content
|
# speak the post content
|
||||||
if screenreader == 'espeak':
|
if screenreader == 'espeak':
|
||||||
|
|
Loading…
Reference in New Issue