It appears you will have to perform it manually, first calling Record Sound and specifying Sound number and a length [You can possibly map that to the length of the trigger, say a key press] and then call Stop Recording Sound
I am not sure it would be wise or possible to trigger recording unless you used the sound wave snippet found in Dark Source
It allows you to read the data from a sound file, say a .wav file...
So what you could do is perform a time based recording to create a sample, say 5 seconds at a time, save it to a file, open it, read the data, see if it spikes anywhere in the data, then begin recording for a fixed or extended period of time...
If you can detail what you want to do a bit more, someone may have what you are looking for...