Skip to content

Commit 7d49679

Browse files
committed
version 20.02B3
fix now the synthesizer doesn't reverberate when reading upercase letters. It fixes #27
1 parent a9d8803 commit 7d49679

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

addon/synthDrivers/ibmeci.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
try: # for python 2.7
1717
unicode
1818
from synthDriverHandler import BooleanSynthSetting as BooleanDriverSetting,NumericSynthSetting as NumericDriverSetting
19+
1920
class synthIndexReached:
2021
@classmethod
2122
def notify (cls, synth=None, index=None): pass
@@ -172,9 +173,14 @@ def speak(self,speechSequence):
172173
outlist.append((_ibmeci.setProsodyParam, (self.PROSODY_ATTRS[type(item)], val)))
173174
else:
174175
log.error("Unknown speech: %s"%item)
175-
if last is not None and last[-1] not in punctuation: outlist.append((_ibmeci.speak, (b'`p1. ',)))
176+
if last is not None and last[-1] not in punctuation:
177+
# check if a pitch command is at the end of the list, because p1 need to be send before this.
178+
# index -2 is because -1 always seem to be an index command.
179+
if outlist[-2][0] == _ibmeci.setProsodyParam: outlist.insert(-2, (_ibmeci.speak, (b'`p1. ',)))
180+
else: outlist.append((_ibmeci.speak, (b'`p1. ',)))
176181
outlist.append((_ibmeci.setEndStringMark, ()))
177182
outlist.append((_ibmeci.synth, ()))
183+
#print(outlist)
178184
_ibmeci.eciQueue.put(outlist)
179185
_ibmeci.process()
180186

buildVars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
2020
"addon_description" : _("""This is the IBMTTS synthesizer driver for NVDA."""),
2121
# version
22-
"addon_version" : "20.02B2",
22+
"addon_version" : "20.02B3",
2323
# Author(s)
2424
"addon_author" : u"David CM <dhf360@gmail.com> and others",
2525
# URL for the add-on documentation support

0 commit comments

Comments
 (0)