voice key

Hi all,

As anyone written and is willing to share a MEX file to read the
microphone's input in real-time? I am asking because I would
like to program a voice key for an experiment.

Many thanks,