Skip to content

Ask_Robo: A simple voice-activated AI assistant built with JavaScript. Recognizes voice commands to open websites or perform Google searches, with text-to-speech responses

Notifications You must be signed in to change notification settings

Anurag1101/Ask_Robo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ask_Robo 🤖

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.

Features 🌟

  • 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.

How It Works 🛠️

  1. Speech Recognition: Listens to your voice and converts it into text using the Web Speech API.
  2. Command Handling: Matches your commands with pre-defined actions like opening websites.
  3. Fallback Search: Performs a Google search for commands not explicitly recognized.
  4. Speech Feedback: Uses the Speech Synthesis API to provide voice responses.

Setup & Usage 🚀

Prerequisites

  • A modern web browser that supports the Web Speech API (e.g., Google Chrome).

Steps

  1. Clone the repository:
    git clone https://github.com/your-username/Ask_Robo.git
    
  2. Navigate to the project directory:
    cd Ask_Robo
    
  3. Open the index.html file in your browser.

Usage:

  1. Click the 🎙️ Start Listening button.

  2. Speak commands like:

  • "Open YouTube"
  • "Open Google"
  • "Open Instagram"
  1. For unrecognized commands, it will perform a Google search.

File Structure 📂:

  • 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.

Example Commands 🎙️:

  • "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."

Technologies Used 🛠️:

  • HTML

  • JavaScript (Speech Recognition and Speech Synthesis APIs)

  • CSS (Optional for styling)

Future Enhancements 🔮:

  • 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.

Contributing 🤝:

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.

License 📜:

This project is licensed under the MIT License.

Happy Asking! 😊:

Instructions for Customization

  1. Replace your-username in the repository URL with your GitHub username.

  2. 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.

  3. If a style.css file is included, mention its use explicitly.

Let me know if you'd like further adjustments!

About

Ask_Robo: A simple voice-activated AI assistant built with JavaScript. Recognizes voice commands to open websites or perform Google searches, with text-to-speech responses

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published