Virtual Assistant AstraZen is a web-based voice assistant designed to provide an interactive user experience. AstraZen allows users to issue voice commands to perform various actions such as opening websites, retrieving the current time or date, and more. The assistant responds in a friendly and personalized manner.
- Leverages Web Speech API to understand and process user voice commands.
- Provides spoken feedback using the text-to-speech feature.
- Dynamically greets the user based on the time of day (morning, afternoon, evening).
- Recognizes and processes specific commands:
- "Open YouTube"
- "Open Google"
- "Open Facebook"
- "Open Instagram"
- "What time is it?"
- "What's the date?"
- "Who are you?"
- "Open WhatsApp"
- "Open Calculator"
- Clickable microphone button to start voice recognition.
- Animated voice feedback using
voice.gif
. - Display of transcribed text from user commands.
- Responsive and visually appealing design.
- Styled with a professional dark theme.
- HTML: Provides the structure of the web page.
- CSS: For responsive design and styling.
- Modern design with gradient buttons and animations.
- JavaScript: Adds functionality for:
- Speech Recognition (using
SpeechRecognition
API). - Text-to-Speech synthesis.
- Dynamic DOM Manipulation based on user input.
- Speech Recognition (using
Virtual-Assistant-AstraZen/
├── index.html # Main HTML file
├── style.css # CSS for styling
├── script.js # JavaScript for interactivity
├── Assets/ # Images and visual assets
├── Svg/ # SVG icons
└── README.md # Project documentation
- The user clicks the microphone button to activate the assistant.
- The assistant listens for commands using the Web Speech API.
- The user's voice is transcribed into text.
- Commands are extracted and processed.
- The assistant performs the requested action, such as opening a website or providing the current time/date.
- If the command is unrecognized, the assistant attempts to search for relevant information online.
- The assistant provides spoken responses using the
SpeechSynthesis
API.
-
Clone the repository:
git clone https://github.com/your-username/virtual-assistant-astrazen.git
-
Navigate to the project directory:
cd virtual-assistant-astrazen
-
Open the project in a browser:
- Open
index.html
directly in your browser.
- Open
-
Use the microphone button to interact with the assistant.
Command | Action |
---|---|
"Open YouTube" | Opens YouTube in a new browser tab. |
"Open Google" | Opens Google in a new browser tab. |
"Open Facebook" | Opens Facebook in a new browser tab. |
"Open Instagram" | Opens Instagram in a new browser tab. |
"What time is it?" | Speaks the current time. |
"What's the date?" | Speaks the current date. |
"Who are you?" | Introduces itself as AstraZen, the virtual assistant. |
- Persistent Theme Preference:
- Store the user's theme preference (light/dark) using local storage.
- Enhanced Command Set:
- Add more commands for utility functions like setting reminders or playing music.
- API Integration:
- Fetch dynamic data such as weather updates or news headlines.
- Error Handling:
- Improve handling of unrecognized commands with better suggestions.
This project is open-source and available under the MIT License.
- Inspired by advancements in AI and virtual assistant technologies.
- Built with Dhrubaraj Pati for voice-interactive web applications.
Feel free to fork, contribute and add new function, and share! 🎙️