summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/stt.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/client/stt.py b/client/stt.py
index 9eb07e7..86cc83b 100644
--- a/client/stt.py
+++ b/client/stt.py
@@ -139,11 +139,7 @@ class PocketSphinxSTT(AbstractSTTEngine):
f.truncate()
transcribed = [result[0]]
-
- print("===================")
- print("JASPER: %r" % transcribed)
- print("===================")
-
+ self._logger.info('Transcribed: %r', transcribed)
return transcribed
@classmethod
@@ -398,11 +394,11 @@ class AttSTT(AbstractSTTEngine):
exc_info=True)
return []
else:
- results = [x[0].upper() for x in sorted(results,
- key=lambda x: x[1],
- reverse=True)]
- self._logger.info('Recognized: %r', results)
- return results
+ transcribed = [x[0].upper() for x in sorted(results,
+ key=lambda x: x[1],
+ reverse=True)]
+ self._logger.info('Transcribed: %r', transcribed)
+ return transcribed
def _get_response(self, data):
headers = {'authorization': 'Bearer %s' % self.token,