Skip to content

🧠Nexus-AI is a voice-powered personal diary and AI mentor. Speak your day, reflect through intelligent insights, save memories, and train with personalized AI role models. Built with Flask and OpenRouter for deep self-awareness, emotional clarity, and personal growth.

Notifications You must be signed in to change notification settings

varunks04/Nexus-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ™οΈ JARVIS AI Diary

An intelligent personal diary that talks back to you!

JARVIS AI Diary is a smart diary application that understands your voice, responds intelligently, and helps you analyze your thoughts and emotions. Just like Tony Stark's AI assistant JARVIS from the movies, this system can have conversations with you, remember what you say, and provide insights about your mental state and daily experiences. Screenshot 2025-06-18 220036

Perfect for:

  • πŸ“ Daily journaling with voice input
  • 🧠 Self-reflection and emotional analysis
  • πŸ’¬ Having intelligent conversations about your day
  • πŸ“Š Tracking mood patterns and personal growth
  • πŸ” Searching through your diary history

✨ What Can JARVIS Do?

πŸ—£οΈ Smart Voice Recording

  • Talk to Your Diary: Simply speak and JARVIS will listen, understand, and respond
  • Auto-Stop Recording: Automatically stops when you pause, restarts when you speak again
  • Voice Conversations: Have actual conversations with your AI assistant
  • Multiple Voice Options: Choose between male and female voices
  • Customizable Speech: Adjust voice speed and volume to your preference
  • Session Greetings: JARVIS greets you when you start but won't repeat greetings unnecessarily Screenshot 2025-06-18 220300

πŸ€– Intelligent AI Assistant

  • Smart Responses: JARVIS understands context and responds meaningfully to your entries
  • Emotional Analysis: Analyzes your mood and emotional patterns from your diary entries
  • Personal Insights: Provides psychological insights and identifies key themes in your thoughts
  • Conversation Memory: Remembers your previous conversations for continuity
  • Multiple AI Brains: Uses advanced AI models like GPT-3.5, Google Gemini, and Claude for best responses
  • Customizable Personality: You can adjust how JARVIS talks and behaves

πŸ“ Flexible Writing Methods

  1. Voice Recording - Talk naturally and JARVIS will transcribe and respond
  2. Text Writing - Type your entries directly with optional voice input
  3. Memory Analysis - Deep psychological analysis of your thoughts and patterns
  4. Quick Notes - Fast entry system for brief thoughts Screenshot 2025-06-18 220351

πŸŽ›οΈ Voice Settings Panel

  • Gender Selection: Choose between male and female AI voices
  • Speed Control: Adjust how fast JARVIS speaks (80-250 words per minute)
  • Volume Control: Set voice output level (0-100%)
  • Test Voice: Preview your settings before saving
  • Real-time Updates: Changes apply immediately to all voice feedback

οΏ½ Smart Diary Management

  • Automatic Saving: Every entry is automatically saved with timestamp
  • Intelligent Search: Find entries by content, date, or type
  • Entry Organization: Filter by voice records, text entries, or analysis sessions
  • Edit Anytime: Modify or delete any entry
  • Daily Files: Entries organized by date for easy browsing

πŸ“Š Export Your Data

  • PDF Reports: Beautiful formatted documents of your diary entries
  • JSON Data: Complete data backup with all metadata
  • Plain Text: Simple text files for easy sharing
  • Date Filtering: Export specific time periods
  • Custom Selection: Choose which types of entries to include

Screenshot 2025-06-18 220501

�️ How to Navigate the Interface

The JARVIS interface uses a futuristic design inspired by sci-fi movies, but don't worry - it's easy to use! Here's what each section does:

Main Dashboard (Home Page)

  • Central Hub: Your starting point with access to all features
  • Status Indicators: Shows if your microphone and voice systems are working
  • Quick Navigation: Buttons to jump to any feature
  • System Greeting: JARVIS will greet you when you first visit

Neural Record Interface (Voice Diary)

  • Voice Recording: Click "Start Recording" to begin talking to JARVIS
  • Auto-Detection: Automatically starts/stops recording based on your speech
  • Live Conversation: JARVIS responds immediately to what you say
  • Session Management: Maintains conversation context during your session
  • One-Time Greeting: JARVIS greets you once per session, then focuses on responses

