cedar-voice

byharendra kumar

Create a futuristic, dark-themed Jarvis AI Assistant Dashboard for learning Data Structures and Algorithms (DSA). The UI colors must be charcoal black (#0d0d0d), dark slate, and glowing neon-cyan (#00f2fe) for borders and highlights. The application must be a single-file, production-ready implementation combining HTML5, Tailwind CSS, and fully functional vanilla JavaScript. ### 1. CORE ENGINE & WEB SPEECH INTEGRATION - Hands-Free Continuous Voice Input: Implement a background JavaScript 'SpeechRecognition' (Web Speech API) loop that stays permanently active. It must listen to the user continuously without requiring any microphone button clicks. When the user stops speaking (onend / choice parsing), automatically process the spoken words. - Dual Feedback Output: Every time Jarvis replies, the response text must stream inside the conversational chat window AND simultaneously speak out loud using 'SpeechSynthesisUtterance' with the language locale strictly set to Hindi ('hi-IN') at a comfortable speech rate (0.95). ### 2. DYNAMIC WORKSPACE LAYOUT (SPLIT PANEL) - Top Navigation Bar: Contains an active status indicator showing "JARVIS: ONLINE/LISTENING", and a configuration input field where the user can dynamically paste or change their custom Automation/Backend WebSocket URL endpoint. - Left Panel (Chat, Metrics, & System Core): - At the top, render a high-tech glowing cyan circular vector orb animation representing Jarvis's core. - Below the orb, display a Gamification Scoreboard showing: Current Level (e.g., "Level 1"), Current Rank (e.g., "Bronze Coder"), and an interactive XP Progress Bar (e.g., "150 / 500 XP"). - Under the scoreboard, a scrolling terminal-style Conversational Chat Window that keeps a history of text logs. - Right Panel (Interactive Coding Workspace): - A clean, monospace text area acting as a Code Editor for the user to type their programmatic solutions. - Directly underneath the text editor, place a large, distinct "Submit Solution" action button. ### 3. AUTOMATED DSA CURRICULUM DATA STRUCTURE Hardcode the following complete sequential DSA Syllabus array directly inside the JavaScript engine logic to track the user's progress state: const dsaSyllabus = [ { stage: 1, topic: "Arrays", analogy: "Toy Train ya Ek line mein rakhe boxes jahan har box ka ek index number hota hai.", questions: ["Find the maximum element in an array", "Reverse an array", "Check if array is sorted"] }, { stage: 2, topic: "Linked Lists", analogy: "Treasure Hunt game, jahan har ek box ke paas agle box ki chit ya address hoti hai.", questions: ["Reverse a Linked List", "Detect a loop in Linked List", "Find middle of Linked List"] }, { stage: 3, topic: "Stacks & Queues", analogy: "Stack matlab Chapatis ka dher (LIFO) aur Queue matlab ticket ki line (FIFO).", questions: ["Implement Stack using Arrays", "Balanced Parentheses check", "Queue using Stacks"] }, { stage: 4, topic: "Searching Algorithms", analogy: "Linear Search matlab ek-ek karke dhoondhna, Binary Search matlab dictionary ko beech se kholna.", questions: ["Binary Search implementation", "Search in a rotated sorted array"] }, { stage: 5, topic: "Sorting Algorithms", analogy: "Bikhre hue khilono ko height ke hisab se line mein systematically arrange karna.", questions: ["Bubble Sort", "Merge Sort implementation", "Quick Sort"] }, { stage: 6, topic: "Trees & Binary Trees", analogy: "Aapka Family Tree - ek Dada ji (Root), unke bachche (Nodes), aur aakhiri generation (Leaves).", questions: ["Inorder Traversal", "Height of a Binary Tree", "Invert a Binary Tree"] }, { stage: 7, topic: "Graphs", analogy: "Google Maps ya Facebook Friends network jahan log ya shehar aapas mein jude hain.", questions: ["BFS Traversal", "DFS Traversal", "Find shortest path in graph"] } ]; ### 4. INTERACTION WORKFLOW & GAME LOGIC - When the user speaks keywords like "DSA shuru karo" or "Sikhao", Jarvis initializes at Stage 1 (Arrays), outputs the simple Hindi analogy both in text and voice, and presents the first question. - Coding Mode: The user must write their code entirely via text typing in the editor. Voice triggers are disabled inside the code editor to avoid unwanted noise injection while coding. - Evaluation on Submit: Clicking "Submit Solution" simulates a verification sweep. - If successful: Update state, add 100 XP to the progress tracker, trigger a level-up animation if the stage changes, and have Jarvis say a dynamic reward message in Hindi (e.g., "Bahut badhiya Javed! Aapka code bilkul sahi hai. Aapko 100 XP milte hain."). Then advance to the next question or topic. - If the solution fails: Do not display or give the direct code answer. Jarvis must act as an expert teacher, breaking down the problem by offering step-by-step logic hints in spoken Hindi to guide Javed until he types the correct solution. - Stuck/Help Voice Command: If at any point the continuous background mic captures the user saying phrases like "Samajh nahi aa raha hai" or "Help me", Jarvis must intercept, interrupt the current flow, and explain the specific active question or concept using even simpler, child-friendly Hindi analogies. Ensure the entire asset is packed inside a beautiful, polished, and fully functional unified script. Ismein Tum Ek Hi taiyari Karoge pahle yah Mujhe use topic ko padhaayega FIR use topic ko code bhi karaega FIR Court mein question Dega tab main call karunga.http://localhost:5678/webhook-test/a3f8ee1d-206e-4e6b-8972-3f84e602c759

No preview

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 5

Cedar-Voice System Requirements Document

1. Introduction

Cedar-Voice is a futuristic, dark-themed Jarvis AI Assistant Dashboard designed for learning Data Structures and Algorithms (DSA) with a focus on voice-first interaction and concept explanation in Hindi.

2. System Overview

Cedar-Voice provides an interactive platform for users to learn DSA through a voice-enabled interface. The system integrates a continuous voice input mechanism and offers dual feedback output, combining text and speech synthesis. The application is built using HTML5, Tailwind CSS, and vanilla JavaScript, ensuring a seamless user experience.

2a. Source Content Inventory

  • Design Reference: Visual style inspired by the provided Jarvis interface image.
  • DSA Curriculum: Hardcoded syllabus array for tracking user progress.
Page 2 of 5

3. Functional Requirements as Story Points

  • As a User, I should be able to interact with the system using voice commands to start DSA lessons.
  • As a User, I should receive DSA concept explanations in Hindi with analogies.
  • As a User, I should be able to practice coding solutions in a dedicated text editor.
  • As a User, I should receive feedback on my solutions through voice and text.
  • As a User, I should be able to trigger help commands for additional explanations.
  • As a User, I should be able to progress through a structured DSA curriculum.
  • As a User, I should be able to submit solutions and receive XP rewards for correct answers.
  • As a User, I should see a dynamic workspace layout with a split panel for chat and coding.

4. User Personas

  • Learner: Engages with the platform to learn and practice DSA concepts.
  • Administrator: Manages the backend and monitors user progress.

5. Core User Flows

  • User initiates DSA lesson via voice command -> System explains concept with analogy -> User practices in code editor -> User submits solution -> System evaluates and provides feedback -> User progresses to next topic.
Page 3 of 5

6. Visuals Colors and Theme

  • primary: #0d0d0d (Charcoal Black)
  • primary_light: #1a1a1a (Dark Slate)
  • secondary: #00f2fe (Neon Cyan)
  • accent: #00f2fe (Neon Cyan)
  • highlight: #00f2fe (Neon Cyan)
  • bg: #0d0d0d (Charcoal Black)
  • surface: #1a1a1a (Dark Slate)
  • text: #ffffff (White)
  • text_muted: #b0b0b0 (Muted Gray)
  • border: #00f2fe (Neon Cyan)

7. Signature Design Concept

Interactive Jarvis Dashboard

The homepage features an interactive Jarvis-style dashboard with a central glowing orb animation representing the AI core. Users can interact with the orb to initiate voice commands. The dashboard includes animated elements that respond to user interactions, such as glowing borders and dynamic feedback displays. The design uses motion/react for smooth transitions and animations.

Page 4 of 5

Landing Hero Motion Brief

The hero section showcases an animated sequence where a digital representation of a DSA problem transforms into a solved solution, highlighting the learning journey. The animation loops every 10 seconds, with interactive elements that users can hover over to reveal additional information.

8. Interaction Model & Motion Direction

  • Interaction Model: Animated
  • Motion Direction: The landing page features smooth animations with hover transitions and spring physics on interactive elements. The internal pages maintain a static layout for clarity.

9. Non-Functional Requirements

  • The system must support continuous voice recognition with minimal latency.
  • The interface should be responsive and accessible on various devices.
  • The application must handle multiple simultaneous users efficiently.

10. Tech Stack

  • Frontend: HTML5, Tailwind CSS, Vanilla JavaScript
  • Backend: Python, FastAPI
  • Database: MySQL or MariaDB
  • AI Models: GPT 5.4 for user-friendly responses
  • AI Tools: Litellm for LLM Routing
  • Orchestration: Docker, Kubernetes
Page 5 of 5

11. Assumptions and Constraints

  • The application assumes users have a basic understanding of DSA concepts.
  • The system is constrained to operate within a web browser environment.

12. Glossary

  • DSA: Data Structures and Algorithms
  • XP: Experience Points
  • AI: Artificial Intelligence
  • UI: User Interface

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

Login: Sign In
Dashboard: View Overview
Dashboard: Monitor Users
Users: View Progress
Users: Manage Accounts
Curriculum: View Syllabus
Curriculum: Update Topics
Settings: Configure Backend
Settings: Update WebSocket URL
Dashboard: View Analytics
Dashboard: Export Reports

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

Login: Sign In
Dashboard: View Overview
Dashboard: Monitor Users
Users: View Progress
Users: Manage Accounts
Curriculum: View Syllabus
Curriculum: Update Topics
Settings: Configure Backend
Settings: Update WebSocket URL
Dashboard: View Analytics
Dashboard: Export Reports