Skip to content

yolo102938/Python-Computer-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Computer Assistant 💻

Welcome to the Python Computer Assistant project! This project is a voice-controlled computer assistant built using Python. The assistant allows you to execute various commands using voice input and interact with your computer in a fun and convenient way.

Prerequisites

Before running the Python Computer Assistant, make sure you have the following installed on your system:

  • Python 3.x
  • The required Python packages: winsound, speech_recognition, pyautogui, requests, g4f, pyttsx3, ctypes, sys, sqlite3, and pygame.

You can install the necessary packages using pip. For example:

pip install speech_recognition pyautogui requests g4f pyttsx3 pygame

Please note that some parts of the project might be platform-specific and tested on Windows. Adjustments may be needed for other operating systems.

Getting Started

  1. Clone this repository to your local machine.
git clone https://github.com/yourusername/python-computer-assistant.git
cd python-computer-assistant
  1. Run the main.py file to start the Python Computer Assistant.
python main.py

Features

Voice Commands

The Python Computer Assistant currently supports the following voice commands:

  • FreeStyle: Without a special command, the assistant will use the g4f API to try and execute your request.
    If the request is not meant to be a CMD command, the assistant will figure it out and make a google search of the query.

  • Take a Screenshot: Capture a screenshot of the current screen.

  • Live Write a Code: Interactively write code based on your voice input. The code will be typed in real-time.

  • Write a Code: Write code based on your voice input. The code will be saved to a text file and opened with Notepad.

  • Tell Me a Joke: Get a random joke and display it in Notepad.

  • Search Something: Perform a Google search for your specified query.

  • Google Search: Perform a Google search for your specified query.

  • Chat: Interact with a ChatGPT API. The assistant will open Notepad and display the generated response.

  • Close: Close the currently active tab.

  • Connect Bluetooth: Connect Bluetooth devices using the BluetoothConnect module.

  • Netflix Search: Search for content on Netflix.

  • Netflix Login: Log in to Netflix.

  • Netflix First: Open the first Netflix show or movie.

Additional Features

  • Text-to-Speech: The assistant can read out responses using the pyttsx3 library.

  • Database Integration: Store executed commands in a local SQLite database for future use.

Customize the Assistant

Feel free to modify the assistant to suit your needs. You can extend its capabilities by adding new voice commands or integrating with other APIs.

Acknowledgments

Support

If you encounter any issues or have questions, please create an issue in the repository and I will be happy to help.


Thank you for choosing the Python Computer Assistant! We hope this assistant will enhance your computer experience and make it more enjoyable and efficient. Happy coding!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages