ListenerBase = win32com.client.getevents('SAPI.SpInProcRecoContext')


class Listener(ListenerBase):

    def OnRecognition(self, _1, _2, _3, Result):
        """Callback whenever something is recognized."""
Consuming COM events in Python