Skip to content

Commit

Permalink
version 20.02B3
Browse files Browse the repository at this point in the history
fix now the synthesizer doesn't reverberate  when reading upercase letters. It fixes #27
  • Loading branch information
davidacm committed Feb 15, 2020
1 parent a9d8803 commit 7d49679
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion addon/synthDrivers/ibmeci.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
try: # for python 2.7
unicode
from synthDriverHandler import BooleanSynthSetting as BooleanDriverSetting,NumericSynthSetting as NumericDriverSetting

class synthIndexReached:
@classmethod
def notify (cls, synth=None, index=None): pass
Expand Down Expand Up @@ -172,9 +173,14 @@ def speak(self,speechSequence):
outlist.append((_ibmeci.setProsodyParam, (self.PROSODY_ATTRS[type(item)], val)))
else:
log.error("Unknown speech: %s"%item)
if last is not None and last[-1] not in punctuation: outlist.append((_ibmeci.speak, (b'`p1. ',)))
if last is not None and last[-1] not in punctuation:
# check if a pitch command is at the end of the list, because p1 need to be send before this.
# index -2 is because -1 always seem to be an index command.
if outlist[-2][0] == _ibmeci.setProsodyParam: outlist.insert(-2, (_ibmeci.speak, (b'`p1. ',)))
else: outlist.append((_ibmeci.speak, (b'`p1. ',)))
outlist.append((_ibmeci.setEndStringMark, ()))
outlist.append((_ibmeci.synth, ()))
#print(outlist)
_ibmeci.eciQueue.put(outlist)
_ibmeci.process()

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.02B2",
"addon_version" : "20.02B3",
# 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 7d49679

Please sign in to comment.