I am trying to build a voice assistant using python. But I have some problems with it.
I have a assistantInputs.py file which is contains words, and main.py which is main program.
Here's my code in assistantInputs.py:
hello = ["hi","hey","hello","greetings"]
Here's my code in main.py :
import assistantInputs as aI
if voice_data in aI.hello:
print("Hey!")
'voice_data' allows me to speak and recognize my voice.
But it is not working. What am I supposed to do? I can't access hello
list.