finalizing

This commit is contained in:
Pavel Lutskov
2019-02-10 17:33:26 +01:00
parent 567f7b0274
commit 1a65bb6af7
7 changed files with 95 additions and 33 deletions

View File

@@ -49,7 +49,7 @@ class SpeechDetectorModule(ALModule):
self._busy = False
def get_status(self):
print(almem.getData('ALSpeechRecognition/Status'))
return almem.getData('ALSpeechRecognition/Status')
def start_speech(self, voc, resume=False):
if self._busy != resume:
@@ -80,7 +80,6 @@ class SpeechDetectorModule(ALModule):
def on_word_recognized(self, *_args):
word, conf = almem.getData('WordRecognized')
print(word, conf)
if conf > 0.4:
self.stop_speech(pause=True)
self.tts.say(word)