Skip to content

a chrome extension made with chrome built-ai-apis , helps learning , infromation retreival , live audio transcription

Notifications You must be signed in to change notification settings

Chelseasingla1/Chrome-Sahayaka

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ ChromeSAHAYAK - Your Personal AI Tutor & Fun Zone Extension ๐ŸŒŸ

License Chrome Platform Status

โš ๏ธ Important: This extension requires Chrome Dev or Canary channel (โ‰ฅ 128.0.6545.0) to function properly.

ChromeSAHAYAK is a web app and Chrome extension that transforms learning and entertainment. Powered by cutting-edge AI technologies like Prompt API and Speech Recognition, it offers personalized tutoring, hands-free browsing, interactive games, and mental health support. ๐ŸŽ“๐ŸŽ‰


Images

1. Ask the AI Learner

Engage directly with the AI Learner by asking questions or seeking information. The intelligent system provides accurate, tailored responses to enhance your understanding of complex topics.

ai_learner_ask

2. Lesson Conversion

Simplify learning with AI Learnerโ€™s lesson conversion feature. It breaks down complex topics into structured, digestible lessons, making it easier for users to grasp even the most challenging concepts.

ai_learner_convert_to_lesson

3. AI Voice Assistant Emotion Detection

Leverage the AI voice assistantโ€™s ability to detect emotions during interactions. By understanding the userโ€™s emotional state, AI Learner adapts its responses to provide a supportive and empathetic learning experience.

ai_magVoice_assistant_detect_Emotion

4. AI Voice Assistant for Learning

Experience hands-free learning with the AI voice assistant. It offers seamless voice-based navigation, personalized suggestions, and interactive support, ensuring a convenient and user-friendly educational journey.

ai_magVoice_assistant

โœจ Key Features

๐ŸŒ 1. AI-Powered Learning

  • ๐Ÿง  Customizable Answers:
    • Adjust answers by difficulty level (Simple โžก๏ธ Advanced).
    • Control the length (Short โžก๏ธ Detailed).
  • ๐Ÿ› ๏ธ Interactive Features:
    • Use the "Ask" button for instant explanations.
    • Save answers to PDF for future reference.
    • Create Structured Lessons: Generate a structured lesson plan for in-depth study.
    • Audio Classes: Learn with AI-generated audio explanations.
  • ๐Ÿ”„ Real-Time Interaction: Follow-up questions supported for dynamic learning.

๐ŸŽ™๏ธ 2. Voice Assistance

  • ๐Ÿ—ฃ๏ธ Hands-Free Learning & Navigation:
    • Use voice commands to interact with AI effortlessly.
    • Perform tasks like opening tabs, searching queries, and interacting with lessons.
  • ๐ŸŒ Conversational AI:
    • Engage in natural conversations.
    • Includes mental health support: Acts as a friendly consoler or psychiatrist to help users feel better during tough times.

๐Ÿ“บ 3. YouTube Video Transcription

  • ๐ŸŽง Audio to Text: Convert YouTube audio into accurate text using yt-dlp and Google Speech API.
  • ๐Ÿ“ Multilingual Support: Understand content in multiple languages.
  • ๐ŸŽต Mood-Based Recommendations: Suggests resources or playlists based on context.

๐ŸŽญ 4. Interactive Fun Zone

  • โ“ Trivia & Quizzes: Fun, engaging games to test knowledge.
  • โœจ Storytelling Mode: AI-generated stories based on your prompts.
  • ๐Ÿ˜‚ Joke Generator: Enjoy light-hearted jokes, riddles, and humor.
  • ๐ŸŽจ Voice-Driven Doodles: Create sketches with simple verbal descriptions.
  • ๐ŸŽง AI-Curated Music: Get personalized playlists based on detected mood.
  • ๐Ÿ–ผ๏ธ AI Memes: Generate witty, captioned memes.
  • ๐Ÿ”ฎ Fortune Teller: Playful AI-powered horoscopes and fortunes.
  • ๐ŸŒ Language Games: Challenge vocabulary and translation skills.
  • ๐ŸŽฎ Chat Games: Play "20 Questions," "Would You Rather," and more.

๐Ÿ› ๏ธ System Requirements

Component Minimum Requirement
Browser Chrome Dev/Canary (โ‰ฅ 128.0.6545.0) REQUIRED
Operating System Windows 10+, macOS 13+, or Linux
CPU Multi-core processor (Intel/AMD)
GPU/VRAM GPU with 4GB+ VRAM supporting FP16
Storage 24GB free space (22GB Gemini Nano, 2GB Moondream2)

