Th-Shivam/VYOM
关于
VYOM (Virtual Yet Omnipotent Machine) is a futuristic AI-powered personal assistant , inspired by J.A.R.V.I.S. from Iron Man. Designed to simplify your digital life, VYOM uses advanced language models and browser automation to handle complex tasks with simple voice or text commands.
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文🤖 VYOM – Virtual Yet Omnipotent Machine
🏗️ Technical Architecture
VYOM is built on a Modular Multi-Threaded Architecture. Unlike linear assistants, VYOM decouples peripheral I/O (Voice/Listen) from core logic (NLP/Action) to prevent UI freezing and ensure real-time responsiveness.
System Flow & Data Lifecycle
The following diagram illustrates how a voice command propagates through the modular layers:
graph TD
subgraph Input_Layer [Perception]
A[🎤 Voice Input] -->|PyAudio / SpeechRecognition| B(Audio Stream)
B -->|Whisper / Google API| C{Speech-to-Text}
end
subgraph Brain_Layer [Processing]
C -->|Raw Text| D[🧠 NLP Engine]
D -->|Intent Extraction| E{Action Router}
end
subgraph Execution_Layer [Action]
E -->|System Cmd| F[OS Controller]
E -->|Web Query| G[Browser Automation]
E -->|API Call| H[Weather/IoT/News]
end
subgraph Output_Layer [Feedback]
F & G & H --> I[🗣️ TTS Engine]
I --> J[🔊 Speaker Output]
end
🧠 Multi-Threading Logic
To maintain the "Always Listening" capability while executing heavy AI tasks, VYOM utilizes Python's threading and asyncio modules:
- Thread 1 (Listener): Continuously monitors the microphone for the wake word.
- Thread 2 (Processor): Handles API calls to Groq/Cohere without blocking the listener.
- Thread 3 (Executor): Manages OS-level tasks and GUI updates.
🛠️ Technologies Used
| Category | Technologies |
|---|---|
| 🐍 Core Language | |
| 🤖 AI Models | |
| ⚡ Performance | |
| 🧠 NLP |
⚡ Quick Start
Get VYOM running in under 5 minutes!
# Clone the repository
git clone https://github.com/th-shivam/vyom.git
cd vyom
# Create and activate virtual environment
# Windows:
python -m venv .venv
.venv\Scripts\activate
# Mac/Linux:
python3 -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txt
Then add your API keys and run:
python main.py
## 📂 Project Structure
For SWOC contributors, please refer to this modular map before submitting PRs:
```plaintext
│
├── Backend/ # Core backend logic for the assistant
│ │
│ ├── Automation.py # Handles task automation (system tasks, workflows)
│ ├── ChatBot.py # Manages chatbot logic and conversational flow
│ ├── ImageGeneration.py # Generates images using AI models/APIs
│ ├── Model.py # Loads and manages AI/ML models
│ ├── Productivity.py # Productivity features (notes, reminders, utilities)
│ ├── RealTimeSearchEngine.py # Performs real-time web/search queries
│ ├── SpeechToText.py # Converts spoken audio input into text
│ └── TextToSpeech.py # Converts text responses into spoken audio
│
├── Frontend/ # User interface and client-side logic
│ │
│ ├── Files/ # Runtime data and application state storage
│ │ │
│ │ ├── Database.data # Stores persistent application data
│ │ ├── ImageGeneration.data # Stores image generation history/results
│ │ ├── Mic.data # Stores microphone state and audio metadata
│ │ ├── Responses.data # Stores chatbot responses
│ │ └── Status.data # Tracks application and system status
│ │
│ ├── Graphics/ # UI assets and visual resources
│ │ │
│ │ ├── Chats.png # Chat interface icon/image
│ │ ├── Close.png # Close window button icon
│ │ ├── GUI.py # GUI layout logic using graphical assets
│ │ ├── Home.png # Home screen icon/image
│ │ ├── Mic_off.png # Microphone disabled icon
│ │ ├── Mic_on.png # Microphone enabled icon
│ │ ├── Minimize.png # Minimize window icon
│ │ ├── maximize.png # Maximize window icon
│ │ ├── minimize2.png # Alternate minimize icon
│ │ ├── settings.png # Settings icon
│ │ ├── VYOM.jpeg # Project logo / branding image
│ │ └── jarvis.gif # Animated assistant graphic
│ │
│ ├── automation/ # Frontend automation tests
│ │ └── test_gui.py # Automated tests for GUI behavior
│ │
│ ├── playwright_tests/ # Playwright-based UI testing
│ │ ├── homepage.png # Screenshot of homepage during tests
│ │ ├── index.html # Static test page for UI validation
│ │ └── test_gui.py # Playwright test cases for GUI
│ │
│ ├── tests/ # Frontend test specifications
│ │ └── test_issue4.spec.js # Test case for reported issue #4
│ │
│ ├── GUI.py # Main frontend GUI controller
│ └── test_gui.py # Manual/functional GUI test script
│
├── config/ # Configuration and environment settings
│ │
│ ├── __init__.py # Marks config as a Python package
│ └── settings.py # Centralized configuration variables
│
├── utils/ # Shared utility functions
│ │
│ ├── logger.py # Logging utilities for debugging and monitoring
│ └── memory.py # Memory management and context handling
│
├── .env.example # Sample environment variables file
├── .gitignore # Files and folders ignored by Git
├── CODE_OF_CONDUCT.md # Community guidelines and behavior rules
├── CONTRIBUTING.md # Contribution guidelines for developers
├── LICENSE # Project licensing information
├── README.md # Project overview and documentation
│
├── main.py # Application entry point
├── requirements.txt # Python dependencies list
│
├── test_logger.py # Unit tests for logger utility
└── test_memory.py # Unit tests for memory utility
🛠️ Installation & Setup
Prerequisites
- Python 3.13+
- FFmpeg (Required for audio processing)
- C++ Build Tools (Required for PyAudio on Windows)
🐧 Linux/Mac Setup (Audio Dependencies)
Most setup errors occur due to missing audio driver headers. Run the following before pip install:
- For Ubuntu/Debian:
sudo apt-get update
sudo apt-get install python3-pyaudio portaudio19-dev libasound2-dev espeak
- For macOS:
brew install portaudio
pip install pyaudio
📦 Standard Installation
1. Clone & Environment
git clone [https://github.com/th-shivam/vyom.git](https://github.com/th-shivam/vyom.git) && cd vyom
python -m venv .venv
source .venv/bin/activate # Mac/Linux
# .venv\Scripts\activate # Windows
2. Install & Run
pip install -r requirements.txt
python main.py
🤝 Contributing
We are proud to be an official part of Social Winter of Code (SWOC) 2026! 🚀
We welcome contributors of all skill levels. To ensure a smooth collaboration, please identify your path:
- 🌱 Beginners: Look for issues labeled
good-first-issueanddocumentation. Perfect for your first PR! - 🛠️ Advanced: Check for
modular-enhancementandthreading-optimizationto work on the core engine.
🛣️ Quick Workflow
- Fork the repository and create your branch.
- Follow the PEP 8 style guide for Python code.
- Ensure your module is placed in the correct directory (see Project Structure).
- Open a PR with a clear description of your changes.
📋 Full Contributing Guide | 🏗️ Architecture Deep Dive
📄 License
This project is licensed under the MIT License. You are free to use, modify, and distribute this software, provided the original copyright and license notice are included.
TL;DR: Open-source, permissive, and community-friendly.
See the LICENSE file for the full legal text.
If you find VYOM helpful, don't forget to give it a ⭐!
VYOM v2.0 • Built with 🐍 Python • Focused on 🏗️ Modular Architecture
✨ README Improvement Notes
📌 Formatting Enhancements Needed
- Improve heading hierarchy for better readability
- Ensure consistent spacing between sections
- Use proper Markdown formatting for code blocks and lists
- Align all installation and usage steps properly
🚀 Suggested Structure Upgrade
- Introduction
- Features
- Tech Stack
- Installation
- Usage
- Project Structure
- Contribution Guidelines
- License
🛠️ Documentation Improvements
- Add badges (optional): build, license, contributors
- Add screenshots for better UI understanding
- Standardize code blocks for commands
🎯 Goal
Improve onboarding experience for new contributors and users by making README more structured, readable, and professional.
探索相关项目
加载中…
