Added checking os. Added save audio in wav format.