Skip to content

Commit

Permalink
version 20.02B2
Browse files Browse the repository at this point in the history
fix now NVDA won-t stop from talking if the current device number is not present, E.G. if a soundcard is disconnected. This issue is present on all NVDA-s synth drivers.
add more crashing fixes.
fix now IBMTTS can load dictionaries properly.
  • Loading branch information
davidacm committed Feb 15, 2020
1 parent 9e51965 commit a9d8803
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion addon/synthDrivers/_ibmeci.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ def setLast(lp):
onIndexReached(lp)

def bgPlay(stri):
if len(stri) == 0: return
global player
if not player or len(stri) == 0: return
# Sometimes player.feed() tries to open the device when it's already open,
# causing a WindowsError. This code catches and works around this.
# [DGL, 2012-12-18 with help from Tyler]
Expand All @@ -236,6 +237,10 @@ def bgPlay(stri):
if tries > 0:
log.warning("Eloq speech retries: %d" % (tries))
return
except FileNotFoundError:
# reset the player if the used soundcard is not present. E.G. the total number of sound devices has changed.
player.close()
player = nvwave.WavePlayer(1, 11025, 16, outputDevice=config.conf["speech"]["outputDevice"])
except:
player.idle()
time.sleep(0.02)
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
"addon_description" : _("""This is the IBMTTS synthesizer driver for NVDA."""),
# version
"addon_version" : "20.02B1",
"addon_version" : "20.02B2",
# Author(s)
"addon_author" : u"David CM <dhf360@gmail.com> and others",
# URL for the add-on documentation support
Expand Down

0 comments on commit a9d8803

Please sign in to comment.