Ask_Robo is a lightweight AI voice assistant powered by the Speech Recognition
and Speech Synthesis APIs
built with JavaScript. It listens to your voice commands and performs actions like opening popular websites or performing Google searches.
-
Voice Commands: Interact with the assistant using voice commands.
-
Open Websites: Say commands like "Open YouTube" or "Open Google" to navigate to those websites.
-
Google Search: For unrecognized commands, it automatically performs a Google search.
-
Text-to-Speech: Responds to your commands with voice feedback.
-
User-Friendly Interface: Simple and intuitive UI with a start button.
- Speech Recognition: Listens to your voice and converts it into text using the Web Speech API.
- Command Handling: Matches your commands with pre-defined actions like opening websites.
- Fallback Search: Performs a Google search for commands not explicitly recognized.
- Speech Feedback: Uses the Speech Synthesis API to provide voice responses.
- A modern web browser that supports the Web Speech API (e.g., Google Chrome).
- Clone the repository:
git clone https://github.com/your-username/Ask_Robo.git
- Navigate to the project directory:
cd Ask_Robo
- Open the
index.html
file in your browser.
-
Click the 🎙️ Start Listening button.
-
Speak commands like:
- "Open YouTube"
- "Open Google"
- "Open Instagram"
- For unrecognized commands, it will perform a Google search.
-
index.html: The main HTML file containing the UI structure.
-
script.js: JavaScript file implementing the speech recognition and command handling logic.
-
style.css: (Optional) CSS file for styling the interface.
-
"Open YouTube" → Opens YouTube in a new tab.
-
"Open Facebook" → Opens Facebook in a new tab.
-
"Search for cats" → Performs a Google search for "cats."
-
Add more commands for utility tasks like checking the weather or setting reminders.
-
Improve UI with animations and accessibility features.
-
Integrate natural language processing for better command understanding.
Contributions are welcome! If you'd like to improve this project, feel free to fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT
License.
-
Replace
your-username
in the repository URL with your GitHub username. -
Add a real screenshot in the
Preview
section by uploading an image to your repository or using an image hosting service, and update the URL accordingly. -
If a
style.css
file is included, mention its use explicitly.
Let me know if you'd like further adjustments!