A super quick and dirty method would be to FFT (or PSD) the signal and look for the peak (use array max for example). This will tell you both the actual value and the bin where the max occurs. The bin index can be converted to actual frequency by knowing the FFT length and sample rate. Then you have a fundamental frequency and can do with that what you want IE: volt = freq * slope + intercept
You'll want to subtract the mean before FFT'ing or you will always get bin 0. Especially if you are using a soundcard where no signal is really at 32768 counts.
Now, my example can be messed up by different waveform issues, but should work for 99.9% of the cases.
Sheldon
Technical geek, engineer, research scientist, biodegradable...