Compose Interface (Text Diary)

  • Text Editor: Write your thoughts directly
  • Voice Input Button: Add voice recordings to text entries
  • AI Analysis: Get instant feedback on your writing
  • Save & Continue: Entries automatically saved with analysis

Archive Interface (Your Diary History)

  • Entry Browser: See all your diary entries organized by date
  • Search Function: Find specific entries by typing keywords
  • Filter Options: Show only voice recordings, text entries, or analysis sessions
  • Edit/Delete: Modify or remove entries with simple buttons
  • Pagination: Navigate through multiple pages of entries

Export Interface (Save Your Data)

  • Format Selection: Choose PDF (formatted), JSON (data), or TXT (simple text)
  • Date Range: Select specific time periods to export
  • Entry Types: Include only the types of entries you want
  • Download: Get your diary data as a file on your computer

Screenshot 2025-06-18 220501

Bio & Settings Interface (Customize JARVIS)

  • Personal Profile: Tell JARVIS about yourself for better responses
  • Voice Settings: Choose voice gender, speed, and volume
  • AI Personality: Customize how JARVIS talks and behaves
  • Test Features: Try voice settings before saving Screenshot 2025-06-18 220633 Screenshot 2025-06-18 220716

πŸš€ Complete Installation Guide

What You Need Before Starting

  • A Computer: Windows, Mac, or Linux
  • Internet Connection: For AI features and initial setup
  • Microphone: Any microphone or headset for voice features
  • Web Browser: Chrome, Firefox, Safari, or Edge

Step 1: Install Python

Python is the programming language that runs JARVIS.

Windows Users:

  1. Go to python.org
  2. Download Python 3.8 or newer
  3. Run the installer and CHECK "Add Python to PATH"
  4. Click "Install Now"

Mac Users:

  1. Go to python.org
  2. Download Python 3.8 or newer
  3. Run the installer

Linux Users:

sudo apt update
sudo apt install python3 python3-pip

Step 2: Get the JARVIS Code

  1. Download the JARVIS AI Diary files to your computer
  2. Extract them to a folder (like Documents/jarvis-ai-diary)
  3. Remember where you put this folder!

Step 3: Get Your AI API Key

JARVIS needs access to AI services to be intelligent. You'll need an OpenRouter API key:

  1. Visit OpenRouter.ai
  2. Create a free account
  3. Go to "Keys" section
  4. Generate a new API key
  5. Copy the key (it looks like: sk-or-v1-abc123...)

Cost: OpenRouter offers free credits to start, then very low costs (usually under $1 for months of diary use)

Step 4: Install Required Programs

Open Command Prompt/Terminal:

  • Windows: Press Win + R, type cmd, press Enter
  • Mac: Press Cmd + Space, type Terminal, press Enter
  • Linux: Press Ctrl + Alt + T

Navigate to your JARVIS folder:

cd Documents/jarvis-ai-diary
# (replace with wherever you put the files)

Install Python packages:

pip install -r requirements.txt

If that doesn't work, try:

pip3 install -r requirements.txt

Step 5: Configure Your API Key

  1. In your JARVIS folder, create a file called .env
  2. Open it with Notepad (Windows) or TextEdit (Mac)
  3. Add these lines:
SECRET_KEY=your-secret-key-12345
OPENROUTER_API_KEY=sk-or-v1-your-actual-api-key-here
  1. Replace your-actual-api-key-here with your real OpenRouter key
  2. Save the file

Step 6: Install FFmpeg (Recommended for Better Audio)

FFmpeg helps with audio processing for better voice quality.

Windows (Easy Method):

winget install FFmpeg

Windows (Manual Method):

  1. Go to ffmpeg.org/download.html
  2. Download FFmpeg for Windows
  3. Extract to C:\ffmpeg
  4. Add C:\ffmpeg\bin to your system PATH

Mac:

brew install ffmpeg

Linux:

sudo apt install ffmpeg

Step 7: Run JARVIS

In your command prompt/terminal (still in the JARVIS folder):

python app.py

You should see:

