How can I record audio to wav format?
Any particular reason you want to do this natively? Otherwise I can recommend Audacity. It allows you to record audio files among others. The option to save to wav is found in the file/export audio menu. Furthermore Audacity is free software, so that should not keep you from using it.