A simple voice command recorder using Python, Tkinter, and Speech Recognition. This application listens for voice commands, recognizes them using Google Speech Recognition, and executes corresponding system commands like opening Notepad or Calculator.
- π Voice Recognition: Uses Google Speech Recognition to convert speech to text.
- π₯ System Commands Execution: Opens Notepad, Calculator, or performs shutdown/restart based on voice input.
- π Graphical User Interface (GUI): Built with Tkinter for easy interaction.
- π Multithreading Support: Ensures smooth recording without freezing the interface.
git clone https://github.com/your-username/voice-command-recorder.git
cd voice-command-recorderEnsure you have Python installed, then run:
pip install -r requirements.txtDependencies:
tkinter(for GUI)speechrecognition(for speech processing)numpy(for audio processing)sounddevice(for recording audio)
python voice_command.py- Click the Record button and speak your command.
- The app records your voice for 5 seconds.
- Google Speech Recognition processes the audio.
- The recognized command is displayed and executed if valid.
| Command | Action |
|---|---|
| "Notepad" | Opens Notepad |
| "Calculator" / "Calc" | Opens Calculator |
| "Shutdown" | Shuts down the system |
| "Restart" | Restarts the system |
πΉ Coming Soon!
- Requires an internet connection for Google Speech Recognition.
- Background noise may affect recognition accuracy.
Feel free to fork the repository and submit a pull request! Contributions are always welcome.
This project is licensed under the MIT License.
π‘ Star this repo if you found it useful! π