Skip to content

salahuddingfx/NYRA_AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– NYRA AI - Neural Your Reality Assistant

Typing SVG

NYRA Banner

Python License GitHub stars GitHub forks GitHub issues

โšก Private โ€ข ๐ŸŽฏ Powerful โ€ข ๐ŸŽญ Personal

Features โ€ข Installation โ€ข Usage โ€ข Documentation โ€ข Contributing


๐ŸŒŸ Overview

NYRA (Neural Your Reality Assistant) is a complete, production-level, local-first AI operating system designed to be your personal desktop partner. Unlike traditional chatbots, NYRA integrates deeply with your system, offering voice interaction, intelligent automation, memory management, and an expressive anime avatar.

Core Identity

  • Name: NYRA
  • Type: Local AI Partner Assistant
  • Voice: Female, cute, expressive (via TTS)
  • Avatar: Anime-style (VTuber/VRM compatible)
  • Personality: Calm, Intelligent, Supportive, Slightly Playful
  • Languages: English, Banglish, Bengali (เฆฌเฆพเฆ‚เฆฒเฆพ)
  • Privacy: 100% local-first, no secret tracking

โœจ Highlights

๐Ÿง  Smart AI ๐ŸŽค Voice Enabled ๐ŸŽญ Anime Avatar ๐Ÿ”’ 100% Private
Powered by Gemini 2.0 Offline + Online TTS/STT VRM Model Support Local-First Design

๐Ÿš€ Features

๐Ÿง  AI Brain
  • โœ… Gemini Integration: Uses Google's Gemini 2.0 Flash models
  • โœ… Automatic Model Routing: Primary, fallback, and reasoning models
  • โœ… Context Memory: Short-term (RAM) + Long-term (ChromaDB)
  • โœ… Multi-language: Detects English, Banglish, and Bengali
  • โœ… Smart Responses: Context-aware conversations
๐ŸŽค Voice Interface
  • โœ… Offline STT: VOSK for speech recognition
  • โœ… Expressive TTS: pyttsx3 (offline) + Gemini TTS (online)
  • โœ… Hands-free Operation: Full voice command support
  • โœ… Multi-language Voice: English, Bengali, Banglish
  • โœ… Wake Word Detection: Custom activation phrase
๐ŸŽญ Avatar System
  • โœ… Anime Character: VRM model support (VTuber-ready)
  • โœ… Emotion Engine: Reacts to user sentiment in real-time
  • โœ… Lip Sync: Audio-driven mouth animations
  • โœ… Idle Animations: Breathing, blinking, subtle movements
  • โœ… Customizable: Change avatar expressions and states
๐Ÿ–ฅ๏ธ System Control
  • โœ… Application Management: Open/close apps with voice or text
  • โœ… System Commands: Shutdown, restart, sleep, lock
  • โœ… File Operations: Create, move, delete files/folders
  • โœ… System Monitoring: Real-time CPU, RAM, disk usage
  • โœ… Smart Automation: Schedule tasks and reminders
๐ŸŒ Services & Integrations
  • โœ… Web Search: Google search integration
  • โœ… Weather: Real-time weather via wttr.in
  • โœ… WhatsApp: Browser automation for messaging
  • โœ… Notes & Reminders: Local JSON storage
  • โœ… PDF Generation: Create documents from text
  • โœ… Email: Send/receive emails (coming soon)
๐Ÿ’ป Coding Tools
  • โœ… Code Writer: Generate code in any language
  • โœ… Debugger: Analyze errors and suggest fixes
  • โœ… Code Explainer: Understand complex code
  • โœ… Project Analyzer: Analyze entire codebases
  • โœ… Refactoring: Improve code quality
๐Ÿ‘๏ธ Vision Capabilities
  • โœ… Screen Capture: Take screenshots on command
  • โœ… OCR: Extract text from screen (Tesseract)
  • โœ… Image Analysis: Understand images (coming soon)

๐Ÿ“ธ Screenshots

Main Dashboard

Dashboard

Voice Interaction

Voice

Avatar Hologram

Avatar


๐ŸŽฏ Use Cases

  • ๐Ÿ’ผ Productivity: Automate daily tasks, manage files, set reminders
  • ๐ŸŽ“ Learning: Code assistant, research helper, language translation
  • ๐ŸŽฎ Entertainment: Tell jokes, play music, chat casually
  • ๐Ÿ”ง Development: Debug code, write documentation, analyze projects
  • ๐ŸŒ Communication: Send messages, check weather, web search

  • Error Detection: Automatically find errors on screen

๐Ÿ˜„ Personality

  • Humor Engine: Light jokes and playful responses
  • Emotion Detection: Understands user mood
  • Adaptive Responses: Adjusts tone based on context

๐Ÿ“ฆ Installation

Prerequisites

  • Python 3.11+ (Python 3.13 recommended)
  • Windows OS (tested on Windows 11)
  • Gemini API Key (Get it here)

