Whisper / utils /hook_detector.py
basyx's picture
Create hook_detector.py
e5ad341 verified
Raw
History Blame Contribute Delete
147 Bytes
def detect_hook(words):
"""
Finds strongest opening segment (first 3–7 seconds)
"""
return [w for w in words if w["start"] <= 5]