File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 )
You can’t perform that action at this time.
0 commit comments