import snowboydecoder


def listen(event):

    detector = snowboydecoder.HotwordDetector('resources/snowboy.umdl', sensitivity=0.5)
    detector.start(detected_callback=event.set)

import snowboydecoder


def listen(event):

    detector = snowboydecoder.HotwordDetector('resources/snowboy.umdl', sensitivity=0.5)
    detector.start(detected_callback=event.set)
