This Python program serves as a Speech Recognition and Voice Assistant application. It allows users to interact with their computer using voice commands, performing tasks such as opening applications, searching the web, and retrieving information from Wikipedia.
January 13, 2024
The application recognizes speech commands and performs actions based on the recognized input. It can open applications, search the web, provide Wikipedia summaries, and more. The program is designed for project purposes and includes features like voice feedback and command execution.
- Python 3.x
SpeechRecognition
librarypyttsx3
libraryselenium
librarywikipedia
libraryrequests
libraryopenai
library (optional, for future integration)twilio
library (optional, for SMS notifications)
- Install the required libraries using pip:
pip install SpeechRecognition pyttsx3 selenium wikipedia-api requests openai twilio
- Use commands such as:
"open notepad"
to launch the Notepad application."search about [topic] on Google"
to perform a Google search for the specified topic."tell about [topic]"
to get information from Wikipedia on the given topic.
- For example:
- Say
"open calculator"
to launch the Calculator application. - Say
"tell about Python"
to receive a summary about Python from Wikipedia.
- Say
- Speech Recognition: Converts spoken commands into text for further processing.
- Application Control: Opens specified applications such as Notepad, Calculator, and more.
- Web Search: Executes Google searches based on voice commands and provides results.
- Information Retrieval: Fetches summaries from Wikipedia on various topics.
- Voice Feedback: Uses text-to-speech (TTS) to communicate responses and provide feedback.
- Restricted Words: The application detects and blocks commands containing restricted or sensitive words to prevent misuse.
- SMS Notifications: An optional feature for sending security alerts via Twilio. Currently commented out and not active in the project.
The program will be updated with additional features and improvements, including:
- Enhanced integration with additional APIs for expanded functionality.
- Improved error handling and overall robustness.
- New features and functionalities based on user feedback and needs.
Contributions to enhance the application are encouraged. To contribute:
- Fork the repository.
- Create a feature branch.
- Make your changes and test thoroughly.
- Submit a pull request with a clear description of your changes.
This project is for personal and educational use. If you use or modify the code, please provide appropriate credit.