Skip to content

Commit bcac393

Browse files
committed
fix now IBMTTS shouldn't say "." at the end of a sentence.
1 parent f019aab commit bcac393

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

addon/synthDrivers/_ibmeci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def index(x):
285285

286286
END_STRING_MARK = 0xffff
287287
endMarkersCount = 0
288-
def setEndStringMark(x):
288+
def setEndStringMark():
289289
global endMarkersCount, END_STRING_MARK
290290
dll.eciInsertIndex(handle, END_STRING_MARK)
291291
endMarkersCount+=1

addon/synthDrivers/ibmeci.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ def speak(self,speechSequence):
136136
log.debugWarning("Unsupported speech command: %s"%item)
137137
else:
138138
log.error("Unknown speech: %s"%item)
139-
if last is not None and not last[-1] in punctuation: outlist.append((_ibmeci.speak, (b'`p1.',)))
140-
outlist.append((_ibmeci.setEndStringMark, (None,)))
139+
if last is not None and not last[-1] in punctuation: outlist.append((_ibmeci.speak, (b'`p1',)))
140+
outlist.append((_ibmeci.setEndStringMark, ()))
141141

142142
outlist.append((_ibmeci.speak, (b"`ts0",)))
143-
outlist.append((_ibmeci.synth,()))
143+
outlist.append((_ibmeci.synth, ()))
144144
_ibmeci.synthQueue.put(outlist)
145145
_ibmeci.process()
146146

0 commit comments

Comments
 (0)