12-12-2011 10:46 AM
I have a java program that records 10 seconds of audio from microphone. The first version uses this string , in Manager.createPlayer()
final String uri = "capture://audio?encoding=pcm";
I have about 160.000 bytes of data after 10 seconds. Now i want to use AMR codec, so I've tried with
final String uri = "capture://audio?encoding=audio/amr";
After 10 seconds, I have about 16.000 bytes of data. If I want to use AMR with 4750 bitrate
final String uri = "capture://audio?voipMode=true&encoding=audio/amr&
the data length is again about 16.000 bytes.
The "rate" parameter doesn't work? There is anybody that use the Capture URI String with AMR and 4750 bitrate?
12-14-2011 03:33 AM
First 15 bytes for PCM encoding (uhm???)
First 15 bytes for "capture://audio?encoding=audio/amr"
First 15 bytes for ""capture://audio?voipMode=true&encoding=audio/amr
12-14-2011 01:50 PM - edited 12-14-2011 01:52 PM
For AMR encoding, using a rate that isn't 12200 kbps is only available when using voipMode (as you are doing) on CDMA devices using BlackBerry 6.0 (running build 524 later, and probably 7.0 as well - I have not tried personally). Otherwise the 'rate=' parameter is ignored.
12-15-2011 02:42 PM
It works on GSM devices too. I think they also have to be on OS6 if I remember correctly. I will be getting back to AMR in the next few weeks and should have more info by then.