You've already forked STARK
mirror of
https://github.com/MarkParker5/STARK.git
synced 2025-07-02 22:36:54 +02:00
fix voiceAssistant import
This commit is contained in:
@ -11,7 +11,7 @@ if config.double_clap_activation:
|
|||||||
|
|
||||||
GPIO.setmode(GPIO.BCM)
|
GPIO.setmode(GPIO.BCM)
|
||||||
GPIO.setup(12, GPIO.IN)
|
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):
|
class VoiceAssistant(Control):
|
||||||
listener = SpeechRecognition.SpeechToText()
|
listener = SpeechRecognition.SpeechToText()
|
||||||
|
@ -138,13 +138,6 @@ class Command(ABC):
|
|||||||
def getSubPatterns(self):
|
def getSubPatterns(self):
|
||||||
return self._subPatterns
|
return self._subPatterns
|
||||||
|
|
||||||
######################################################################################
|
|
||||||
# ABSTRACT METHODS #
|
|
||||||
######################################################################################
|
|
||||||
@abstractmethod
|
|
||||||
def start(self, params): # main method
|
|
||||||
pass
|
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
# STATIC METHODS #
|
# STATIC METHODS #
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
Reference in New Issue
Block a user