Double-clap to trigger JARVIS. Plays "Should I Stay or Should I Go" on Spotify and greets you like Tony Stark's assistant.
- macOS
- Python 3
- Homebrew
- Spotify installed
make setupThis installs system and Python dependencies.
make startJARVIS will listen via your mic. Double-clap to activate.
If JARVIS triggers too easily or misses claps, adjust THRESHOLD in jarvis.py:
- Lower value → more sensitive
- Higher value → less sensitive (default:
0.20)
Adjust VOICE_VOLUME in jarvis.py to control TTS volume relative to Spotify (default: 0.6, range: 0.0–1.0).
Adjust CLAP_WINDOW to control how fast you need to clap (default: 0.8 seconds). Lower = must clap faster.
Change GREETING to customize what JARVIS says when triggered.
Change SPOTIFY_URI to play a different song. To get the URI from Spotify:
- Right-click any song → Share → Copy Song Link
- The link looks like:
https://open.spotify.com/track/39shmbIHICJ2Wxnk1fPSdz— the ID is39shmbIHICJ2Wxnk1fPSdz(everything after the last/) - Format it as:
spotify:track:<ID>