Skip to content

Commit c5d7e3e

Browse files
Save processed text to file
Save processed text to a text file namely "dual_sapi5.txt" in the NVDA root folder. This facilitate testing of the software.
1 parent 27fc84b commit c5d7e3e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

addon/synthDrivers/dual_sapi5.py

+4
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,10 @@ def outputTags():
411411
text = "".join(textList)
412412
flags = constants.SVSFIsXML | constants.SVSFlagsAsync
413413
self.tts.Speak(text, flags)
414+
file = open("dual_sapi5.txt","ab")
415+
text = text + '\n'
416+
file.write(text.encode('utf8'))
417+
file.close()
414418

415419
def speak(self, speechSequence):
416420
try:

0 commit comments

Comments
 (0)