✨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 'yo bro', both in the spirit of irony This is a bootlegged, spaghetti-code API mashup kept together by duct tape and pushing the limits of the word 'functional', but is that not what hacking is about?

N.B. for the judges, if you require my API keys to run the demo, let me know and I'll share them as required!

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 Google Cloud 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"

Built With

Share this project:

Updates