Junior-AI

🤖 Junior AI Assistant

Junior is a powerful desktop-based AI assistant built in Python, designed to help with everyday tasks using voice commands. It integrates OpenAI, Spotify, WolframAlpha, Google Calendar, Face Recognition, and much more — all from your own system.


✨ Features


📁 Project Structure

junior-ai-assistant/
├── main.py                     # Main script with all functionalities
├── haarcascade_frontalface_default.xml
├── trained_model.yml           # Face recognition model (needs to be trained separately)
├── label_map.json              # Face label mappings
├── junior_memory.json          # Assistant memory file
├── requirements.txt            # List of dependencies
└── README.md

🛠️ Setup Instructions

  1. Clone the Repository
git clone https://github.com/YourUsername/junior-ai-assistant.git
cd junior-ai-assistant
  1. Install Requirements
pip install -r requirements.txt
  1. Set Up API Keys

Update the following placeholders in main.py:

openai.api_key = 'your-openai-api-key'
WOLFRAMALPHA_APP_ID = 'your-wolframalpha-app-id'

SPOTIPY_CLIENT_ID = 'your-spotify-client-id'
SPOTIPY_CLIENT_SECRET = 'your-spotify-client-secret'
SPOTIPY_REDIRECT_URI = 'your-spotify-redirect-uri'
  1. Tesseract OCR Setup

Install Tesseract for image text reading:


📸 Face Recognition Setup

  1. Train your face recognizer using OpenCV LBPH.
  2. Save the trained model as trained_model.yml.
  3. Create label_map.json like:
{ "0": "YourName" }

🗣️ How to Use

Run the assistant:

python main.py

The assistant will:


🧠 Example Voice Commands


🔐 Disclaimer

This project uses multiple APIs and services. Do NOT expose your real API keys or passwords in any public repository.


📄 License

This project is licensed under the MIT License.


👨‍💻 Author

Made with ❤️ by Srajan Jain