This project allows users to search Wikipedia using voice commands. It utilizes the Web Speech API to capture voice input, convert it to text, and perform a search on Wikipedia. Users can simply click the voice search button and start speaking to search for articles on Wikipedia.
- Voice Search: Search Wikipedia by speaking a query instead of typing.
- Real-Time Input: The system listens to the user's voice and automatically fills the search bar with the recognized text.
- Responsive Design: The tool works well on both desktop and mobile devices.
- Error Handling: Displays an error message in case of recognition failure.
The project includes the following files:
- Voice_search_engine.js: Contains the JavaScript code for handling voice recognition and search.
- _config.yml: Configuration file for the project (for deployment purposes).
- voice_search_engine.html: The main HTML file that structures the search interface and includes embedded JavaScript for voice recognition functionality.
- README.md: Documentation file that provides an overview of the project.
-
HTML Structure:
- A form with a search input field and a voice search button.
- The button uses the Web Speech API to capture voice input.
-
Voice Recognition:
- The Web Speech API's
webkitSpeechRecognition
is used to listen to the user's voice. - The recognized text is then automatically populated in the search bar.
- The form is submitted once the voice input is processed.
- The Web Speech API's
-
Styling:
- The form is styled to be user-friendly, with the voice search button styled using an icon and custom CSS.
-
Clone the repository to your local machine:
git clone <repository-url>
-
Open the voice_search_engine.html file in a browser that supports the Web Speech API (Google Chrome is recommended).
-
Make sure the microphone permission is granted when prompted by the browser.
-
Click the voice search button and start speaking to search for Wikipedia articles.
- The project is deployed and can be accessed through the following link: Wikipedia Voice Search - IIIT Hyderabad Mini Hackathon
- Browser: Google Chrome or any other modern browser that supports the Web Speech API.
- Microphone: Ensure your microphone is working and permission is granted for the browser to use it.
- This project is open-source and available under the MIT License.
- Thanks to the IIIT Hyderabad Mini Hackathon 2023 for showcasing this project.
- Special thanks to the contributors and participants of the project.
This README provides a comprehensive overview of your project, including features, setup instructions, and deployment details.