Skip to content

GenAI Voice Assistant by using Gemini Prompts and Open AI TTS

Notifications You must be signed in to change notification settings

shadman/genai-voice-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Generative AI Voice Assistant

GenAI Voice Assistant by using Gemini Prompts and Open AI TTS

Install dependencies

  • pip install google.generativeai
  • pip install speech_recognition
  • pip install pyaudio
  • pip install openai
  • pip install faster_whisper

API Keys

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"

Run a program

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

Output : (Talk with you)

alt sample demo

Tip

alt sample demo

Some Helpful Links

Cheers!

About

GenAI Voice Assistant by using Gemini Prompts and Open AI TTS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages