ποΈ Smart Python Voice Assistant β from simple commands to NLP-powered task automation and API integrations.
This project is a Voice Assistant built using Python, developed as part of the Oasis Infobyte Internship Program (OIBSIP) β Python Programming.
It introduces beginners to basic speech recognition while offering an advanced version with NLP and API integrations for real-world task automation.
- Sends emails using voice commands.
- Sets reminders.
- Provides weather updates via APIs.
- Answers general knowledge questions.
- Controls smart devices (IoT integration).
- Allows custom commands and third-party API integrations.
- Python 3.x
- Libraries:
speech_recognition
pyttsx3
datetime
webbrowser
smtplib
requests
(for APIs)nltk
/spacy
(for NLP)
π Steps Performed
Extended Libraries β integrated smtplib, requests, nltk/spacy for NLP.
Email β added SMTP auth flow to send emails by voice.
Reminders β simple store & notify logic for time-based prompts.
Weather β fetched current weather via API (e.g., OpenWeatherMap).
General Knowledge β added knowledge lookups (e.g., Wikipedia API).
Smart Devices (placeholders) β structured functions for future IoT control.
Custom Commands β mapped voice intents to actions via rules/keywords.
Robust Errors β covered mic access, API failures, invalid inputs.
π― Learning Outcomes
Working with speech recognition and text-to-speech.
Building task automation with Python.
Using APIs and NLP for intent handling.
Handling errors & edge cases in voice apps.