finalizing
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user