[orca] Fix bug in sentence echo



commit 63c6b67a3681c5c744f59ff0ae7326a9cd4e5488
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Sep 29 10:19:35 2018 -0400

    Fix bug in sentence echo

 src/orca/scripts/default.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index d1ee7242a..2bf258e7f 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -3127,7 +3127,7 @@ class Script(script.Script):
             sentence = self.utilities.substring(obj, sentenceStartOffset + 1,
                                          sentenceEndOffset + 1)
 
-        voice = self.speechGenerator.voice(string=voice)
+        voice = self.speechGenerator.voice(string=sentence)
         sentence = self.utilities.adjustForRepeats(sentence)
         speech.speak(sentence, voice)
         return True


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