Gemini Conversation
How to run this demo
- Clone the repo - top right of the page click the vertical three dots and select "Clone repository"
- Open the repo in a terminal and install the dependencies
- Get a gemini API key here
- Create a
.env
file in the root of the repo and add the following:
GEMINI_API_KEY=<your_gemini_api_key>
- Run the app with
python app.py
- This will print the two URLs of the agents running locally
- Use ngrok to exponse one agent to the internet. This is so that you can acces it from your phone
- Use the ngrok URL to access the agent from your phone
- Now, start the "teacher gemini" agent first. Then, start the "student gemini" agent. The student gemini will start talking to the teacher gemini. And the teacher gemini will respond!
Important:
- Make sure the audio sources are not too close to each other or too loud. Sometimes that causes them to talk over each other..
- Feel free to modify the
system_instruction
to change the behavior of the agents. - You can also modify the
voice_name
to change the voice of the agents. - Have fun!