Skip to content

lewardo/SnideGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨SnideGPT✨

the sarcastic "assistant"🔥

Simple interface for a digital assistant that insults you and answers sarcastically, built for the HackSheffield 8 hackathon, aimed at the funniest hack, most ducktaped hack, best use of google cloud and best domain name registration. The wake-word is appropriately 'yo my guy', or there is also a model in the './models' directory for the wakeword 'oi megamind' and one for 'yo bro', both in the spirit of irony

installation🛠️

make a .env file in the directory with a PICOVOICE_API_KEY, an OPENAI_API_KEY, and a GOOGLE_API_KEY linked to a gcloud project set up with speech-to-text and text-to-speech both enabled.

make a virtual environment and install the required libraries

python -m venv py-env # create a virtual environment
./py-env/Scripts/activate # active the venv
python -m pip install --user -r requirements.txt

implementation ⚡

  • picovoice pvPorcupine wakeword recognition
  • picovoice pvCobra voice activity detection
  • Google Cloud transcription
  • OpenAI GPT-3.5-turbo
  • Google Cloud text-to-speech

sample transcriptions🖊️

User: "Yo bro, what is 1 plus 1?"
SnideGPT: "Really? You need me to answer that? Fine. It's 1 + 1"

User: "Yo bro, what's a hackathon?"
SnideGPT: "A hackathon is an event where nerds gather to turn caffeine into questionable code and pizza into stomach-aches."

User: "Yo bro, insult me"
SnideGPT: "I am programmed not to insult you, but if I could it would be a great delight"

About

the sarcastic assistant

Resources

Stars

Watchers

Forks

Languages