Anybody know how to set the sample rate of the recording function in the mutimedia control?

I need to write a procedure that records a voice message at the 8000hz, 16bit, mono sample rate.

I could use the Sound Recorder program if I could force the filename and sample rate.

Any Ideas