This project will demonstrate the integration of voice recognition, Natural Language Processing (NLP), and simple automation using Python.
The Voice-Activated AI Chatbot is a Python-based assistant that listens to voice commands and performs tasks like searching Wikipedia, opening websites, fetching system information, and responding through speech.
This project demonstrates the integration of Speech Recognition, Text-to-Speech (TTS), and Natural Language Processing (NLP) for intelligent humanโcomputer interaction.
- ๐ค Voice Command Recognition โ Converts spoken words into text using speech_recognition.
- ๐ฃ๏ธ Text-to-Speech Response โ Uses pyttsx3to reply audibly.
- ๐ Wikipedia Search โ Retrieves summaries from Wikipedia.
- ๐ Time & Date Queries โ Tells the current time.
- ๐ Web Automation โ Opens websites like Google, YouTube, etc.
- ๐ป System Commands โ Executes shutdown, restart, and other OS-level commands.
- ๐ Custom Commands โ Add personalized functions such as note-taking or reminders.
- โ๏ธ Error Handling โ Handles unrecognized speech gracefully.
- Python 3.8+
- speech_recognition
- pyttsx3
- wikipedia
- webbrowser
- datetime,- os,- time,- subprocess,- ctypes, etc.
pip install speechrecognition pyttsx3 wikipedia
- The bot listens for a voice command using your system microphone.
- It processes the speech input and converts it into text.
- Depending on the command, it: (1)Opens a website. (2)Fetches Wikipedia data. (3)Announces the current time. (4)Executes a system task.
- The chatbot replies audibly via the pyttsx3 text-to-speech engine.
| Command | Description | 
|---|---|
| โOpen Googleโ | Launches Google in the default browser | 
| โSearch Wikipedia for Albert Einsteinโ | Fetches a summary from Wikipedia | 
| โWhat is the time?โ | Speaks the current time | 
| โShutdown the systemโ | Initiates a system shutdown | 
| โWrite a noteโ | Creates a text note file | 
- Add a personalized greeting system
- Include to-do list or reminder functionality
- Test the chatbot using different microphones and accents.
- Adjust pause_threshold in the speech_recognition module for better response timing.
- Validate error handling for unrecognized or empty voice input.
The project demonstrates how Speech Recognition, Text-to-Speech, and Python automation can create an efficient AI voice assistant. It highlights the potential of natural language interfaces and forms a base for future intelligent personal assistants.
[Niththiyapoorani] ๐ง [https://github.com/Niththiyapoorani] ๐ Year: 2025 ๐ Project Type: Python / Business Intelligence / Business Analysis / Data Analysis