So I am trying to record audio and save the record into .wav file i am able to do it via bytearray directly now i am trying to create the .wav file by the ByteArrayOutputStr