Copy code
pip install SpeechRecognition pyttsx3 geopy psutil requests beautifulsoup4 wolframalpha pyautogui opencv-python pyjokes
git clone https://github.com/username/personal-desktop-assistant.git
cd personal-desktop-assistant
Install the required packages:
Copy code
pip install -r requirements.txt
Run the assistant:
Copy code
python tony.py
The assistant starts listening for your voice commands once you run the script. Ensure your microphone is properly connected and working.
"Open Chrome" - Opens the Google Chrome browser. "Search Wikipedia for Python" - Searches for Python on Wikipedia and reads out the summary. "What's the weather?" - Provides weather information if the API key is correctly set. "Tell me a joke" - Tells a random joke. "Calculate 5 plus 3" - Provides the result of the mathematical operation.
Geolocation Services: Fetches location details and calculates distances. System Information: Retrieves and displays CPU and memory usage data. Web Automation: Automates browser tasks and web scraping.
Feel free to extend the assistant's capabilities by adding more commands and integrating new libraries or APIs. The listen() and speak() functions provide a foundation for adding new functionalities. This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the license terms. Contributions are welcome! Feel free to submit a pull request or open an issue to suggest improvements or report bugs.