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
Highlighted
New Developer
Posts: 4
Registered: ‎11-18-2008
My Device: Not Specified

Supported formats for capturing audio

I need to capture audio in PCM format.

 

According to the JDE 4.6.0 Multimedia Guide:

 

"The BlackBerry® smartphone uses two formats to record audio: Adaptive Multi-Rate (AMR) and 8 kHz mono-16-bit pulse code modulation (PCM). By default, the format is AMR.

 

PCM: capture://audio?encoding=pcm or capture://audio?encoding=audio/basic"

 

However, when I run the code:

Manager.createPlayer( "capture://audio?encoding=pcm" );

 

This works on a Pearl 8100, but on a Pearl 8330, I get a MediaException, with the error:

Unsupported record encoding type

 

 

Do all handsets support PCM encoding? If not, where would I find out the capabilities of the different models?

 

BlackBerry Development Advisor
Posts: 15,723
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Supported formats for capturing audio

The PCM format is not supported by BlackBerry smartphones that operate on the CDMA network. 
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker