A voice assistant inspired by FRIDAY from Iron Man, built from scratch in Python.
You speak, FRIDAY figures out what you want, does it, and answers out loud.
FRIDAY runs as a simple four-step pipeline, one file per step:
| Step | File | What it does |
|---|---|---|
| 1. Listen | listen.py |
Records audio from your microphone |
| 2. Transcribe | friday.py / transcribe.py |
Turns speech into text with OpenAI Whisper (runs locally, no API key) |
| 3. Understand | understand.py |
Works out what you asked for (the "intent") |
| 4. Act | act.py |
Does it and writes a reply |
| 5. Speak | speak.py |
Reads the reply aloud with the Windows speech engine |
Everything runs on your own machine. No cloud services or API keys are needed.
- Chat: "hey", "how are you", "who are you", "thanks"
- Jokes: "tell me a joke"
- Time and date: "what time is it", "what's the date today"
- Open websites: "open youtube", "open github"
- Search Google: "search for python tutorials"
- Play on YouTube: "play lofi music"
- Windows with WSL (Ubuntu). FRIDAY runs in WSL but uses Windows to open the browser and to speak.
- Python 3.9+
ffmpeg(needed by Whisper) and PortAudio (needed for the microphone)
sudo apt install ffmpeg libportaudio2
git clone https://github.com/Arj052/friday.git
cd friday
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtThe first run downloads the Whisper base model (about 140 MB).
Record a voice command (any audio format Whisper supports), then run:
python friday.py my_command.m4aExample output:
========================================
You said: "Open YouTube."
Friday: Opening youtube.
========================================
scan_mics.pylists your input devices and checks which one picks up soundmictest.pychecks that the default mic workscheckrec.pyrecords a clip and checks its volumelisten.pyrecords a 6-second clip tolive.wav. SetMIC_DEVICEto your mic's number fromscan_mics.pyfirst.
- Listen live from the mic instead of a recorded file
- Wake word ("Hey Friday")
- Smarter understanding using a language model
- More commands (weather, reminders, opening apps)
This is a fan project. It is not affiliated with or endorsed by Marvel.