[orca] Revert "Re-enable the "interrupt" option in speechdispatcher factory"



commit 0df3bc53915d13e5f6e920bd271a4138fd79d1a8
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Jan 8 16:09:14 2021 +0100

    Revert "Re-enable the "interrupt" option in speechdispatcher factory"
    
    The code in speech.py is very pro-interruption. It gets called by the
    scripts for multiple-utterance presentation. Without some significant
    changes, we're in danger of cutting off all but the last utterance. :(
    
    This reverts commit ce033c086bb886479b5097d8ecb5a838f94728c7.

 src/orca/speechdispatcherfactory.py | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/src/orca/speechdispatcherfactory.py b/src/orca/speechdispatcherfactory.py
index 2391dabc4..53e1888c0 100644
--- a/src/orca/speechdispatcherfactory.py
+++ b/src/orca/speechdispatcherfactory.py
@@ -585,9 +585,9 @@ class SpeechServer(speechserver.SpeechServer):
 
         return families
 
-    def speak(self, text=None, acss=None, interrupt=False):
-        if interrupt:
-            self._cancel()
+    def speak(self, text=None, acss=None, interrupt=True):
+        #if interrupt:
+        #    self._cancel()
 
         # "We will not interrupt a key echo in progress." (Said the comment in
         # speech.py where these next two lines used to live. But the code here
@@ -599,10 +599,9 @@ class SpeechServer(speechserver.SpeechServer):
         if text:
             self._speak(text, acss)
 
-    def speakUtterances(self, utteranceList, acss=None, interrupt=False):
-        if interrupt:
-            self._cancel()
-
+    def speakUtterances(self, utteranceList, acss=None, interrupt=True):
+        #if interrupt:
+        #    self._cancel()
         for utterance in utteranceList:
             if utterance:
                 self._speak(utterance, acss)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]