Skip to content

Python script counting the number of times someone says AI

Notifications You must be signed in to change notification settings

simonw/count-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

AI counter app from my talk at PyCon US 2024

I built this project for my Imitation Intelligence talk.

This little macOS app listens through the microphone and increments a visible counter any time anyone says "AI" or "Artificial Intelligence".

You need to download and extract the model file from here: https://alphacephei.com/vosk/models

Get the vosk-model-en-us-0.22-lgraph 128MB zip file and uncompress it. You need to have that vosk-model-en-us-0.22-lgraph folder in the same folder as counter.py

Then:

python -m venv venv
venv/bin/pip install -r requirements.txt
venv/bin/python counter.py

Here's the ChatGPT transcript I used to help build the tool.

And a screenshot showing what the counter looks like:

macOS screenshot - a white rectangle in the top right shows the number four

About

Python script counting the number of times someone says AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages