add clipping
This commit is contained in:
parent
b78471fe38
commit
c86d383c79
2 changed files with 8 additions and 0 deletions
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