I have written an application in android to record voice from mic and store it in byte array using
audioRecord.read(bigBuff, currSize, minBuffSize);
bigBuff is an byte array now i want to convert this byte array into .mp3 file or .wav file I am doing this as
File f = new File(Environment.getExternalStorageDirectory().getAbsolutePath()+"/aaa.wav");
f.createNewFile();
FileOutputStream fos = new FileOutputStream(f);
fos.write(bigBuff);
fos.flush();
fos.close();
aaa.wav file is getting created successfully but when I am trying to play it from outside the app like any other .wav or .mp3 file its showing error "sorry Player does not support this type of audio file"
please help.