Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
peter_g
Posts: 4
Registered: 11-18-2008

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?

 

Please use plain text.
Administrator
MSohm
Posts: 11,465
Registered: 07-09-2008
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.
Found a bug? Report it using the Issue Tracker
Please use plain text.