Skip to content

Commit f4cd96a

Browse files
authored
Merge a8abad2 into 81d81dc
2 parents 81d81dc + a8abad2 commit f4cd96a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

source/synthDrivers/sapi4.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#synthDrivers/sapi4.py
22
#A part of NonVisual Desktop Access (NVDA)
3-
#Copyright (C) 2006-2019 NV Access Limited
3+
#Copyright (C) 2006-2020 NV Access Limited
44
#This file is covered by the GNU General Public License.
55
#See the file COPYING for more details.
66

@@ -111,6 +111,9 @@ def speak(self,speechSequence):
111111
if charMode:
112112
# Some synths stay in character mode if we don't explicitly disable it.
113113
textList.append("\\RmS=0\\")
114+
# Some SAPI4 synthesizers complete speech sequence just after the last text and ignore any indexes passed at the end
115+
# Therefore we add the pause of 1ms at the end
116+
textList.append("\\PAU=1\\")
114117
text="".join(textList)
115118
flags=TTSDATAFLAG_TAGGED
116119
self._ttsCentral.TextData(VOICECHARSET.CHARSET_TEXT, flags,TextSDATA(text),self._bufSinkPtr,ITTSBufNotifySink._iid_)

0 commit comments

Comments
 (0)