Having a way to get the current sample rate would allow us to know where certain frequencies lay when using audio.GetSpectrumData.
I am not sure which one would be correct, but AudioSettings.outputSampleRate
and
AudioConfiguration.sampleRate
both look promising.