Bob Mottram 2021-03-01 20:28:47 +00:00
parent 7062c0a1c8
commit d5dc473e22
1 changed files with 1 additions and 1 deletions

View File

@ -1951,7 +1951,7 @@ if args.speaker:
espeak.set_parameter(espeak.Parameter.Range, srange) espeak.set_parameter(espeak.Parameter.Range, srange)
espeak.synth(html.unescape(speakerJson['name'])) espeak.synth(html.unescape(speakerJson['name']))
time.sleep(3) time.sleep(3)
if not speakerJson['imageDescription']: if not speakerJson.get('imageDescription'):
sayStr = speakerJson['say'] sayStr = speakerJson['say']
else: else:
sayStr = speakerJson['say'] + '. ' + \ sayStr = speakerJson['say'] + '. ' + \