VoIP Phone Call from mobile to PC - Streaming the audio and playing it back

In short:
How can I stream the audio captured from a mobile to PC and play it back.
In brief:
I am trying to develope an application to chat(voice) between a J2ME program and a Java program which is running in a PC.
Currently I am able to send and receive the text message by using SIP protocol after establishing session by using SIP protocol.
As a next step, I want to capture the audio and play back in PC and Mobile.
Now, I am able to capture audio from the microphone of the mobile.
Player p =Manager.createPlayer("capture://audio?rate=8000&bits=8&Channels=1");
                p.realize();
                // get the RecordControl over this Player
                RecordControl rc = (RecordControl)p.getControl("RecordControl");
                // create an OutputStream which the RecordControl will use
                // to write write the recorded data.
                ByteArrayOutputStream output = new ByteArrayOutputStream();
                rc.setRecordStream(output);
                // start the recording
                rc.startRecord();
                p.start();How can I stream it to PC and play it back? Also, I need to send audio captured from PC to mobile and have to play it back.
Pl. do reply.

now I am able to play the stream (with some delay),
while(inputStream.read(buf)!=-1) {
                    try {
                        ByteArrayInputStream recordedInputStream = new ByteArrayInputStream(buf);
                        play2 = Manager.createPlayer(recordedInputStream, "audio/x-wav");
                        System.out.println("Playback player created...");
                        play2.prefetch();
                        System.out.println("Playback player prefetched...");
                        play2.realize();
                        System.out.println("Playback player realized...");
                        play2.start();
                        System.out.println("Playback player started...");
                    } catch (MediaException ex) {
                        ex.printStackTrace();
                    } catch(Exception e) {
                        e.printStackTrace();
                    }But, the problem is , I have to play the audio, as well as capture the audio to create the duplex communication.
Is it possible to do the audio capture and playback simultaneously? If it is not possible, pl suggest an idea to achieve this.
null

Similar Messages

  • I updated my IPhone today and now I cant make phone calls. I can still access the internet and sending texts, help.

    I updated my Iphone today and now I cant make phone calls. I cant still send and receive texts and access the interenet.

    reset iPhone if you haven't already
    http://support.apple.com/kb/HT1430
    essential after any update

  • Is there any way to stop my I phone 4 telephone key pad disappearing during a phone call - you know you listen to the options and when you come to press the number the key pad is missing.

    Every time I make a call involving chosing options I loose my keypad so I cannot enter the numbers quickly enough...so they keep telling me again what to do -its so frustrating. Have i set somrthing up for a time delay  ?

    This happens to me as well. The keypad does not stay on until the end of the call, it goes out as soon as you bring your hand to it.  Sometimes I can type a key, mostly not.  I can never type a 4 during a call.  Given the prevelance of phone trees when calling a business this makes the phone as useless as an old rotary pulse phone.  I hope this issue gets some attention, or my next phone will not be an iPhone.

  • How do I make a phone call from my mac with yosemite?

    How do I make a phone call from my MacBook Pro on the Yosemite operating system?

    The following quotation is from Connect your iPhone, iPad, iPod touch, and Mac using Continuity
    There is more information in the link, including supported hardware and that you must have Settings > FaceTime > iPhone Cellular Calls set to on on the iPhone.
    Phone calls
    With Continuity, you can make and receive cellular phone calls from your iPad, iPod touch, or Mac when your iPhone is on the same Wi-Fi network.
    To make and receive phone calls, here's what you need:
    Sign in to the same iCloud account on all your devices, including your Mac.
    Your iPhone and your iPad or iPod touch need to use iOS 8 or later. Your Mac needs to use OS X Yosemite.
    All devices must be on the same Wi-Fi network.
    All devices must be signed in to FaceTime using the same iCloud account. This means any device that shares your Apple ID will get your phone calls. Look below for instructions on how to turn off iPhone cellular calls.
    Wi-Fi Calling needs to be off. Go to Settings > Phone. If you see Wi-Fi Calling, turn it off.
    Make a call
    To make a phone call on your Mac, iPad or iPod touch tap or click a phone number in Contacts, Calendar, or Safari.

  • I am receiving calls from 911,917,918,919,etc. I believe these are international calls from mobile phones in India. How do I stop/block them?

    I am receiving calls from 911, 917, 918, 919, etc. I believe these are international calls from mobile phones in India. How can I block/stop them?

    Unwanted calls are never pleasant! To confirm, are these calls only coming from 3 digits numbers? If coming from 10 digit number we offer 5 free blocks via https://wbillpay.verizonwireless.com/vzw/nos/safeguards/SafeguardProductDetails.action?productName=callMessageBlocking. While not the most convenient, we also offer the ability to change your phone number free via http://www.vzw.com/myverizon.
    Thank you,
    YaleK_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the �Correct Answer� button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • SP-3102 - Unable to make VOIP phone calls after switching router

    I had to change the router from Netgear (g) to Belkin N+ (n). Changed the SPA-3102 config to DHCP, it picked up an IP and showed the 1st 3 LEDs lit, status Registered. So, good news.
    I am able to receive VOIP phone calls, but not able to make phone calls, it won't dial. I installed slogsrv.exe and got the following log: syslog.514.log. Unfortunately, it's chinese to me.
    Please help,
                Daniel

    Try checking any settings on the old router which you might need to configure also on the new router to get VoIP working like port forwarding, dmz or disabling the NAT. The Belkin might have a feature like NAT which behaves differently so you might need to open up VoIP ports or enable NAT mapping and NAT Keep Alive on the SPA.

  • Annoying phone calls from 0390396597

    annoying phone calls from this number  0390396597 when attempt to reply telstra says it does not recognise number. managed to get through this morning 2am left message not to phone again HERE'S HOPING

    G'day  They have a record, which is quite recent, so you won't be the only one.\ getting these calls. They come in a pattern, and you may get them again. http://www.reverseaustralia.com/lookup/0390396597/  Reverse Australia is worth having a look at. I just started a thread on solutions for mobiles to intercept spam calls: http://crowdsupport.telstra.com.au/t5/Social-Off-Topic/quot-Who-Called-Me-quot-app-to-stop-phone-spammers-and-SMS-spam/m-p/469154 Also, make sure you register with ACMA's Do Not Call register: https://www.donotcall.gov.au/  

  • How do i make a phone call from my mac

    i can't make a phone call from my mac nor receive phone calls

    NO my mac is on a different wi-fi than my phone

  • When I receive a phone call from a new number, how do I save that number to my contacts?

    When I receieve a phone call from a new number, is it possible to save that number from the incoming calls screen? Can I create a contact from the number itself without having to go to the contact list and write the number in manually?

    Thank you so much. I feel like an idiot for not figuring that out on my own, it is so simple.  But I really, really appreciate this. Thank you!!!

  • I get an error message "iPhone is already on a call" when making phone calls from Macbook Air. What can I do to fix this problem?

    I have followed the instructions exactly according to Apple for making phone calls from my Macbook Air. Im signed in to iCloud on both devices. Im on the same wifi network. Wifi calls is turned off on my iPhone. Any suggestions?

    Howdy jcannon130,
    Thanks for using the Apple Support Communities.
    To troubleshoot this issue where your Mac believes you iPhone is still on a call while trying to make a call from your Mac, please first reset your iPhone, and then verify you have the settings configured correctly on your Mac and iPhone.
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Get help using Continuity with iOS 8 and OS X Yosemite - Apple Support
    Happy Holidays!
    Alex H.

  • Text messages and phone calls from March 2012 to date are missing after activating iphone5

    text messages and phone calls from March 2012 to date are missing after activating iphone5. I backed up my 4 before activating my 5. Can i retrieve them somehow?

    i would not want to bet on nokia ever releasing a patch or update in the software to allow this function on this particular phone.
    if you look at nokia phones over the years, they have added functionality like this across a wide range all at once, take for example timed profiles on symbian phones. these have only just been phased in.
    i do not think it is a development cop out, more along the lines that nokia is a huge company and as such would have a huge effor in market research. if they didnt pick this out through their market researc, why spend the money adding it?
    the comment on annoyance is entirely personal to me, as it is important to you - you may want to consider moving to a symbian (series 60) based handset as these give you a lot of expansion for this sort of need.

  • Phone call from woman saying our Internet will be disconnected tomorrow.

    We had a phone call tonight from a woman who claimed to be from Telstra, saying that our Internet was going to be disconnected tomorrow because our downloads were interfering with Telstra computers. When I claimed "[Bleep]" she said thank you and hung up. Anyone else had this one?

    Yes I know. This is the page that tells me I need to contact you, which is why we're having this conversation now. There is no option to report phone scams. The only options are: Hacking, Port Scanning or attempted intrusionUnsolicited Bulk Email or SpamPhishing ScamsVirus Prohibited content (eg: pornography or sexually explicit content)Defamatory material (eg: publication by another person of a false and derogatory statement about you)Copyright infringement (eg: if you believe somebody else has misappropriated material over which you hold copyright None of these options cover phone calls from people claiming to be from Telstra. It says for other issues please contact us. This option leads me to you and all you have done is send me back to the page that told me I had to contact you. :/

  • Cannot open Adobe Pro XI.  Conversation with Adobe rep ended yesterday.  Should have received phone call from Adobe at 5:00 today (pdt).  Help

    Cannot open Adobe Pro XI.  Conversation with Adobe rep ended yesterday.  Should have received phone call from Adobe at 5:00 today (pdt).  Help

    What is Adobe Pro XI ?
    Maybe you need the Acrobat Forum?

  • Recived phone call from a 000-000-0000 what is this and can it be spy ware??

    recived phone call from a 000-000-0000 what is this and can it be spy ware??

    No, just someone who has set their caller ID to that so you don't know from whom the call came.

  • Harrassing phone calls from equipment recovery services when I have no equipment

    I cancelled my services with Comcast and returned all equipment. I have a reciept for the returned equipment and Comcast owes me a credit of more than $100. Yet, every day, several times a day, including saturday and sunda I get a phone call from "Equipment Recovery Services on behalf of Comcast" telling me i must return my equipment or be charged, then directs me to a website to  get help. I went to the website and Equipment Recovery Services shows that all equipment has been returned. I called Comcast to tell them to please stop this company whom they have hired from harrassing me, again confirming there is no equipment. Comcast told me to register for the do not call list. I am already on the do not call list. This issue is one caused by Comcast by hiring a contractor and not keeping them informed, it is NOT an issue with do not call. If I get another call I will be contacting local authorities and seeking charges for phone harrassmennt. What is with you comcast?

    Hello bpenyak,
    As you mentioned, Equipment Recovery Services is a vendor group that's hired by Comcast. The equipment could be returned to either them or Comcast. I can confirm that there is no more outstanding equipment. Since you returned it to us, we then send Equipment Recovery a report that all equipment has been returned and to no longer call you. What we cannot control is how fast those calls stop. It is up to them to close your file and stop the calls. Only thing we have control of is sending them a report that everything is recovered and to stop calling you. 

Maybe you are looking for

  • Display .gif In Applet Problem

    I have been making a game. Very simply, the game has a main class and another truely important class that extends JFrame, it is the map. In it i need to upload .gif files and display them. It worked up until recently because i needed to make a sepper

  • How to add a website link into a final cut video

    Does anyone know how to add a website link that someone can click on that I can add to a video I might be creating in Final Cut Express? I am looking for an easy way to do this and I cannot find one. Thanks.

  • How do I add a shortcut to the home page of my iMac

    How do I add a shortcut icon to my homepage on my IMac ...... Not a bookmark but a shortcut

  • Currency Output problem

    Hi,     I have a problem while converting the currency. I am mentioning that below.Please help me. Ex: I have a variable containing quantity and type is quantity field. DATA: g_var1 type char20. bsid-wrbtr = '1103.61'. write : BSID-WRBTR TO g_var1 cu

  • Crop And Straighten Photos - Changing parameters / Editing Script

    Hi. I am currently using the Crop and Straighten Photos automation to crop scans of 10 to 12 maps that are scanned on a large flat bed scanner. A lot of the plans have rough edges and aren't always completely square. Is it possible to allow a toleran