A modern AI-powered voice assistant web app built with React. Interact using voice commands to manage tasks, set alarms, and open websites directly from your browser.
- Voice Commands: Add, list, remove, or clear tasks using natural voice input.
- Alarms: Set and cancel alarms with voice input.
- Open Websites: Quickly open popular websites via voice commands (e.g., "open YouTube").
- Real-time Feedback: Displays the last recognized voice input with animated wave effect.
- Chat-like Interaction: AI responds to commands and queries.
- Web Audio Feedback: Plays tones for success, errors, and alarms.
- Persistence: Tasks, messages, and alarms are saved in
localStorage. - Animations: Gradient backgrounds, bouncing/rotating robot icon, microphone pulse effect.
- Responsive Design: Works on desktop and mobile.
voice-assistant/
├─ index.html
├─ package.json
├─ postcss.config.js
├─ tailwind.config.js
├─ vite.config.js
├─ src/
│ ├─ main.jsx
│ ├─ App.jsx
│ ├─ index.css
│ ├─ components/
│ │ ├─ VoiceAssistant.jsx
│ │ ├─ TaskList.jsx
│ │ └─ AlarmList.jsx
│ └─ utils/
│ └─ time.js
- Clone the repository:
git clone https://github.com/SRCarlo/Voice-Assistant.git- Navigate to the project directory:
cd voice-assistant- Install dependencies:
npm install- Start the development server:
npm run dev- Open http://localhost:5173 in your browser to view the app.
- Start/Stop Listening: Click the microphone button.
- Tasks:
add task buy milklist tasksremove task 1clear tasks
- Alarms:
set alarm in 2 minutesorset alarm at 7 amcancel alarm 123
- Open Websites:
open youtubeopen gmailopen example.com
- Reset All: Say
resetto clear tasks, alarms, and messages.
- React (Functional Components & Hooks)
- Framer Motion (Animations)
- React Icons
- Web Speech API (Speech Recognition & Synthesis)
- Web Audio API (Audio tones)
- Tailwind CSS
- Vite (Build Tool)
- Add more websites in
VoiceAssistant.jsxvia theSITE_MAPobject. - Modify gradient or animation styles in Tailwind classes or component CSS.
- Change colors and layout in
index.cssor component styles.
MIT License
This project is licensed under the MIT License, which means you are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the project, as long as you include the original copyright and license notice.
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.
Created by SRCarlo
Feel free to reach out for questions, suggestions, or collaboration:
- GitHub: SRCarlo
- Email: asphaltshubhuu@gmail.com
Contributions, issues, and feature requests are welcome!
- Fork the repo
- Create a new branch (
git checkout -b feature/YourFeature) - Commit your changes (
git commit -m 'Add some feature') - Push to the branch (
git push origin feature/YourFeature) - Open a Pull Request
This project is for educational and personal use.
Use responsibly and do not rely on it for critical tasks.
- React
- Tailwind CSS
- Framer Motion
- React Icons
- Inspiration from various AI voice assistant projects