Skip to content

Commit c7cd8c2

Browse files
authored
Merge a3a16a3 into 9cac34b
2 parents 9cac34b + a3a16a3 commit c7cd8c2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

source/synthDrivers/sapi5.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: UTF-8 -*-
22
#synthDrivers/sapi5.py
33
#A part of NonVisual Desktop Access (NVDA)
4-
#Copyright (C) 2006-2017 NV Access Limited, Peter Vágner, Aleksey Sadovoy
4+
#Copyright (C) 2006-2020 NV Access Limited, Peter Vágner, Aleksey Sadovoy
55
#This file is covered by the GNU General Public License.
66
#See the file COPYING for more details.
77

@@ -364,6 +364,10 @@ def outputTags():
364364
tagsChanged[0] = True
365365
outputTags()
366366

367+
# Some SAPI5 synthesizers complete speech sequence just after the last text
368+
# and ignore any indexes passed after it
369+
# Therefore we add the pause of 1ms at the end
370+
textList.append('<silence msec="1" />')
367371
text = "".join(textList)
368372
flags = constants.SVSFIsXML | constants.SVSFlagsAsync
369373
self.tts.Speak(text, flags)

0 commit comments

Comments
 (0)