Browser Setup

  1. Download Chrome Dev or Chrome Canary.
  2. Verify version โ‰ฅ 128.0.6545.0 at chrome://settings/help.

Required Chrome Flags

Enable the following Chrome flags:

Category Flag Setting
WebGPU chrome://flags/#enable-webgpu-developer-features Enabled
Gemini Nano chrome://flags/#optimization-guide-on-device-model Enabled BypassPerfRequirement
Prompt API chrome://flags/#prompt-api-for-gemini-nano Enabled

Restart Chrome after enabling these flags to apply changes.


๐Ÿ”ง Built-in AI Model (Gemini Nano) Setup

Step 1: Model Initialization

  1. Open the Prompt API Playground.

  2. Launch the DevTools Console (F12).

  3. Execute:

    (await ai.languageModel.capabilities()).available;
  4. If the return value is "after-download":

    • Go to chrome://components.
    • Verify Optimization Guide On Device Model version โ‰ฅ 2024.5.21.1031.
    • If outdated, click "Check for update".
  5. If the return value is "no":

    • Run in the Console:
      await ai.languageModel.create();
    • If it fails (expected), relaunch Chrome and retry the earlier command.

Step 2: Verify Gemini Nano

  1. Execute in DevTools Console:
    (await ai.languageModel.capabilities()).available;
  2. Ensure return value is "after-download".
  3. Confirm Optimization Guide On Device Model is updated under chrome://components.

๐Ÿ How to Run the Code

Clone the Repository

  1. Open your terminal or command prompt.
  2. Run:
    git clone https://github.com/vinayak1729-web/Chrome-Sahayaka.git

Launch the Application

  1. Navigate to the project directory:
    cd Chrome-Sahayaka
  2. Open index.html in your browser:
    • Double-click on the index.html file.
    • Or, right-click > "Open with..." > Select Chrome.

Start Exploring

Enjoy exploring the interactive features like AI tutoring, Fun Zone, and mental health support.


Important: After modifying Chrome flags, restart Chrome to ensure settings are activated correctly.


๐Ÿงฐ APIs and Technologies Used

  • Chrome AI APIs:
    • ๐Ÿงพ Prompt API: Enables content generation.
    • ๐ŸŽ™๏ธ Speech Recognition API: Supports voice commands.
  • Google Cloud Speech API: Transcribes audio.
  • yt-dlp: Downloads YouTube videos and extracts audio.
  • Flask Backend: Powers server-side operations.

๐ŸŽ“ How to Use

โœ๏ธ AI Learning Assistant

  1. Type your question in the input field.
  2. Adjust difficulty and length settings.
  3. Use:
    • "Ask" for instant answers.
    • "Save to PDF" to save your query for future use.
    • "Create Lesson" for a structured AI-generated lesson plan.
    • "Audio Class" to listen to explanations through AI-generated voice.

๐ŸŽค Voice Commands

  1. Activate the microphone icon.
  2. Speak naturally for queries or navigation.
  3. Let AI open tabs, search, and interact seamlessly.

๐ŸŽฌ YouTube Transcriptions

  1. Paste a YouTube video URL.
  2. Click "Transcribe" to get detailed, multilingual text.

๐ŸŽฎ Fun Zone

  1. Explore engaging games and creative tools.
  2. Use voice commands to create doodles, jokes, and more.

๐ŸŒˆ Future Enhancements

  • ๐ŸŒ AR-powered immersive learning.
  • ๐Ÿ”‹ Offline functionality for uninterrupted learning.
  • ๐Ÿ’ก Enhanced interactivity with advanced AI models.

๐Ÿค Contributing

We โค๏ธ contributions! Help us improve by:

  • Suggesting new features ๐ŸŒŸ
  • Reporting bugs ๐Ÿž
  • Submitting pull requests ๐Ÿš€

๐Ÿ‘ฉโ€๐Ÿ’ป Developers & Credits

Developed with ๐Ÿ’– by Vinayak Shinde, Vishal Mishra, Chelsea Singla, and Swasthika Devadiga.

๐Ÿ“ซ Contact: Have questions? Drop an issue in the repo!

๐ŸŒŸ Star this repo if you find it helpful.


๐Ÿ“œ License

This project is licensed under the MIT License.


MIT License

MIT License

Copyright (c) 2024 Vinayak Shinde

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


About

a chrome extension made with chrome built-ai-apis , helps learning , infromation retreival , live audio transcription

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 55.0%
  • JavaScript 34.2%
  • CSS 8.9%
  • SCSS 1.9%