mirror of https://gitlab.com/bashrc2/epicyon
Only echo to screen if screen reader is active
parent
afb63b068e
commit
c486d56535
|
@ -218,6 +218,7 @@ 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']
|
||||||
|
if screenreader:
|
||||||
# echo spoken text to the screen
|
# echo spoken text to the screen
|
||||||
print(html.unescape(nameStr) + ': ' +
|
print(html.unescape(nameStr) + ': ' +
|
||||||
html.unescape(speakerJson['say']) + '\n')
|
html.unescape(speakerJson['say']) + '\n')
|
||||||
|
@ -227,9 +228,10 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
|
||||||
# echo spoken text to the screen
|
# echo spoken text to the screen
|
||||||
imageDescription = \
|
imageDescription = \
|
||||||
html.unescape(speakerJson['imageDescription'])
|
html.unescape(speakerJson['imageDescription'])
|
||||||
|
if screenreader:
|
||||||
print(html.unescape(nameStr) + ': ' +
|
print(html.unescape(nameStr) + ': ' +
|
||||||
html.unescape(speakerJson['say']) + '\n' +
|
html.unescape(speakerJson['say']) +
|
||||||
imageDescription)
|
'\n' + imageDescription)
|
||||||
|
|
||||||
# speak the post content
|
# speak the post content
|
||||||
if screenreader == 'espeak':
|
if screenreader == 'espeak':
|
||||||
|
|
Loading…
Reference in New Issue