[orca] Add debugging



commit a947b7da1b55f06a404931fb020f943f9477aa1f
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue May 5 13:45:41 2020 -0400

    Add debugging

 src/orca/speechdispatcherfactory.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/speechdispatcherfactory.py b/src/orca/speechdispatcherfactory.py
index 1abece2ab..58c6410bf 100644
--- a/src/orca/speechdispatcherfactory.py
+++ b/src/orca/speechdispatcherfactory.py
@@ -271,14 +271,21 @@ class SpeechServer(speechserver.SpeechServer):
 
         family = self._current_voice_properties.get(ACSS.FAMILY)
 
+        styles = {settings.PUNCTUATION_STYLE_NONE: "NONE",
+                  settings.PUNCTUATION_STYLE_SOME: "SOME",
+                  settings.PUNCTUATION_STYLE_MOST: "MOST",
+                  settings.PUNCTUATION_STYLE_ALL: "ALL"}
+
         current = self._current_voice_properties
-        msg = "SPEECH DISPATCHER: %sOrca rate %s, pitch %s, volume %s, language %s; " \
+        msg = "SPEECH DISPATCHER: %s\n" \
+              "ORCA rate %s, pitch %s, volume %s, language %s, punctuation: %s \n" \
               "SD rate %s, pitch %s, volume %s, language %s" % \
               (prefix,
                self._current_voice_properties.get(ACSS.RATE),
                self._current_voice_properties.get(ACSS.AVERAGE_PITCH),
                self._current_voice_properties.get(ACSS.GAIN),
                self._get_language_and_dialect(family)[0],
+               styles.get(_settingsManager.getSetting("verbalizePunctuationStyle")),
                sd_rate,
                sd_pitch,
                sd_volume,


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