diff --git a/README.md b/README.md index 5f4e3fb..c9b7a50 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file diff --git a/main.py b/main.py index b6082cf..c5112dd 100644 --- a/main.py +++ b/main.py @@ -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