Voice key minimal examples

Can anyone share a minimal example of triggering an event using the voicekey?

If anyone has a minimal example of getting correct onset times of speech in existing .wav files (without having to play it) using OnsetVoiceKey, that’d be much appreciated as well.

Thanks!!