import sys  
sys.path = ['', '..'] + sys.path[1:]

import daemon
from assistance_bot import core
from functionality.voice_processing import speaking, listening
from functionality.commands import *

if __name__ == '__main__':
    speaking.setup_assistant_voice(core.ttsEngine, core.assistant)
    while True:
        # start speech recording and speech recognition
        recognized_speech = listening.get_listening_and_recognition_result(
            core.recognizer,
            core.microphone)
        # executing the given command
        execute_command(recognized_speech)

[((10, 4, 10, 66), 'functionality.voice_processing.speaking.setup_assistant_voice', 'speaking.setup_assistant_voice', ({(10, 35, 10, 49): 'core.ttsEngine', (10, 51, 10, 65): 'core.assistant'}, {}), '(core.ttsEngine, core.assistant)', False, 'from functionality.voice_processing import speaking, listening\n'), ((13, 28, 15, 28), 'functionality.voice_processing.listening.get_listening_and_recognition_result', 'listening.get_listening_and_recognition_result', ({(14, 12, 14, 27): 'core.recognizer', (15, 12, 15, 27): 'core.microphone'}, {}), '(core.recognizer, core.microphone\n    )', False, 'from functionality.voice_processing import speaking, listening\n')]