- python3
- playsound python3
- pyobjc
On Mac:
pip3 install -r requirements.txt
On Windows or Linux:
pip install -r requirements.txt
Go to src/alysa/Command/defaultcommand.py Add your own function:
- need a parameter request:
request = {"auto" : new-string, "raw" : old-string}
- new-string is the string that we removed all useless words, and old-string is the whole input
- Then add information of your function in src/alysa/Command/tags.json
- Then add your function in src/alysa/Config/commandlist.py
Example: defaultcommand.py:
def saySomething(request):
string = request["auto"] # take the string that removed all useless words
print(string) #
commandlist.py:
from alysa.Command import defaultcommand
list_command = [
("src/alysa/Command/tags.json", defaultcommand.saySomething, "saySomething")
]
./run.sh
or
run.bat