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
gurindersm
Posts: 8
Registered: 07-16-2009

Simultaneously playing and recording audio. VOIP application

Hi

 

I intend to develop a VOIP application for Blackberry. For that its very important for me to record and play audio at the same time. I am using BlackBerry JDE 4.7 and the Blackberry 9530 simulator which comes along with the JDE.

 

I used Manager.createPlayer(file:///SDCard/Blackberry/Music/Sample.amr) to play audio and subsequently i did

Manager.createPlayer("capture://audio") to capture live audio. But as soon as I started the player to record audio my first player stopped playing the audio.

 

Is it possible to achieve the desired functionality with the API's exposed by RIM.

 

Can we also split the live audio into audio packets of certain duration like 10 ms or 20 ms.

 

I would really appreciate if anyone could provide some pointer or help to solve the above mentioned problems.

 

Thanks

Gurindersm

Please use plain text.
Developer
Aviator168
Posts: 694
Registered: 09-10-2009
My Carrier: Verizon

Re: Simultaneously playing and recording audio. VOIP application

I don't know if you can have more than one instance of the player in the BB. Hopefully someone from RIM can answer this question. Maybe this is the exact reason that we have not seen any VoIP applications. Kind of a way that phone companies say that they don't want to carry VoIP calls on their networks.
Please use plain text.
New Developer
adrian_a
Posts: 13
Registered: 03-03-2009

Re: Simultaneously playing and recording audio. VOIP application

However, Agito networks has a product that does just that... 
Please use plain text.
New Developer
arpit131
Posts: 4
Registered: 10-05-2009

Re: Simultaneously playing and recording audio. VOIP application

Hello,

Did any one achieve this ?

Thanks
Arpit Pradhan

Please use plain text.
Developer
naveen4nkp
Posts: 41
Registered: 04-10-2009

Re: Simultaneously playing and recording audio. VOIP application

Ya it is possible ,

By creating two saperete aapliction, one is form playing and another one for recording the media, and estabilish the inter communication between them so that they work together ...

Please use plain text.
Developer
Aviator168
Posts: 694
Registered: 09-10-2009
My Carrier: Verizon

Re: Simultaneously playing and recording audio. VOIP application

I don't think even two seperate applications is going to cut it. Have you ever open the media player and the voice recorder at the same time? Last time I tried. Activating one caused the other one to suspend.
Please use plain text.
Developer
naveen4nkp
Posts: 41
Registered: 04-10-2009

Re: Simultaneously playing and recording audio. VOIP application

i am sure it will work, i already tested it ...
Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: 07-15-2008

Re: Simultaneously playing and recording audio. VOIP application

Very interesting. Can you please tell us more, You have developed two apps for a device one application will record the voice and the other application will play the recorded audio by doing inter application communication. Is that right. Which device you tested it on?

Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
naveen4nkp
Posts: 41
Registered: 04-10-2009

Re: Simultaneously playing and recording audio. VOIP application

 we can create one uiapplication and another backgroung aplication,and both appliction can be use togather for recording and playing the data simulteneously. we can use glabal event for initail comunication between them.
Please use plain text.
New Developer
gurindersm
Posts: 8
Registered: 07-16-2009

Re: Simultaneously playing and recording audio. VOIP application

Actually i would also like to know how it worked especially the interapplication communication part.

However this is what I tried, I tried simultaneously recording and playing using JDE 4.6.0 with default 9000 simulator and it worked fine. Although it didnt work with JDE 4.7. And the format of the audio being recorded or played was AMR couldnt make it work with PCM.

Please use plain text.