* Running on http://127.0.0.1:5000
* Debug mode: off

Step 8: Open JARVIS

  1. Open your web browser
  2. Go to: http://localhost:5000
  3. You should see the JARVIS interface!

πŸŽ‰ Success! JARVIS is Running

πŸ”§ Required Environment Variables (.env file)

Create a .env file in your JARVIS folder with these settings:

# Required API Key
OPENROUTER_API_KEY=sk-or-v1-your-key-here

# Security Key (can be any random string)
SECRET_KEY=your-random-secret-key-123

# Optional Settings
DEBUG=False
FLASK_ENV=production

Where to get your API key:

  • OpenRouter API: openrouter.ai - Sign up, go to "Keys", create new key
  • Cost: Free tier available, then pay-per-use (very affordable for personal diary use)

πŸ“‹ What Gets Installed (Dependencies)

When you run pip install -r requirements.txt, these programs are installed:

Core Framework

  • flask - The web server that runs JARVIS
  • python-dotenv - Reads your API key from the .env file
  • Werkzeug - Helps Flask run smoothly

AI & Smart Features

  • requests - Connects to AI services for intelligent responses
  • openai - Backup AI service

Voice & Audio

  • SpeechRecognition - Converts your voice to text
  • pyttsx3 - Converts text to speech (JARVIS's voice)
  • pydub - Processes audio files

Document Creation

  • reportlab - Creates PDF exports of your diary

Don't worry about these technical details - the installation handles everything automatically!

🎯 How to Use JARVIS - Complete Guide

First Time Setup

  1. Visit the Bio & Settings page (click "Bio & Prompts" from main menu)
  2. Tell JARVIS about yourself - Add your name, interests, background
  3. Set your voice preferences - Choose male/female voice, adjust speed and volume
  4. Test your voice settings - Click "Test Voice" to hear how JARVIS will sound
  5. Customize JARVIS's personality - Tell it how you want it to respond to you

Daily Voice Diary

  1. Go to "Neural Record" page
  2. Click "Start Recording" - JARVIS will greet you (only once per session)
  3. Speak naturally - Talk about your day, thoughts, feelings, or ask questions
  4. JARVIS responds intelligently - It will analyze what you said and respond
  5. Continue the conversation - Keep talking, JARVIS maintains context
  6. Auto-save - Everything is automatically saved with timestamps

Tips for better voice interaction:

  • Speak clearly in a quiet environment
  • Pause briefly between thoughts for auto-detection
  • You can have full conversations - ask JARVIS questions!
  • JARVIS remembers your conversation context during the session

Writing Text Entries

  1. Go to "Compose" page
  2. Type your thoughts - Write about anything on your mind
  3. Optional voice input - Click microphone to add voice recordings
  4. Submit for analysis - JARVIS analyzes your writing and provides insights
  5. Review AI feedback - Read JARVIS's psychological analysis and suggestions

Browsing Your Diary History

  1. Visit "Archive" page
  2. Browse by date - See entries organized chronologically
  3. Search for specific content - Type keywords to find relevant entries
  4. Filter by type - Show only voice recordings, text entries, or analyses
  5. Edit or delete - Modify entries or remove ones you don't want
  6. Navigate pages - Use pagination for large diary collections

Memory Analysis Feature

  1. Go to "Memory Scan" page
  2. Describe something you want analyzed - Past events, recurring thoughts, patterns
  3. Get deep psychological insights - JARVIS provides detailed analysis
  4. Save insights - Analysis becomes part of your diary record

Exporting Your Diary

  1. Visit "Export" page
  2. Choose date range - Select specific time periods
  3. Pick format:
    • PDF - Beautiful formatted document for printing/sharing
    • JSON - Complete data backup with all metadata
    • TXT - Simple text file for easy reading
  4. Select entry types - Include voice, text, or analysis entries
  5. Download your file - Save to your computer

Voice Settings Panel

Access through "Bio & Prompts" page:

  1. Gender Selection:

    • Choose male or female voice for JARVIS
    • Click the radio button for your preference
  2. Speed Control:

    • Drag slider from 80-250 words per minute
    • Slower = more natural, Faster = more efficient
  3. Volume Control:

    • Adjust from 0-100% volume level
    • Set comfortable listening level
  4. Test Voice:

    • Click "Test Voice Settings" to preview
    • Hears sample with your current settings
    • Adjust settings and test again until perfect

Understanding the Interface Terms

Don't be intimidated by the sci-fi terminology! Here's what everything means:

  • Neural Record = Voice diary recording
  • Quantum Input = Quick note entry system
  • Memory Scan = Deep thought analysis
  • Bio Matrix = Your personal profile settings
  • Neural Archive = Your diary history browser
  • Consciousness Export = Save your diary data
  • Data Sync = Backup and synchronization tools
  • Neural Interface = The main system dashboard

All the fancy names just mean: record voice, write text, analyze thoughts, save data, and customize settings!

πŸ”§ Available Features & Pages

Main Dashboard (http://localhost:5000/)

  • Central navigation hub
  • System status indicators
  • Quick access to all features
  • JARVIS greeting and introduction

Voice Features

  • Neural Record (/neural-record) - Voice conversation interface
  • Speech Settings - Configure voice gender, speed, volume in Bio page
  • Auto-recording - Smart start/stop based on speech detection
  • Session greetings - JARVIS greets once per session, then provides status updates

Writing Features

  • Compose (/compose) - Text diary entry with optional voice input
  • Auto-save - Entries saved automatically with timestamps
  • AI Analysis - Intelligent feedback on all entries

Management Features

  • Archive (/archive) - Browse, search, edit, and delete entries
  • Export (/export) - Download diary data in PDF, JSON, or TXT format
  • Bio & Settings (/bio) - Personal profile and voice configuration

Analysis Features

  • Memory Scan (/memory-scan) - Deep psychological analysis of thoughts
  • Quantum Input (/quantum-input) - Quick structured note entry
  • Data Sync (/sync) - Backup and synchronization tools

API Endpoints (For Advanced Users)

  • POST /transcribe_and_analyze_audio - Process voice recordings
  • POST /chat - Interactive conversation with JARVIS
  • POST /speak-greeting - Generate personalized greetings
  • POST /speak-status - Voice status updates
  • POST /test-voice - Test voice settings
  • POST /save-voice-settings - Save voice preferences
  • GET /system-status - Check audio capabilities
  • POST /update-profile - Save profile changes
  • DELETE /delete-entry/<id> - Remove diary entries

🎨 Understanding the Interface Design

JARVIS uses a futuristic interface inspired by sci-fi movies, but it's designed to be intuitive:

Visual Elements

  • Cyan Blue Colors - Main buttons and important text
  • Animated Backgrounds - Moving grid patterns for visual appeal
  • Glowing Effects - Highlights on interactive elements
  • Smooth Transitions - Animations when clicking buttons or typing

Navigation

  • Clear Buttons - Each button clearly labeled with icons and text
  • Consistent Layout - Similar design across all pages
  • Status Indicators - Green for working, red for errors, orange for processing
  • Responsive Design - Works on computers, tablets, and phones

User-Friendly Features

  • Auto-resize Text Areas - Text boxes grow as you type
  • Character Counters - Shows how much you've written
  • Loading Indicators - Shows when JARVIS is thinking/processing
  • Error Messages - Clear explanations if something goes wrong
  • Success Confirmations - Visual feedback when actions complete

❓ Common Problems & Solutions

JARVIS Won't Start

Problem: Error when running python app.py Solutions:

  1. Make sure you're in the correct folder: cd path/to/jarvis-ai-diary
  2. Check Python is installed: python --version (should show 3.8+)
  3. Install requirements again: pip install -r requirements.txt
  4. Check your .env file exists and has your API key

Voice Recording Issues

Problem: Microphone not working or poor transcription Solutions:

  1. Browser permissions: Allow microphone access when prompted
  2. Check microphone: Test in other apps (like Voice Recorder)
  3. Quiet environment: Reduce background noise
  4. Speak clearly: Pause briefly between sentences
  5. Check audio settings: Ensure correct microphone is selected in system settings

JARVIS Doesn't Respond Intelligently

Problem: No AI responses or generic responses Solutions:

  1. Check API key: Verify your OpenRouter key in .env file
  2. Internet connection: Ensure stable internet for AI services
  3. API credits: Check your OpenRouter account has available credits
  4. Wait a moment: AI responses can take 2-10 seconds

Voice Settings Not Working

Problem: Can't change voice or voice settings don't apply Solutions:

  1. Test voice button: Use the test feature to verify settings
  2. Browser audio: Check browser isn't muted
  3. System audio: Verify system speakers/headphones work
  4. Save settings: Make sure to save changes in Bio & Settings page

Export/Save Issues

Problem: Can't export diary or entries not saving Solutions:

  1. File permissions: Ensure JARVIS folder isn't read-only
  2. Disk space: Check you have sufficient storage space
  3. Antivirus: Some antivirus may block file creation
  4. Admin rights: Try running command prompt as administrator

Page Loading Problems

Problem: Blank pages or "Can't connect" errors Solutions:

  1. Check server: Ensure you see "Running on http://127.0.0.1:5000" in terminal
  2. Correct URL: Use http://localhost:5000 not https://
  3. Firewall: Allow Python through Windows firewall if prompted
  4. Port conflict: If port 5000 is busy, stop other applications

Installation Problems

Problem: pip install fails or packages won't install Solutions:

  1. Update pip: Run python -m pip install --upgrade pip
  2. Try pip3: Use pip3 install -r requirements.txt
  3. Admin rights: Run command prompt as administrator
  4. Python PATH: Ensure Python was installed with "Add to PATH" checked

FFmpeg Audio Issues

Problem: Audio conversion errors Solutions:

  1. Install FFmpeg: Follow the FFmpeg installation steps above
  2. PATH setup: Ensure FFmpeg is added to system PATH
  3. Restart terminal: Close and reopen command prompt after FFmpeg install
  4. Alternative: JARVIS works without FFmpeg, just with reduced audio quality

Getting Help

If problems persist:

  1. Check terminal output: Look for error messages when running JARVIS
  2. Restart everything: Close browser, stop JARVIS, restart both
  3. Update software: Ensure Python and pip are up to date
  4. Clean install: Delete and reinstall requirements if needed

πŸ“ How Your Data is Organized

JARVIS stores your diary entries locally on your computer in an organized structure:

jarvis-ai-diary/                 # Main folder
β”œβ”€β”€ πŸ“± app.py                   # The main program file
β”œβ”€β”€ πŸ“‹ requirements.txt         # List of needed programs
β”œβ”€β”€ πŸ”§ .env                    # Your API key and settings
β”œβ”€β”€ πŸ“– README.md               # This instruction file
β”œβ”€β”€ πŸ“ modules/                # Program components (don't modify)
β”œβ”€β”€ πŸ“ templates/              # Web page designs (don't modify)
β”œβ”€β”€ πŸ“ daily_diary/            # πŸ“š YOUR DIARY ENTRIES ARE HERE
β”‚   β”œβ”€β”€ οΏ½ 18-06-2025.txt     # Today's entries
β”‚   β”œβ”€β”€ οΏ½ 17-06-2025.txt     # Yesterday's entries
β”‚   └── πŸ“„ ...                 # Other daily files
└── πŸ“ uploads/                # Temporary audio files (auto-cleaned)

Your Diary Files

  • Location: daily_diary/ folder
  • File Format: One file per day named DD-MM-YYYY.txt
  • Content: JSON format with all your entries, timestamps, and AI analysis
  • Backup: You can copy the daily_diary folder to backup all your entries

Entry Structure

Each diary entry contains:

{
  "timestamp": "14:30:25",           # When you made the entry
  "type": "voice_record",            # Type: voice, text, analysis, etc.
  "content": "Your diary content...", # What you wrote or said
  "analysis": "AI insights...",      # JARVIS's analysis
  "date": "2025-06-18"              # Entry date
}

πŸ”’ Privacy & Your Data

Your Data Stays Private

  • Local Storage Only: All diary entries stored on YOUR computer only
  • No Cloud Upload: JARVIS doesn't send your diary to any cloud service
  • You Control Everything: Edit, delete, or export your data anytime

What Gets Sent to AI Services

  • Only for Analysis: When you ask for AI feedback, that specific text is sent for analysis
  • No Permanent Storage: AI services don't keep copies of your diary entries
  • Anonymized: Your personal identity isn't sent with the text

API Security

  • Encrypted Connection: All AI communication uses secure HTTPS
  • API Key Protection: Your key is stored locally in the .env file
  • No Account Linking: AI services don't know your identity

Keeping Your Diary Secure

  • Backup Regularly: Copy the daily_diary folder to backup your entries
  • Secure Your Computer: Use password protection and keep your computer secure
  • Consider Encryption: For extra security, you can encrypt the JARVIS folder
  • Control Access: Only run JARVIS when you want to use it

πŸ†• Latest Features & Updates

πŸŽ™οΈ New Voice Features

  • βœ… Smart Voice Recording: Automatically starts/stops based on speech detection
  • βœ… Session-Based Greetings: JARVIS greets you once per session, then provides status updates
  • βœ… Voice Configuration Panel: Choose voice gender, adjust speed and volume
  • βœ… Test Voice Feature: Preview voice settings before saving
  • βœ… Improved Voice Feedback: JARVIS speaks for all major operations (export, save, analysis)

πŸ€– Enhanced AI Capabilities

  • βœ… Multiple AI Models: Uses GPT-3.5, Google Gemini, and Claude for best responses
  • βœ… Conversation Context: Maintains context during voice conversations
  • βœ… Improved Analysis: Better psychological insights and emotional pattern detection
  • βœ… Personalized Responses: Customizable AI personality based on your preferences

πŸ–₯️ Interface Improvements

  • βœ… Responsive Design: Works perfectly on all device sizes
  • βœ… Better Error Handling: Clear messages when something goes wrong
  • βœ… Auto-Save Indicators: Visual feedback when entries are being saved
  • βœ… Loading States: Shows when JARVIS is processing your requests
  • βœ… Smooth Animations: Polished transitions and visual effects

πŸ“Š Data Management

  • βœ… Enhanced Export Options: Better formatted PDF, JSON, and TXT exports
  • βœ… Improved Search: Find entries faster with better search functionality
  • βœ… Entry Management: Easy edit and delete operations for all entries
  • βœ… Date Filtering: Filter entries by specific date ranges

πŸ”§ Technical Improvements

  • βœ… Stable Voice Processing: Fixed all audio-related bugs and errors
  • βœ… Better API Integration: More reliable AI service connections
  • βœ… Optimized Performance: Faster loading and response times
  • βœ… Code Quality: Cleaner, more maintainable codebase

οΏ½ Getting Support

First Steps for Problems

  1. Check this README: Most solutions are covered above
  2. Look at terminal output: Error messages help identify issues
  3. Restart JARVIS: Stop the program and run python app.py again
  4. Check your setup: Verify API key and Python installation

Common Quick Fixes

  • Can't access microphone: Allow permissions in browser
  • No AI responses: Check internet connection and API key
  • Pages won't load: Ensure using http://localhost:5000
  • Voice not working: Test system audio and check browser settings

For Technical Users

  • Check Flask server logs in terminal
  • Verify all dependencies installed correctly
  • Ensure Python PATH is configured properly
  • Test individual components if needed

πŸŽ‰ Ready to Start Your AI Diary Journey?

JARVIS AI Diary transforms the way you journal by:

  • πŸ—£οΈ Talking with you instead of just recording
  • 🧠 Understanding your emotions and providing insights
  • πŸ“± Making journaling effortless with voice and auto-save
  • πŸ“Š Helping you grow through AI-powered analysis
  • πŸ”’ Keeping everything private on your own computer

Follow the installation guide above, and within 10 minutes you'll have your own AI diary companion ready to listen, understand, and help you reflect on your thoughts and experiences.

Built with ❀️ for intelligent diary management and AI-powered self-reflection.

About

🧠Nexus-AI is a voice-powered personal diary and AI mentor. Speak your day, reflect through intelligent insights, save memories, and train with personalized AI role models. Built with Flask and OpenRouter for deep self-awareness, emotional clarity, and personal growth.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published