Step 1: Clone Repository

git clone <your-repo-url>
cd NYRA_OS

Step 2: Create Virtual Environment

python -m venv venv
venv\Scripts\activate

Step 3: Install Dependencies

pip install -r requirements.txt

Step 4: Configure Environment

Open .env and add your API key:

GEMINI_API_KEY=YOUR_ACTUAL_API_KEY_HERE
USER_NAME=YourName
AI_NAME=NYRA

Step 5: Optional Assets

  • VOSK Model: Download vosk-model-small-en-us-0.15 and extract to model/
  • VRM Avatar: Place your .vrm file at avatar/assets/nyra.vrm
  • Tesseract OCR: Install from here for vision features

๐ŸŽฎ Usage

Launch NYRA

python main.py

First Boot

You'll see a cyberpunk-style boot sequence:

  1. "Initializing NYRA..."
  2. "Loading memory modules..."
  3. "Neural link established..."
  4. Dashboard opens

Interface

  • Top Bar: Time (12-hour AM/PM), Status, Mood
  • Left Panel: System stats (CPU, RAM, Disk)
  • Center: Avatar hologram with emotion display
  • Right Panel: Communication log (chat history)
  • Bottom Bar: Text input + Voice button

Commands

Type or speak:

  • "What time is it?" โ†’ Shows current time
  • "Tell me a joke" โ†’ Returns a programming joke
  • "Open browser" โ†’ Launches default browser
  • "Weather" โ†’ Gets current weather
  • "Search for Python tutorials" โ†’ Opens Google search
  • "Write Python code for sorting" โ†’ Generates code
  • "Shutdown" โ†’ Powers off PC (use carefully!)

Note on Voice Commands: Text input works 100%. Voice commands require a microphone and Google Speech API access. If voice doesn't work, just use text inputโ€”all features work identically! See VOICE_SETUP_GUIDE.py for troubleshooting.


๐Ÿ—๏ธ Architecture

NYRA_OS/
โ”œโ”€โ”€ main.py              # Entry point
โ”œโ”€โ”€ boot/                # Startup loader
โ”œโ”€โ”€ core/                # Brain, orchestrator, language, emotion
โ”œโ”€โ”€ ui/                  # PyQt6 dashboard and widgets
โ”œโ”€โ”€ voice/               # STT (VOSK) and TTS (pyttsx3)
โ”œโ”€โ”€ avatar/              # VRM engine, emotions, lip-sync
โ”œโ”€โ”€ memory/              # Short-term + ChromaDB long-term
โ”œโ”€โ”€ system/              # OS control, monitoring, files
โ”œโ”€โ”€ services/            # Web search, weather, messaging
โ”œโ”€โ”€ coding/              # Code assistant
โ”œโ”€โ”€ documents/           # Notes, PDF generation
โ”œโ”€โ”€ vision/              # Screen capture, OCR
โ”œโ”€โ”€ humor/               # Jokes and playfulness
โ”œโ”€โ”€ utils/               # Logger
โ””โ”€โ”€ config/              # Settings

๐ŸŽจ Customization

Change Theme Colors

Edit ui/styles/theme.qss:

/* Primary cyan */
color: #00ffcc;

/* Accent pink */
color: #ff007f;

Adjust Personality

Modify core/brain.py system instruction:

system_instruction = f"""
You are {Config.AI_NAME}...
Personality: [Your custom traits here]
"""

Add New Commands

Edit core/router.py:

if 'my_command' in text_lower:
    return {'type': 'custom', 'action': 'my_action'}

๐Ÿ› ๏ธ Troubleshooting

Issue: API Key Error

Solution: Ensure GEMINI_API_KEY is set correctly in .env

Issue: Voice Not Working

Solution: Download VOSK model and update path in .env

Issue: TTS Not Speaking

Solution: Check audio drivers, try running as Administrator

Issue: ImportError

Solution: Ensure all dependencies installed:

pip install -r requirements.txt

Issue: PyQt6 Display Problems

Solution: Update graphics drivers, run in compatibility mode


๐Ÿ“ Roadmap

  • Multi-modal input (image + text)
  • Plugin system for extensibility
  • Mobile companion app
  • Advanced VRM rendering with OpenGL
  • Proactive suggestions based on usage patterns
  • Calendar and schedule integration
  • Email management
  • Real-time translation

๐Ÿค Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request with clear description

๐Ÿ“„ License

MIT License - See LICENSE file for details


๐Ÿ™ Credits

  • AI Model: Google Gemini
  • UI Framework: PyQt6
  • Voice: VOSK, pyttsx3
  • Memory: ChromaDB

๐Ÿ‘จโ€๐Ÿ’ป Developer

Salah Uddin Kader


๐Ÿ’ฌ Support

For issues, questions, or feature requests:


โšก NYRA - Your Local AI Partner. Private. Powerful. Personal.

Made with โค๏ธ by Salah Uddin Kader

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors