add clipping
This commit is contained in:
parent
b78471fe38
commit
c86d383c79
2 changed files with 8 additions and 0 deletions
|
@ -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
|
5
main.py
5
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue