davidacm / NVDA-IBMTTS-Driver

This project is aimed at developing and maintaining the NVDA IBMTTS driver. IBMTTS is a synthesizer similar to Eloquence. Please send your ideas and contributions here!
GNU General Public License v2.0
56 stars 23 forks source link

sometimes throws an error:IndexError: index out of range #67

Closed cary-rowen closed 2 years ago

cary-rowen commented 2 years ago
  File "C:\Users\cary\AppData\Roaming\nvda\addons\IBMTTS\synthDrivers\ibmeci.py", line 260, in speak
    if last is not None and last[-1] not in punctuation:
IndexError: index out of range

Open the following page and use the letter E to jump to the last editable text box, Then press the up arrow, you will get that error:

https://www.ximalaya.com/sound/548820458

davidacm commented 2 years ago

That was a mistake. The condition checks if last is not None, but not check if last is not an empty string. I fix it now, I will publish a release with it and other small changes.

cary-rowen commented 2 years ago

Thanks, this has been fixed