Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 15
Registered: ‎02-28-2010
My Device: Bold 9000
My Carrier: Orange

define AMR bitrate

Hi,

I'm trying to record the audio in AMR codec with this piece of code
Manager.createPlayer("capture://audio?encoding=amr");
By default 12.2kbps is used for bitrate.

The question is how can i define this bitrate for example to 5.15.

I can approve that i can play audio that was recorded in AMR 5.15kbps.

Thanks
Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: define AMR bitrate

To my knowledge, this is not yet supported.

Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: define AMR bitrate

P.S. How is it possible that you can only play audio with AMR frames in mode 5.15? Any AMR decoder has to support frames of any AMR modes (including 5.15 and 12.2). The mode is not a property of the stream but rather a property of individual frames. It's completely OK to have a stream with frames in different AMR modes (that's the A in AMR)...

Contributor
Posts: 15
Registered: ‎02-28-2010
My Device: Bold 9000
My Carrier: Orange

Re: define AMR bitrate

[ Edited ]

I record AMR 5.15 on Nokia device and stream it to BlackBerry. It works.

 

Contributor
Posts: 15
Registered: ‎02-28-2010
My Device: Bold 9000
My Carrier: Orange

Re: define AMR bitrate

I mean i record in Nokia and stream it to BlackBerry
Contributor
Posts: 15
Registered: ‎02-28-2010
My Device: Bold 9000
My Carrier: Orange

Re: define AMR bitrate

i have another question...

 

i'm developing voip application and i have an issue:

 

when BB connected via GPRS/EDGE. there is a big delay. I have to say that when it was connected via WiFi there is almost no delay at all.

 

So i supposed that the problem is caused by 12.2kbps bitrate.

 

Any ideas? Maybe somebody managed to achieve small delay under GPRS?

 

thanks