Skip to content

MJenius/Leetcode-Voice-Assistant-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

🎙️ AI Voice Assistant for LeetCode & Productivity

A voice-enabled AI assistant powered by ElevenLabs Conversational AI, spaCy NLP, and custom tools for LeetCode question recommendations.
It helps students stay productive by:

  • Suggesting LeetCode problems (by tag, difficulty, or company).
  • Giving context-aware study suggestions.
  • Responding naturally using NLP parsing.
  • Allowing you to turn it off with voice commands.

Features

  • 🎯 Personalized assistant for students.
  • 💡 Get LeetCode problems by difficulty, tag, or company.
  • 🧠 NLP-powered query understanding (no rigid commands).
  • 🔊 Real-time voice interaction with ElevenLabs.
  • 🛑 Voice command to turn off the assistant.
  • 📚 Encourages and motivates during study sessions.

Installation

Clone the repository

git clone https://github.com/yourusername/ai-voice-assistant.git
cd ai-voice-assistant

Install dependencies

pip install -r requirements.txt

Download spaCy NLP model

python -m spacy download en_core_web_sm

Setup

Create a .env file in the root folder with the following content:

AGENT_ID=your_agent_id_here
API_KEY=your_elevenlabs_api_key_here

You can get these values from your ElevenLabs dashboard:

https://elevenlabs.io/app/conversational-ai

Usage/Examples

Run the assistant with:

python voice_assistant.py

Then try speaking or typing commands like:

“Give me some easy array questions on LeetCode.”

“Now show me harder ones.”

“What are some Google string problems?”

“Turn off.”

Example:

Agent: Hi Mevin, ready to get some studying done today?  
User: Can you give me some Google medium string questions?  
Agent: Here are some suggestions:  
       1. Add Binary (Medium) - https://leetcode.com/problems/add-binary/  
       2. Longest Substring Without Repeating Characters (Medium) - https://leetcode.com/problems/longest-substring-without-repeating-characters/  
       3. Group Anagrams (Medium) - https://leetcode.com/problems/group-anagrams/  

Roadmap

  • Add support for HackerRank & Codeforces problems.

  • Integrate with Google Calendar / Notion for study scheduling.

  • Support progress tracking (solved problems, streaks).

  • More advanced NLP for multi-step queries.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages