Bot that executes your commands.
Project created for "Natural Language Processing" classes.
- Python 3.8.7
- Packages
- nltk 3.5
- SpeechRecognition 3.8.1
- Open cmd
- cd "project_directory_full_path"
- python
main.py
[FLAG]
- Flags:
- -k or --keyboard (default) -> bot reads user input
- -v or --voice -> bot listens user commands
Voice mode is slower because it sends requests to Google Speech Recognition API.
Additionally, commands must be pronounced loud and clear (but it's more useful and funnier).
Uncomment line #9 in main file go to "All Packages" card and download:
- words
- punkt
- averaged_perceptron_tagger
After that, You can delete or comment line #9.
After first run, bot will create file 'Softwares.txt' and directory 'Documents' with 'README.txt' file. You will find some instructions there, but I'll give some examples here:
-
Softwares.txt should looks like this: chrome|C:\Program Files\Google\Chrome\Application\chrome.exe
steam|C:\Program Files (x86)\Steam\Steam.exe
..
code|C:\Users\User\AppData\Local\Programs\Microsoft VS Code\Code.exe
settings|%windir%\System32\Control.exeetc. (pattern: one-part alias + '|' character + full path to the executable)
-
./Documents/ directory should contains: one-part named files with any supported extension
If everything is done, bot is ready to work!
- Avaible commands:
- open, execute, run -> run
software
- open, show, read -> open
document
- open, show, go -> open
url
- update -> read 'Software.txt' and update bot data
- more commands in near future :)
- open, execute, run -> run
- Example commands:
- Normal:
- open
chrome
- update
- show
myfile
- open
- More 'realistic':
- Could you open my favourite
chrome
app? - What's about executing
code
editor? - You should open
settings
and go to website named:stackoverflow.com
.
- Could you open my favourite
- Normal:
Have fun and feel free to modify!