src/Tools/process_command.py
def listen_for_commands():
    """
    Listen for command;
    use Google speech detection to extract command;
    then return command

    :return: command: str
    """
    with sr.Microphone() as source:
        print_custom_intro()
        voice = listener.listen(source)
        command: str = listener.recognize_google(voice)
        return command

    Listen for command;
    use Google speech detection to extract command;
    then return command

    :return: command: str
    
Listen for command;
use Google speech detection to extract command;
then return command
Listen for command ; use Google speech detection to extract command ; then return command
def listen_for_commands():
    with sr.Microphone() as source:
        print_custom_intro()
        voice = listener.listen(source)
        command: str = listener.recognize_google(voice)
        return command
def listen_for_commands ( ) : with sr . Microphone ( ) as source : print_custom_intro ( ) voice = listener . listen ( source ) command : str = listener . recognize_google ( voice ) return command
Listen for command;
use Google speech detection to extract command;
then return command
Listen for command ; use Google speech detection to extract command ; then return command
"""
    Listen for command;
    use Google speech detection to extract command;
    then return command

    :return: command: str
    """
None