This repository contains the source code and assets for creating a basic virtual assistant in Python. The virtual assistant can perform various tasks such as responding to voice commands, fetching information, and interacting with basic applications.
-
Python Script
main.py: The main script for running the virtual assistant.
-
Assets
icon.ico: Icon file used for the virtual assistant application..gitignore: Specifies files to ignore when using Git version control.requirements.txt: Lists the Python dependencies needed to run the virtual assistant.
- main.py: This script contains the core logic for the virtual assistant. It includes functionality to take voice input, process commands, and provide appropriate responses or actions. The virtual assistant may utilize libraries for text-to-speech, speech recognition, and API integrations to execute commands.
-
icon.ico: An icon file used for branding the virtual assistant application, especially useful when creating an executable version of the assistant.
-
.gitignore: A configuration file used to specify which files and directories should be ignored by Git. This is helpful to avoid tracking unnecessary files, such as temporary files and virtual environments.
-
requirements.txt: A text file listing all the required Python libraries that need to be installed to run the virtual assistant. You can install these dependencies using the following command:
pip install -r requirements.txt
To create an executable file for the virtual assistant, use the following command:
pyinstaller -F -w -i icon.ico main.pyTo run the virtual assistant, make sure you have Python installed and have installed all the necessary dependencies listed in requirements.txt. Then, run the main script using the command:
python main.pyEnsure that you have a microphone connected and configured properly to use the voice commands effectively.
- Python 3.x
- Required Python libraries are specified in
requirements.txtand can be installed usingpip.