add clipping

This commit is contained in:
ultrablob 2025-02-13 09:36:53 -05:00
parent b78471fe38
commit c86d383c79
2 changed files with 8 additions and 0 deletions

View file

@ -31,5 +31,8 @@ Press the hotkey (default is Home) and then talk to jarvis
- "jarvis, maximum pulse that family of four"
- "jarvis, murder that shark"
- "jarvis, remove his balls"
- save a clip
- "jarvis, clip that"
- "hey jarvis, thats a clip"
Checkout the code to see specific keywords/phrases as all NLP is regex/string based, not generative AI

View file

@ -4,6 +4,7 @@ import speech_recognition as sr
from string import punctuation
from slang import replacements
import re
import subprocess
from time import sleep
r = sr.Recognizer()
@ -56,6 +57,10 @@ def on_press(key):
pg.keyDown("q")
sleep(0.032)
pg.keyUp("q")
elif "clip" in command:
subprocess.run("/home/ultrablob/Videos/Clips/save_clip.sh")
# Collect events until released