How to play  received voice chunks from the network ?

How to build java media player that will play received voice chunks from the network , the application should play all received chunks continuously with no time span .

i have written the below code :
Player player = null;
        int i = 0;
        try {
            for (i = 0; i < 20; i++) {
                player = Manager.createPlayer(new URL("file://c:/xtmp/1-" + i + ".wav"));
                player.start();
        } catch (IOException ex) {
            System.out.println(i);
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } catch (NoPlayerException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } catch (Exception ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } finally {
            player.close();
        }but It doesn't work , although the file path is correct

Similar Messages

  • How do I receive multiple texts from the same sender, each individually?

    How do I receive multiple texts from the same sender, each individually?

    So I receive automated reminders from my job &amp; I want them to come individually. For example, one text -- time stamped 10:14 pm, then another 11:12 am, coming as separate msgs.

  • How do you remove voice memos from the iPod after downloading it to iTunes?

    first of all, which model of voice recorder is best for the 5G video 30 gb iPod? I have heard of Griffin iTalk and Belkin Universal Microphone Adapter, but i'm leaning towards the iTalk b'c it looks cheaper on Amazon and eBay. does anyone suggest anything along those lines?
    and also, after recording voice memos (like class lectures and such) onto the iPod and downloading them to iTunes, how do i remove them from the iPod? do i have to make them a different program file (like windows media player, and not iTunes)?
    Compaq Presario   Windows XP   2001

    Hi King Arthur 2000,
    Voice memos can be shared back to a computer in a number of different ways, described in this article -
    Share a voice memo - Voice Memos - iPhone Basics - Apple Support
    http://support.apple.com/kb/TI227
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • How to play an audio file from the begin.........

    Hello to everybody,
    I am working on a application that is supposed to manage audio file. At the moment I 'm using the SourceDataLine instead of the Clip. But I've got a problem. When the user pushes the Stop button I want that if he pushes Play again the track starts from the begin. I've used the drain() and flush() method but it doesn't work because the track resumes from the point when has been interrupted. Here part of the code:
    @Override
    public void run()
    try
    if(dataline!=null)
    dataline.open(audio_format);
    dataline.start();
    int i=0;
    while((i=audio_input_stream.read(buffer, 0, buffer.length))!=-1 && flag==false)
    if(i>0)
    dataline.write(buffer, 0, i);
    dataline.drain();
    dataline.stop();
    dataline.flush();
    dataline=null;
    dataline.close();
    And also I'd like to know how to navigate through the audio file by a slider or something like that, so how much time is passed.
    Thank you in advance.
    Maurizio Di Vitto

    mauriziodvt wrote:
    I've tried to use it but I found out that if I use quite large wav files an exception is thrown, Aha! I expected as much. That is why I developed BigClip.
    ..so I thought to change to SourceDataLine even if Clip has the right stuff to manage my audio files. So what do you suggest? Is there a way to avoid such problem? I mean, how can I be sure that I'm able to use every wav files? Not every WAV file can be opened using SourceDataLine, but if SDL can open it, so can BigClip.

  • How to stop receiving e-mails from the Adobe Forums?

    After the recent upgrade to the Adobe Forums you may notice that you are receiving additional e-mail messages from the Adobe Forums.
    To turn off e-mail notifications please complete the following steps:
    Go to https://forums.adobe.com/welcome
    Click on your Avatar and choose the Preference option
    Alternately you can click on https://forums.adobe.com/user-preferences!input.jspa to access your Preferences.
    Under the General Preferences you can adjust your e-mail preferences.  You can choose which type of notifications you wish to receive e-mail notifications for.  I would recommend disabling the e-mail regarding Moderation Notifications
    Once your selection has been made then click the Save button to apply the settings change.

    What does “I cannot export or copy and paste or drag the mail over” mean?
    Mail stores most preferences and all account settings in ~/Library/Preferences/com.apple.mail.plist (except the passwords, which are stored in the keychain). Everything else, including all your messages and mailboxes, is stored within the ~/Library/Mail/ folder.
    Similarly, Address Book stores the settings in ~/Library/Preferences/com.apple.AddressBook.plist and the data in ~/Library/Application Support/AddresBook/.
    Other applications store preferences and data in other places. You may want to ask in the appropriate forums for more information on those.
    If both computers are running the same major version of Mac OS X, copying these files & folders from one computer to the other is all you need to do in order to have an exact copy of all your data on both computers.
    In order to avoid potential permission issues, copy the files operating on the destination computer and while logged in as the user that’s going to use them. Also, be sure the affected applications aren’t running on either computer while doing that.
    Alternatively, you may use Migration Assistant, as Michael suggested:
    Transferring data with Setup Assistant / Migration Assistant FAQ
    And you may want to read the following articles as well:
    Transferring files between two Macintosh computers
    How to back up and restore your important Mac OS X 10.4 files
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • How "hide" SQL Server Express 2012 from the network

    Hello
    I want to install SQL Server Express 2012 in my company-provided laptop. Since the service is going to "announce" itself on the network so that client can find it, I would like to know how to prevent the broadcasting, in such a way that my installation remains
    "hidden".
    Thanks a lot.

    Sudeepta,
    If the browser service was stopped named instances (unless specified on tcp port 1433) shouldn't connect. It was have to be specified as Hostname\InstanceName,PortNumber as part of the role for the browser service is named instance port lookup.
    EMoscosoCam,
    Sudeepta is correct though, the browser service is reponsible for best effort udp broadcast replies. It is also possible to keep the browser service running and use the "Hide Instance" feature in SQL Server Configuration Manager. Open up SSCM, expand SQL
    Server Network Configuration. Right-click on the instance to "hide" and choose properties. Under the Flags tab should be "Hide Instance", set this to yes.
    While both ways would work, the actual hiding on an instance is extremely hard with SQL Server due to port scanning. If better security around it is required you will have to work with your networking team to develop well defined firewall rules.
    -Sean
    Sean Gallardy, MCC | Blog

  • HT5772 How do I delete voice memos from my phone?  It does not show on the app or in iTunes.  Thanks!

    How do I delete voice memos from my phone?  It does not show in the app or in iTunes.  Thanks

    Welcome to the Apple Community.
    Settings > Music > Show all music > Off

  • HT5622 We have two iphones with the same Apple ID. Since I installed iOS this morning I have started receiving all my sons texts and when I send him a text it is delivered to both of us. How can I remove my phone from the joint Apple ID and remove myself

    My son and I both have iphones with the same Apple ID. Since I installed iOS this morning I have started receiving all my sons texts and when I send him a text it is delivered to both of us. How can I remove my phone from the joint Apple ID and remove myself from finding out what he is up to during Freshers week!

    You have to use a different Apple ID for your son.
    Read this note:
    iOS 5 & iCloud Tips: Sharing an Apple ID With Your Family
    still valid for ios 7

  • Hi everyone, I have received a new iphone today. I have an ipod touch but no longer have the computer it is synced to. How do I get my music from the touch to my new iphone? many thanks Anna-Marie

    Hi everyone, I have received a new iphone today. I have an ipod touch but no longer have the computer it is synced to. How do I get my music from the touch to my new iphone? many thanks Anna-Marie

    Joe Z in VA wrote:
    First try this:
    - Go on iTunes computer
    - plug in the iPod
    - authorize your device from store/authorize
    - iPod / transfer from iPod by right clicking on the left pane
    This will only transfer iTunes purchased music, not ripped CDs. and it is unnecessary now, as the music can just be downloaded from the cloud.

  • Ever since I enabled iMessage on my Mac Airbook, I can no longer receive text messages from the iMessage people on my iPhone, only on my iMessage now!!  How do I get the messages to reach both iMessage and iPhone??

    Ever since I enabled iMessage on my Mac Airbook, I can no longer receive text messages from the iMessage people on my iPhone, only on my iMessage now!!  How do I get the messages to reach both iMessage and iPhone??

    We are suffering very similar issues when communicating from my iphone to a friend who has both iphone and iPad enabled.
    As long as I reply to an existing text chain, then it is visible on the target iphone.  If I SMS the phone number, it gets routed to the IPAD!!   And NO, I should not have to disable imessage when I want to send an SMS!!

  • How can I stop receiving email automatically from the community when they have issues with there problems regarding the apple products.

    How can I stop receiving email automatically from the community when they have issues with there problems regarding the apple products.

    Click here for the instructions on stopping the emails.
    (85713)

  • Hi,my system is Mac OS X v 10.5 Leopard the problem is that when click on a file, immediately a box appears around the file and the title of the file is read !so how is it possible to escape from the voice?Thank you for your advice

    Hi,when click on a file, immediately a box appears around the file and the title of the file is read !so how is it possible to escape from the voice?Thank you for your advice

    Turn off Voiceover!
    System Preferences/Universal Access

  • How do you put Voice Memos from iPhone to computer?

    I've had a very long chat with Apple Support and they don't seem to know the answer.
    My voice memos are important and are above 30MB so emailing isn't an option.
    I first synced my memos to my iTunes as usual (music doesn't sync with the library, bear in mind) and expected all my memos to appear, however they didn't. They appeared in the "on my device section" but I couldn't play them as the exclamation point appeared.
    Under Apple's instruction I updated to the new iTunes, and now the previous memos don't even appear in the "on my device" section. They said it's likely to do with ios 8. The memos I want were created in ios 8. And now they've randomly been duplicated on my phone so I have two of each?
    So after this iTunes update, I made a new memo, which again was duplicated, but now appears in the "on my device" part.
    What do I do to put the memos onto my computer somehow? I really need them!

    The following is pre iOS 8 but may have something that you missed: http://www.macworld.co.uk/how-to/iosapps/transfer-voice-memos-from-iphone-to-com puter-3526349/
    One new thing I learned from it is that Evernote which I use for keeping some text notes in sync among various devices has a voice memo capability. Those would be automatically transferred. Here is some more information on that if you want to check it out for future use: https://evernote.com/contact/support/kb/#!/article/28606837

  • How do I backup voice memos from iPhone 4 to my Macbook with iOS 6.0?

    How do I backup voice memos from my iPhone 4 to my MacBook, with iOS 6?
    I have synchronised them a hundred times but iTunes just doesn't backup my voice memos. And I haven't seen a playlist called "Voice Memos" on the left sidebar either...

    Look for Voice Memos under Genres in iTunes.
    With the phone connected, click on its name on the left. Then click on the Music tab on the right. Is "Include voice memos" checked?

  • Hi how do i delete voice memos from my iPhone 4 after I have synched them with iTunes?

    Hi how do i delete voice memos from my iPhone 4 after I have synched them with iTunes?

    Hi James thanks so much for your reply
    What I was trying to do though was to mass delete the voice memos from the phone, and I was told that one can do that via iTunes. Problem is that when I do open iTunes, I am not able to locate a TAB thats says ON THIS IPHONE
    I was told that one could click on this and then select multiple Voice Memos and delete this way.
    Thanks again for your assistance

Maybe you are looking for