fix stuff
This commit is contained in:
8
core/wake_word.py
Normal file
8
core/wake_word.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from config import WAKE_WORDS
|
||||
|
||||
from .speech_recognition import listen_for_command
|
||||
|
||||
|
||||
def detect_wake_word(rec):
|
||||
phrase = listen_for_command(rec)
|
||||
return any(phrase.startswith(word) for word in WAKE_WORDS)
|
||||
Reference in New Issue
Block a user