I don't think you can really do that reliably either. Arbitrary consumer device microphones do not have flat frequency response