src/Tools/wake_triggers.py
def check_for_wake_word(command: str):
    """
    Check if wake word is in param command.

    :param command: str
    :return: is_triggered: bool
    """
    wake_word: str = ASSISTANT_SETTINGS.get('Wake Word')

    logging.debug(f'Searching for wake word ({wake_word}) in command ({command})')
    wake_word_found = bool(command.lower().startswith(wake_word.lower()))
    if wake_word_found:
        logging.debug(f'Assistant activated by wake word.')
    else:
        logging.info(f'Assistant not activated by wake word.')
    return wake_word_found

    Check if wake word is in param command.

    :param command: str
    :return: is_triggered: bool
    
Check if wake word is in param command.
Check if wake word is in param command .
def check_for_wake_word(command: str):
    wake_word: str = ASSISTANT_SETTINGS.get('Wake Word')
    logging.debug(f'Searching for wake word ({wake_word}) in command ({command})')
    wake_word_found = bool(command.lower().startswith(wake_word.lower()))
    if wake_word_found:
        logging.debug(f'Assistant activated by wake word.')
    else:
        logging.info(f'Assistant not activated by wake word.')
    return wake_word_found
def check_for_wake_word ( command : str ) : wake_word : str = ASSISTANT_SETTINGS . get ( 'Wake Word' ) logging . debug ( f'Searching for wake word ({wake_word}) in command ({command})' ) wake_word_found = bool ( command . lower ( ) . startswith ( wake_word . lower ( ) ) ) if wake_word_found : logging . debug ( f'Assistant activated by wake word.' ) else : logging . info ( f'Assistant not activated by wake word.' ) return wake_word_found
Check if wake word is in param command.
Check if wake word is in param command .
"""
    Check if wake word is in param command.

    :param command: str
    :return: is_triggered: bool
    """
None
command
str
None