I am recording audio on Nokia 6131, using the default format amr. I used this code to capture audio:
player = Manager.createPlayer("capture://audio?encoding=amr");
But, when I tryed to capture audio in pcm or wav format, it throws NullPointerException. Therefore, I used System.getProperty("audio.encodings") to get supported audio encodings. But I found that amr is the only one supported on the Nokia 6131.
I need to find a way to get the uncompressed data. Is there any way to get the data read from device directly before the compression to amr? In fact I just need a byte array to work on it.
I thought that I can try a converter from amr to wav, but the application will be different according to the mobile type. It will be better if I can get raw data.
Thanks in advance.