🎙️ 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.
- 🎯 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.
git clone https://github.com/yourusername/ai-voice-assistant.git
cd ai-voice-assistantpip install -r requirements.txt
python -m spacy download en_core_web_sm
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
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.”
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/
-
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.