Google's Gemini implemented with GPT-4 Vision, Whisper and Resemble AI
This project leverages the power of AI to answer questions based on visual inputs -- like Google's Gemini demo. It integrates GPT-4 Vision for image understanding, Whisper for voice recognition, and Resemble AI for voice synthesis, creating a comprehensive system capable of interpreting visual data and responding verbally.
realgemini.mov
- Visual Question Answering: Uses GPT-4 Vision to interpret images from a camera feed and answer questions related to the visual content.
- Voice Recognition: Employs Whisper for accurate speech-to-text conversion, allowing users to ask questions verbally.
- Voice Synthesis: Utilizes Resemble AI for generating realistic voice responses, enhancing the interactive experience.
- Python 3.x
- Camera hardware compatible with your system
- Microphone and speaker setup for voice input and output
-
Clone the Repository
git clone git@github.com:ZohaibAhmed/real-gemini.git cd real-gemini
-
Install Dependencies Install the required Python packages:
pip install -r requirements.txt
-
Environment Setup
- Create a
.env
file in the project root. - Add your Resemble AI and OpenAI credentials to the
.env
file:
- Create a
Run the application using the following command:
python run.py
Place the camera in view of the subject and use a microphone to ask questions. The system will process the visual and audio inputs to provide a spoken answer.
Contributions to this project are welcome. Please create a pull request with your proposed changes.
Special thanks to OpenAI for GPT-4 and Whisper APIs, and to Resemble AI for their voice synthesis technology.