Welcome to the Voice Assistant project! This Python-based voice assistant utilizes speech recognition, text-to-speech technologies, and Google's Bard AI to understand voice commands and provide responses.
The Voice Assistant project brings the convenience of voice commands to your fingertips. Whether you want to inquire about the weather, ask questions, or get tasks done, this assistant is here to help.
- Voice recognition and command execution.
- Text-to-speech responses for interactive communication.
- Integration with Google's Bard AI for context-aware responses.
- Customizable voice commands and actions.
To get started with the project, follow these steps:
-
If you have Git installed, you can clone the repository using the following command:
git clone https://github.com/VineetKumar02/Python-Voice-Assistant.git
-
After cloning, navigate to the project directory:
cd Python-Voice-Assistant
-
If you prefer not to use Git, you can download the ZIP archive of the project:
- Click the "Code" button on the repository page.
- Choose "Download ZIP."
- Extract the downloaded ZIP file to a location of your choice.
Install the required Python libraries using pip:
-
Using Reqirements.txt file
pip install -r requirements.txt
or
-
For latest version of packages (May not work. If fails.. Follow method 1)
pip install pyttsx3 speech_recognition google-generativeai python-dotenv pyaudio
-
Create a Google Bard AI account and obtain an API key.
-
Configure your
.envfile with your API key:PALM_API_KEY=YOUR_API_KEY
Execute the python script to start the voice assistant:
python bardai.py- Begin interacting with the voice assistant by saying "Hello Jarvis" or your preferred wake-up phrase.
- Ask questions, give commands, or engage in casual conversations.
- Use the command "Shutdown Jarvis" to exit the assistant.
- Python
- SpeechRecognition
- pyttsx3
- Google's Bard AI
Contributions to this project are welcome! Feel free to open issues and submit pull requests for any enhancements or fixes.
Note: This project is for educational and demonstration purposes. Make sure to follow ethical guidelines and respect user privacy when creating voice assistant applications.