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

@ -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