From 77a339b8c1bb7fd26c74262d92f23092005f7fe0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 2 Mar 2021 17:16:59 +0000 Subject: [PATCH] Include image description when printing to screen --- epicyon.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/epicyon.py b/epicyon.py index a55260a11..285e730ea 100644 --- a/epicyon.py +++ b/epicyon.py @@ -1946,10 +1946,7 @@ if args.speaker: if speakerJson: if speakerJson['say'] != prevSay: if speakerJson.get('name'): - # echo spoken text to the screen nameStr = speakerJson['name'] - print(html.unescape(nameStr) + ': ' + - html.unescape(speakerJson['say']) + '\n') # get the speech parameters pitch = getSpeakerPitch(nameStr, args.screenreader) @@ -1975,9 +1972,16 @@ if args.speaker: # append image description if needed if not speakerJson.get('imageDescription'): sayStr = speakerJson['say'] + # 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 + print(html.unescape(nameStr) + ': ' + + html.unescape(speakerJson['say']) + '\n' + + html.unescape(speakerJson['imageDescription'])) # speak the post content if args.screenreader == 'espeak':