GenAI Voice Assistant by using Gemini Prompts and Open AI TTS
- pip install google.generativeai
- pip install speech_recognition
- pip install pyaudio
- pip install openai
- pip install faster_whisper
Set Env or update API KEY on line number 30, file voice-assistant.py with yours
OPENAPI_API_KEY="XXccss233XXcccsszX"
Set Env or update API KEY on line number 35, file voice-assistant.py with yours
GOOGLE_API_KEY="XXccss233XXcccsszX"
python voice-assistant.py
You have to say 'hello' first to ask every question, but this can be avoided except the first question by commenting lines 148-149
Also, if you want to avoid this 'hello' wake word completely then can update the callback function accordingly and remove the 'listening_for_wake_word' parameters
- https://aistudio.google.com/
- https://platform.openai.com/
- https://platform.openai.com/docs/guides/text-to-speech
- https://colab.research.google.com/
Cheers!