I can not hear the voice from a cloned dataSource

MediaLocator audioFile = new MediaLocator("rtp://192.168.2.210:"+audioPort+"/audio");
                         DataSource ds = Manager.createDataSource(audioFile);
                         Processor processor = Manager.createRealizedProcessor(new ProcessorModel(ds,null,new ContentDescriptor(ContentDescriptor.RAW)));
                         ds = processor.getDataOutput();
                         ds = Manager.createCloneableDataSource(ds);
                         DataSource playDataSource = ((SourceCloneable)ds).createClone();
                         Player player = Manager.createRealizedPlayer(playDataSource);
                         player.start();
but i can not hear the voice,who can help me ?thank you very much!

now, i can hear the voice from the cloned dataSource ,but how to save the voice at the same time?
MediaLocator audioFile = new MediaLocator("rtp://192.168.2.210:"+audioPort+"/audio");
                         DataSource ds = Manager.createDataSource(audioFile);
                         Processor processor = null;
                         processor = Manager.createProcessor(ds);
                         processor.configure();
                       boolean result = waitForState(processor, processor.Configured);
                       if (result == false)
                           System.err.println("configuring failed");
                       processor.setContentDescriptor(new ContentDescriptor(ContentDescriptor.RAW));
                       processor.realize();
                       result = waitForState(processor, processor.Realized);
                       if (result == false)
                           System.err.println("realizing failed");
                       processor.start();
                       ds = processor.getDataOutput();
                       DataSource playDataSource = Manager.createCloneableDataSource( ds );
                       Processor saveProcessor = Manager.createRealizedProcessor(new ProcessorModel(ds,null,new FileTypeDescriptor(FileTypeDescriptor.RAW_RTP)));
                       Player player = javax.media.Manager.createPlayer(playDataSource);
                       DataSink dsink = Manager.createDataSink(saveProcessor.getDataOutput(), new MediaLocator("file://D:/record/1234.wav"));
                         System.out.println();
                         System.out.println("-> Playing file '" + audioFile + "'");
                         System.out.println("   Press the Enter key to exit");
                         player.start();
                         dsink.open();
                         dsink.start();
                         saveProcessor.start();i can get a local file named "1234.wav",but i can not play .Thank you !!

