This is a virtual assistant application that integrates speech recognition, text-to-speech, real-time search, automation, and a graphical user interface (GUI). It is designed to interact with users, perform tasks, and provide intelligent responses based on user queries.
- Speech Recognition: Converts user speech into text for processing.
- Text-to-Speech: Converts text responses into speech for user interaction.
- Real-Time Search: Performs real-time searches using Google and Groq APIs.
- Automation: Handles tasks like opening/closing apps, performing searches, and more.
- Image Generation: Generates images based on prompts using the Hugging Face API.
- GUI: A user-friendly graphical interface built with PyQt5.
- Chatbot: Conversational AI for general queries.
AI-Chatbot/ ├── Backend/ │ ├── Automation.py # Handles automation tasks │ ├── Chatbot.py # Conversational AI chatbot │ ├── ImageGenereation.py # Image generation using Hugging Face API │ ├── Model.py # Decision-making model for query classification │ ├── RealtimeSearchEngine.py # Real-time search functionality │ ├── SpeechToText.py # Converts speech to text │ ├── TextToSpeech.py # Converts text to speech │ └── pycache/ # Compiled Python files │ ├── Frontend/ │ ├── GUI.py # GUI implementation using PyQt5 │ ├── Files/ # Temporary data files │ ├── Graphics/ # Graphical assets (icons, animations, etc.) │ └── pycache/ # Compiled Python files │ ├── Data/ │ ├── ChatLog.json # Stores chat history │ ├── Voice.html # HTML file for speech recognition │ └── speech.mp3 # Temporary file for generated speech │ ├── venv/ # Virtual environment (excluded from Git) ├── Main.py # Entry point of the application ├── .env # Environment variables (excluded from Git) ├── Requirements.txt # Python dependencies └── README.txt # Project documentation
-
Clone the repository: git clone https://github.com/parth171106/AI-Bot.git cd AI-Chatbot
-
Create and activate a virtual environment: python -m venv venv venv\Scripts\activate # On Windows
-
Install dependencies: pip install -r Requirements.txt
-
Set up environment variables:
- Create a
.envfile in the root directory. - Add the following: API_KEY=your_api_key ASSISTANT_NAME=YourPreferredName USER_NAME=YourName
- Create a
-
Run the application: python Main.py
-
Interact with the assistant via the GUI:
- Use the microphone to give voice commands.
- View responses in the chat window.
- Python: Core programming language.
- PyQt5: For building the graphical user interface.
- edge-tts: For text-to-speech conversion.
- Hugging Face API: For image generation.
- Groq API: For chatbot and real-time search functionality.
- Enhance error handling for better user experience.
- Optimize the decision-making model for faster query classification.
- Add more automation tasks and integrations.
- Improve documentation and testing.
Contributions are welcome! Feel free to fork the repository and submit a pull request.
For any inquiries or issues, please contact:
- Name: Parth Khunt
- Email: alpha.parth009@gmail.com