This project is a simple voice assistant built using Python's speech_recognition and pyttsx3 libraries. It listens to the user's voice through the microphone and responds based on the detected speech.
- Recognizes basic speech using Google Web Speech API
- Responds with voice using
pyttsx3 - Handles simple phrases like "hi" and "by"
- Error handling for unrecognized or failed voice input
- Uses
speech_recognitionto capture audio from your microphone. - Converts the audio to text using Google Speech API.
- Depending on the detected phrase, the assistant responds:
- "hi" → "Hi again!"
- "by" → "By now!"
- Anything else → "Hello"
- Python 3.x
- speech_recognition
- pyttsx3
- PyAudio (for microphone access)
You can install the dependencies using:
pip install SpeechRecognition pyttsx3 pyaudio