04-06-2010 12:29 AM
As per the API doc, there are some custom RIM parameters for capturing audio. I've used the following locator with the custom parameters to create a player which can be created successfully,
_player = Manager.createPlayer("capture://audio?encoding=amr
However, the recorder doesn't work as what I'd expected. The data was not written every 20 ms but still at a rate of default, i.e.1024bytes for each write.
Could anyone shed some light on it, I am working with BlackBerry Java Plug-in for Eclipse v1.1, 5.0API and testing with the built-in simulators.
04-06-2010 09:12 AM - edited 04-06-2010 09:15 AM
I would like to achieve the same goal as you, and I searched a bit along the forums. Unfortunately, the threads I found are not very precise for that matter, or they are simply discouraging...
As you can see, there's no specific clue of how can you configure amr (or any other codec for that matter) to record voice, so if anyone could get any further than the links I presented above, help would be really appretiated.
Thanks in advance.
04-06-2010 01:17 PM
Is the FPS of the video any different? I have not looked for anything but from the name of the parameters I would think that it changes the FPS of the video, not how often the data is updated.
04-07-2010 03:23 AM - edited 04-07-2010 03:31 AM
Hello rcmaniac25, thanks for your quick answer.
To my understanding, the question presented here has to do with tweaking native RIM audio codecs to capture audio (using a recorder), rather than video or FPS... or at least that's what I understood... and that is as well what I am trying to achieve myself with no luck so far.
The main goal (for me) is to capture audio, encode it with amr, and send it over a GPRS connection. With the default amr bitrate of 12.2kbps, the delay we obtained is not admissible.
Again, any light shed on this matter will be appreciated.
04-07-2010 08:27 AM - edited 04-07-2010 08:35 AM
Urg, I did it again. I read too quick. Sorry.
On a related note, if I happen to be correct and the property has to do with video then using it on a audio encoding won't do anything.
Edit: I did it again, this time I read the documentation after making the post. Your right it is only for audio. I would try a value of 40 (since it rounds to the nearest 20ms) to see if that makes a difference. If it does then it is the 20-1580 is exclusive otherwise it might be a bug and you should post it on Issue Tracker.
The other thing is that the documentation says "On some BlackBerry devices" (my emphasis added) so maybe try a different simulator/device to see which ones it works on.
04-08-2010 04:10 AM
Thanks again, rcmaniac25.
I have another question, though... where could a list of parameters that can be passed to amr codec be found?, or what is referred in your post as "documentation"?. If amr codec can be configured, where is a list of parameters that can be tweaked?. I tried to search for it with no luck, and all what I could find was in posts here and there, but nothing "official".
The question comes from our need to reduce bitrate in order to decrease system latency when we send frames over a GPRS channel.
Thanks in advance.
04-08-2010 06:45 AM
I was looking at the API documentation for javax.microedition.media.Manager.
03-28-2011 04:41 AM
Did you get any breakthrough on this? We also tried with several simulators and devices. But the output bahaves as the sameway even if we pass custom RIM Parameters. Please share some update if anyone has on this topic.