[orca] Send Gecko utterances speech.speak as a whole rather than iterating through them
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Send Gecko utterances speech.speak as a whole rather than iterating through them
- Date: Fri, 12 Sep 2014 21:15:53 +0000 (UTC)
commit fd6b28578f63de43e6fee43710cbc4e1312859fa
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Sep 12 17:13:45 2014 -0400
Send Gecko utterances speech.speak as a whole rather than iterating through them
src/orca/scripts/toolkits/Gecko/script.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index cd9ff6b..2878ef8 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -2527,9 +2527,7 @@ class Script(default.Script):
def speakContents(self, contents):
"""Speaks each string in contents using the associated voice/acss"""
- utterances = self.getUtterancesFromContents(contents)
- for utterance in utterances:
- speech.speak(utterance, interrupt=False)
+ speech.speak(self.getUtterancesFromContents(contents))
def speakCharacterAtOffset(self, obj, characterOffset):
"""Speaks the character at the given characterOffset in the
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]