mirror of
https://github.com/MarkParker5/STARK.git
synced 2024-11-24 08:12:13 +02:00
fix voiceAssistant import
This commit is contained in:
parent
090df2950c
commit
67100ca601
@ -11,7 +11,7 @@ if config.double_clap_activation:
|
||||
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
GPIO.setup(12, GPIO.IN)
|
||||
GPIO.add_event_detect(12, GPIO.RISING, callback = checkClap)
|
||||
GPIO.add_event_detect(12, GPIO.RISING, callback = VoiceAssistant().checkClap)
|
||||
|
||||
class VoiceAssistant(Control):
|
||||
listener = SpeechRecognition.SpeechToText()
|
||||
|
@ -138,13 +138,6 @@ class Command(ABC):
|
||||
def getSubPatterns(self):
|
||||
return self._subPatterns
|
||||
|
||||
######################################################################################
|
||||
# ABSTRACT METHODS #
|
||||
######################################################################################
|
||||
@abstractmethod
|
||||
def start(self, params): # main method
|
||||
pass
|
||||
|
||||
######################################################################################
|
||||
# STATIC METHODS #
|
||||
######################################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user