[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] return status from set_data_mode
From: |
Trevor Saunders |
Subject: |
[PATCH 1/2] return status from set_data_mode |
Date: |
Fri, 6 Aug 2010 17:57:13 -0400 |
return the value of self._conn.send_command() in set_data_mode()
This change is based on a patch to opentts by Mesar Hameed to allow clients to
see if the
data mode has been successfully set.
---
src/python/speechd/client.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/python/speechd/client.py b/src/python/speechd/client.py
index 5668cb6..96e7e8d 100644
--- a/src/python/speechd/client.py
+++ b/src/python/speechd/client.py
@@ -702,7 +702,7 @@ class SSIPClient(object):
ssip_val = 'on'
elif value == DataMode.TEXT:
ssip_val = 'off'
- self._conn.send_command('SET', Scope.SELF, 'SSML_MODE', ssip_val)
+ return self._conn.send_command('SET', Scope.SELF, 'SSML_MODE',
ssip_val)
def speak(self, text, callback=None, event_types=None):
"""Say given message.
--
1.7.1
- [PATCH 1/2] return status from set_data_mode,
Trevor Saunders <=
[PATCH 1/2] return status from set_data_mode, Chris Brannon, 2010/08/06
[PATCH 1/2] return status from set_data_mode, Hynek Hanke, 2010/08/07