Commit fd15dd41 authored by Joanmarie Diggs's avatar Joanmarie Diggs

Add a comment reminding us how broken the "interrupt" option is

And include workarounds for people finding that commented out code
and reporting it as a bug, rather than using the more recent and
reliable methods for interrupting speech.
parent 0df3bc53
......@@ -586,6 +586,12 @@ class SpeechServer(speechserver.SpeechServer):
return families
def speak(self, text=None, acss=None, interrupt=True):
# In order to re-enable this, a potentially non-trivial amount of work
# will be needed to ensure multiple utterances sent to speech.speak
# do not result in the intial utterances getting cut off before they
# can be heard by the user. Anyone needing to interrupt speech can
# do so via speech.stop -- or better yet, by using the default script
# method's presentationInterrupt.
#if interrupt:
# self._cancel()
......@@ -600,6 +606,12 @@ class SpeechServer(speechserver.SpeechServer):
self._speak(text, acss)
def speakUtterances(self, utteranceList, acss=None, interrupt=True):
# In order to re-enable this, a potentially non-trivial amount of work
# will be needed to ensure multiple utterances sent to speech.speak
# do not result in the intial utterances getting cut off before they
# can be heard by the user. Anyone needing to interrupt speech can
# do so via speech.stop -- or better yet, by using the default script
# method's presentationInterrupt.
#if interrupt:
# self._cancel()
for utterance in utteranceList:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment