8 lines
210 B
Python
8 lines
210 B
Python
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) |