Similar Messages

  • I can not hear the voice when i call

    i can not hear the voice when i call, its very poor quality sound i feel, i tried to control with the volume control buttons but still i am unable to increase volume, could you pls advise the solution??
    manoj

    Have a look in Utilities > Audio Midi Setup

  • Can not hear the voice of caller and caller can not listen me

    hi
    i got iphone 4 can not hear the voice of caller and caller can not hear me while head phone and i pod working perfectly.

    You may try using a different headphone to isolate the issue. And test your headphone as well with a different device like an iPod or other device, if it works then it's with the phone, that may needs service

  • I can not hear any voice from the ear piece with my new Iphone 5. I don't know why.

    I just used the new iphone 5 for one week. Now, I found I can not hear anything from the ear piece. The speaker is ok, but it dose not work on the earpiece.
    I use it very carefully, I even use a good case for it.
    I don't know why!!!!!

    Did you remove the plastic protector that came on the front of the device?
    Is there a screen protector or case blocking the speaker on the device?

  • I accidently dropped my iphone from about 15 feet in the air, had an otterbox gel case on it but phone will not come on, I can still hear the voice controls and will play music randomly by pushing the center bush on phone any clues on how to get phone wor

    I recently dropped my iphone 4 from about 15 feet in the air, had an otter box gel case on it and it did not break the screen, but it will not come on, no back light but can still hear the voice contorl and randomly hear music when I push the center button, I have it password locked but can't see to unlock, any help out there

    Just guessing here, but dropping your phone is probably the reason your screen or backlight doesn't work.
    Only solution I see is to take it to Apple and buy and out of warranty iphone 4.

  • Why do I can not hear the siri's voice on my iphone speaker anymore, why do I can not hear the siri's voice on my iphone speaker anymore

    why do I can not hear the siri's voice on my iphone speaker anymore, why do I can not hear the siri's voice on my iphone speaker anymore

    All apps - all paid and free apps include DRM protection that is tied to the iTunes that was used to download the apps. This means you have apps on your iPhone that were downloaded with your daughter's iTunes account. Apps cannot be transferred or merged with another iTunes account.
    Delete the apps from your iPhone that were downloaded with your daughter's iTunes account to prevent being prompted for the account's password when there are app updates for the apps downloaded with the account. An iTunes account cannot be deleted.

  • HT204291 Im trying to use my apple TV to see a movie from my iphone. Since i select the airplay icon on my phone, i can only hear the voice of the movie on my screen but i cant see the movie, can anybody help me pls? Tks

    Im trying to use my apple TV to see a movie from my iphone. Since i select the airplay icon on my phone, i can only hear the voice of the movie on my screen but i cant see the movie, can anybody help me pls? Tks

    Is this a movie from iTunes? If so is it a rental or one you've purchased?

  • From my Ipad, when I am in Facebook, I can not hear the videos posted to my FB page...Sounds works on all other apps just not my videos on my FB page.

    From my Ipad, when I am in Facebook, I can not hear the videos posted to my FB page...Sounds works on all other apps just not my videos on my FB page.

    Homesharing has issues that have not been fixed over several versions of itunes and ios.
    Only kind of fix is go back through your library and retag it.

  • ILife '11 can not hear the music that is added

    With the iLife'11 I add music from iTunes, I see the green bar but can not hear the music. Worked for years with iMovie and never had this problem. Please help us. This is a major problem..!!

    Wwell, maybe it is just me. I have been using and have bought 7 Apple devices just over the past 3-5 years. Having supported, programmed, configured and taught college level courses for MS based and super computer hardware and software configurations for almost 20 years I am apparently ignorant of differential operations. Previously I had 5 choices on any hardware or software when playing anything like music, video, DVDs or anything similar. I had 'Play' 'Fast Forward' 'Fast Rewind' 'Pause'  a n d  'STOP'. Perhaps Apple has found the STOP unnecessary but I thoro enjoyed knowing whatever I was playing had STOPped and could not continue unless I chose to go back to the program or equipment and chose any of the 5 choices except STOP again since I could not STOP a STOP. As I said perhaps I need to reconsider my choices and obvious ignorance. Thanks for all the help.

  • Who worked with ICS' Model 4896 GPIB? I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    Hello. Most of the engineers in developer exchange are more familiar
    with NI products. Contacting ICS for technical support is a better
    course of action.

  • The report can not retrieve the data from the DB

    Dear all,
    I am facing a problem is that i have ready designed reports in Crystal. While refreshing the report in Crystal, it gives an error that it can not retrive the information from the database. But, if i am using the application which the report is attached, it is giving me the results and showing the report in Crystal. Even, for testing if i add a new field, i have to run it from the application, but directly from the Crsytal Reports, it displays an error.
    I hope you will help me in the issue.

    Could you please provide more information:
    What is the database? (Oracle, SQL Server, xml, etc.)
    What type of connectivity? (ODBC, Native, OLE DB, etc)
    Are application and Crystal Reports are running from the same machine?
    What is the error message? Any error numbers?

  • Unfortunately, I lost by an update all the apps on my iPad 2. Now I can not pull the data from the cloud to my iPad. How is this possible?

    Unfortunately, I lost by an update all the apps on my iPad 2. Now I can not pull the data from the cloud to my iPad. How is this possible?

    If you just installed iCloud does that mean you updated the iOS that's running on your iPad?  If so, you'll want to restore all the programs you have from the backup you hopefully made.
    Refer to these articles for help.
    iTunes: Backing up, updating, and restoring iOS software.
    If you don't want to use iCloud, simply don't activate it.
    You can also download the programs again.
    If you live in a country that supports re-downloading apps then you can re-download them.  You can refer to this article for more help.
    Downloading past purchases from the App Store and iTunes Store
    What to know if your country supports downloading past purchases?
    iTunes in the Cloud Availability

  • Epub books show up in ipad on itunes but do not show up on ipad. Also can not delete the books from ipad in itunes

    epub books show up in ipad on itunes but do not show up on ipad. Also can not delete the books from ipad in itunes

    You have no choice but to lose your data back to the last backup you made.
    Here's how to do the recovery.  Note you may have to try to get into recovery mode more than once to succeed:
    HT1808
    I'm sure next time, you'll be more vigilant about keeping current backups.

  • Can not get the agent from rule determination

    Dear expert,
      We have a PR workflow,for one step, the agent is determined by one rule,In our Q system,everythink is ok to get the agent correctly,and the workflow also can works.but in our P system,can not get the agent from the rule,when we simulate the rule,the agent can be get smoothly,but in workflow,realy can't get the agent(after trace the workflow), so would you like to give me sone suggestion, whant had happen in our workflow?
    Many thanks!
    Best Regards,
    Kerry

    Tks!
    I have one question,how to check the agent assignment is active?
    and also want to say,the rule that determin the responsible agent is used at one step of the workflow,not for possible agent of task ,and the rule's type is RESPONSIBILITIES.
    Best Regards
    Edited by: Kerry Wang on Jun 25, 2010 3:14 AM

  • I can only make the call on the third try, I can not hear the ringer

    I can only make the call on the third try, I can not hear the ringer

    Hi stig68,
    If you are having grouping issues with compilation albums in iTunes, you may find the following article helpful:
    Apple Support: Why aren't songs with the same album art grouped together?
    http://support.apple.com/kb/TS1468
    Regards,
    - Brenden

Maybe you are looking for