A simple Python voice recognition tool that listens for commands like "lock" or "stop" and performs system actions such as locking the workstation.
Built using speech_recognition and tkinter for simple message dialogs.
src/
└── main.py # Main script that handles voice recognition and commands
requirements.txt # Python dependencies
venv/ # Virtual environment (optional)
run.bat # Shortcut to launch the project
.gitignore # Git ignore rules
README.md # This file
- Windows 10 or later
- Python 3.8+
- A working microphone
- Internet connection (for Google Speech Recognition)
Install dependencies with:
pip install -r requirements.txt- Activate your virtual environment (optional):
venv\Scripts\activate
- Run the program:
or use:
python src/main.py
run.bat
| Command | Action |
|---|---|
lock |
Locks your Windows workstation |
lockdown |
Same as lock |
stop / quit |
Stops the program with message |
More Comming soon... |
- This tool currently supports Windows only.
- Internet connection is required for speech recognition (Google API).
- To stop the script, say “stop” or press
Ctrl + Cin the terminal.
Developed by Zayan Muhammed 🛠️