Make a voice transmitter over the network?

Hi i have read that it is possible in javax.sound to send or transmit live audio over the network or simply make a VoIP phone using the javax.sound api. I would like to ask if how can I be able to send the sound of the network. I have this step by step instruction about capturing and sending the voice in the network:
• Use TargetDataLine for streaming capture
• The TargetDataLine is wrapped in an AudioInputStream so that it can be converted to the network format with AudioSystem
• a capture thread reads from the converted AudioInputStream and writes it to the network connection's OutputStream.
Here is my code:
     audioFormat = getAudioFormat();
        DataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class, audioFormat);
     targetDataLine = (TargetDataLine)AudioSystem.getLine(dataLineInfo);
     audioInputStream = new AudioInputStream(targetDataLine);I am not sure about this code but I am sure that there must be a targetDataLine associated in sending the voice. Please help me with this. Thank you.

TargetDataLines are for reading from, SourceDataLines are for writing to, and AudioInputStreams are for loading/saving from a file.
That said, there will be a TargetDataLine you can read from that's associated with your microphone. You create an AudioInputStream to read from the TargetDataLine (which is just an argument in the constructor), and then you can do...
AudioSystem.write
Give it the AIS associated with hte TDL, and you can either have it write it to a file or to an output stream. If that output stream was, say...an IP socket stream...then you could send it over the network to the other side...where you'd then need to construct an AudioInputStream to read it from the IP socket stream, and then to play it, you'd read some data from the AIS and write it to a SourceDataLine.
Here are some resources to help you with the JavaSound stuff.
JavaSound Example code (take a look at SimpleAudioPlayer & SimpleAudioRecorder in the Audio Playback and Recording section)
[http://www.jsresources.org/examples/]
Programmer's guide
[http://java.sun.com/j2se/1.5.0/docs/guide/sound/programmer_guide/contents.html]
And then just the normal Java SE6 API
[http://java.sun.com/javase/6/docs/api/]

Similar Messages

  • Printer HP Envy 4500 Series cannot be contacted over the network

    My wireless printing chooses when it wants to work, and right now it's really acting up. It is connected wirelessly, it is the default printer, but after troubleshooting it is telling me "Printer HP Envy 4500 Series cannot be contacted over the network." What can I do to get printing again?

    Hello featherfamily,
    Welcome to the HP Forums.
    I see that you are having an issue with the printer not connecting with a wireless connection.
    Please click on the following link that deals with when the 'Printer is offline' Message Displays on the Computer and the Printer Does Not Print: Windows 7.
    Please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
    If the troubleshooting does not help resolve your issue, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
    Thanks for your time. 
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Pinging a printer to see if it works over the network

    I've been printing from a Windows 7 computer to a PSC C6180 over a wireless network.  All of a sudden it stopped printing.  I don't if a power surge or something blew some stuff out (the fax part is already gone) or if it is something else. 
    I removed the printer and removed the installed software in order to put it back in its "initial state." 
    Before I removed the software, I tried to add a network printer to see if that would do it.   At the point in the process where it looks for printers, it didn't find it.  It makes me wonder if it will work over the network at all, but I do note the blue 802.11g LED is lit.
    Before I reinstall the software (AIO_CDA_FSW_Full_Win_WW.130_140.exe is what I have) I want to ping the printer and see if the computer can see it.  What's the ping address?

    Hello ErnieLane,
    Please follow steps 1-4 described in Access the Embedded Web Server to print a configuration page, it will contain the current IP address (if any).
    Hope this will help.
    Regards,
    AndOne
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"
    (Although I am employed by HP, I am speaking for myself and not for HP)

  • HP photosmart C4700 cannot be connected over the network.

    my printer was recently unplugged and refuses to print. i have reinstalled all drivers and software but still cannot connect over the network. please help soon as i desperatley need to print off college work. this has happened before but reinstalling the drivers worked.

    Hi..
     try this one....
    Uninstall any remaining Hp printer program from your system..
    1. Click windows logo or start button- on the search box or run - type in %temp%, press enter
    2. look for the 7z folder on the TEmp folders.
    3. Open &z folder and look for util- open util look for ccc folder- open ccc folder loofk for uninstall3.
    4. Procedd to Uninstall level 3- restart the computer -go back to %temP% trhen delete tye 1st 7z folder-- to the same process for the remaining 7z folders- open util-ccc-uninstallL3- restart Pc and delete te 7z folder
    5. Once your'e done- go to add or remove programs or programs and features to uninstall remaining Hp printer software.. then restart you pc again..
    Follow these steps before re-installing the printer:
    Click Start , and then click Run . The Run dialog box opens.
    In the Run dialog box, type msconfig , and then press Enter .
    If the User Account Control window opens with the message 'Windows needs your permission to continue ,' click Continue to close the window.
    In the System Configuration window, click the Startup tab, and then click Disable All .
    Click the Services tab, click the Hide all Microsoft services checkbox, and then click Disable All .
    Click Apply , and then click OK .
    When prompted to restart the computer, click Restart later .
     Restart the network devicesFollow these steps to restart all the devices on the network.
    These steps include turning off the computer. Consider bookmarking this page for ease of reference.
    Press the Power button to turn off the product.
    Click Star,  click Shut Down , and then click Shut Down from the drop-down list.
    Turn on the wireless access point (router).
    Press the Power button  to turn on the product.
    Press the power button on the computer to turn it on.
    When the computer turns on, a System Configuration Utility message opens on the computer. Select the Do not show this message again check box, and then click OK .
    proceed to the installation.......then prove functionality...if successful continue these steps
    Re-enable startup programs and services
    Click Start ( ), and then click Run . The Run dialog box opens.
    In the Run dialog box, type msconfig , and then press Enter .
    If the User Account Control window opens with the message 'Windows needs your permission to continue ,' click Continue to close the window.
    In the System Configuration window, click the Startup tab, and then select the check box next to each program that should run when you turn on the computer. If a program should not run when the computer is turned on, leave the check box clear.
    CAUTION:Do not disable any Microsoft services.
    If no changes should be made to startup programs or services, click the General tab, and then select the Normal Startup checkbox.
    Click Apply , and then click OK .
    When prompted to restart the computer, click Restart .
    Although I am working on behalf of HP, I am speaking for myself and not for HP.
    Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
    Happy Troubleshooting : )

  • HP Software finds the printer, but then "the printer was unable to be installed over the network"

    I have tried to search for a similar issue, but haven't had any success yet.  I doubt I'm the first with this problem!
    The computer is XP SP3, the printer is Deskjet 3050A, and it's a WPA-PSK WiFi.
    The printer confirms that it is connected to the WiFi.
    When I run the setup tool on the computer, at the Network Check point, the setup software finds the printer at the correct IP address.  It is the only thing it discovers.
    I click next, ànd after a minute or two, I get the error "the printer was unable to be installed over the wireless network"  Click Retry to try installing the printer over the network again, or click Cancel to return to the connection options.
    This just cycles with no progress.  I have turned off the Windows Firewall and also disabled the AV.  No change.
    I can browse to the web interface of the printer - but still can't install the printer.  It is listed in the Printers and Faxes as being Offline.
    I'll try once again removing it, and re-adding it - but has anyone come across this problem before, please?
    This question was solved.
    View Solution.

    I am having a similar problem as well.  The printer is recognized (most of the time) when I run the HP Network DIagnostic Utility.  However, when I run the Add a Device setup program to install my wireless printer, it is NEVER recognized.  I have even tried to use the advvanced serach to locate it using the IP listed in the Diagnostic Utility without any luck.  As an aside, I was able to add the printer through windows just fine and am currently able to print to it, but would really like to add it using the HP installation so that I can configure the "scan to" settings again.
    To make matters worse, I no longer have the USB cord that came with the printer because the device has been connected wirelessly for over a year now with minimal issues.  Any help getting this brick back online and connected to my network would be much appreciated!

  • Time Machine over the Network: Terribly Slow

    Hello,
    I've been using Time Machine for over 3 years now with no issues over the network; the destination being a 2TB external Seagate connected to another iMac connected through gigabit ethernet. Everything has been working flawlessly: Every hour Time Machine would MOUNT the sparseimage it created on the disk, BACKUP the data and UNMOUNT the disk image when finished.
    Until I upgraded to Lion. The above process is still working per se, however it is PAINFULLY slow! A 50MB backup can take up to AN HOUR! Searching around on the net, advised that there could be an issue with Spotlight as well, however this is not the case for me, since Spotlight finished a new index in under 30 mins. Followed every tutorial I could find on the issue, to no avail..
    I then upgraded to Mountain Lion with the hope that the issue will clear itself. Cleared my old backups, resetted Time Machine by erasing its .plist file, restarted my iMac just to make sure and connected Time Machine to the network share anew, creating a "sharing only" account on the host iMac, i.e. the one that has the external HD connected through USB. Still no luck.
    I painfully realize that I still have the same issue. While backing up, network traffic is under 100KB, and activity monitor does not show any backupd or mds or any similar processes taking anything over 3% of CPU time.
    What could be wrong?

    Hello again,
    Tries on the other iMac (also running 10.8.2) and things are exactly the same: Image creation takes almost half an hour, and copying crawls at under 1MB/min. While time machine image is mounted and Time Machine is "backing up", accessing ANY disk on the host Mac is VERY slow. Seems like something hogs up appleshare when Time Machine is in use. Mind you, there is insignificant network traffic as seen by Activity Monitor, as well as insignificant CPU usage while backing up.
    Stopping backup and using tmutil to set the Time Machine destination to the mounted image as mounted by Finder, solves the issue again, revving up Time Machine throughput to over 20MB/sec! There is also no issues acessing the other Mac as well, under this scenario.
    Up to this point, the only way I have managed to use Time Machine over a networked external HD is through the NAS server. Both configurations where I am using a Mac running 10.8.2 as a server of the external disk have failed with very low throughput while backing up. Something must be wrong in 10.8.2's afp when Time Machine is mounting the image by itself.
    I may need to remind you that I have been successfully backing up to the external HD for 4 years now; something broke a few months after the client iMac was upgraded to Lion and at the time when the host iMac was upgraded to Mountain Lion. Will try to locate a Mac running some later OS X version to do some more testing.
    Also reminding that I have used two distinctive iMacs and two external HD drives for my tests so far. The client iMac has remained the same, however 10.8.2 has been reinstalled on it a couple of times. Have also used an afp-enabled NAS server which worked fine with Time Machine.

  • App imitates sending out a virus over the network

    The last time I ran the Classic App called "Farallon Ping" which came with my old Farallon NC I bought years ago was back in 2003 or 2004 and I was told by IS of the University I was attending not to run it again as the app makes it appear to be sending out viruses over the network. The app is useful as it tells me my IP address and the IP address of every computer in my domain and offers many other features some of which that are lacking in the built in OSX utilities.
    I am at a much larger University these days and I was wanting to run this app for the features but not sure if I should.
    Is this post appropriate for this group and if so what do you say?
    Thanks

    Know nothing about Farallon Ping. Would MacPing at http://74.125.93.104/translate_c?hl=en&sl=nl&u=http://dartware.com/downloads/leg acy.html do the same thing?
     Cheers, Tom

  • Is posible restart a engine over the network whith DSC?

    is posible restart a engine over the network whith DSC?

    You can stop/launch the DSC Engine from a remote application using the VI Server.
    A remote VI can launch the engine using the Launch Engine.VI or stop it using the Engine Shutdown.VI.
    They are located at
    C:\Program Files\National Instruments\LabVIEW 6.1\vi.lib\lvdsc\_engine\User\
    If you are going to use VI Server, just make sure that you enable the VI Server on the Computer that has the Engine.
    There is also an executable that launches the engine called DSCEngine.exe located at
    C:\Program Files\National Instruments\LabVIEW 6.1\
    that you could access remotely if you share the LabVIEW 6.1 directory. This executable can be used to launch the engine also.
    I would recommend using the VI Server, since sharing the LabVIEW directory might not be a good idea.

  • Sending Connection object over the network

    Hi,
    How can a Connection object be sent over the network and run on another JVM. I need to hold connection object to execute processes one after other, that require Oracle connection without ever connecting again. I do not have J2EE container or webserver setup to hold connection/connectionpool,but need to run the process on command line. I am using RMI infrastructure to pass parameters/return values but connection object is not serializable and cannot be marshalled and failing. Please explain, if there is another way using JDK 1.4
    Sudheer

    I don't believe this is possible. A connection object has a number of associated structures on the operating system, which generally makes it impossible to move. From a fundamental networking level, you also cannot, in general, cause a connection to machine1 to start communicating with machine2-- that would introduce all manner of security problems.
    Why don't you want to just create another connection on the other machine?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Corporate Win7/Office 2010 | Severe Lag when opening Office 2010 files over the network

    Good Evening Everyone,
    I work in a corporate environment for one of the top banks in the country (USA). We recently upgraded our computers to Windows 7. (The image has office 2010 included in the build)
    I've been experiencing some severe lag when opening Office files over the network. Let me start by saying I've researched a lot and have yet to find a solution that works or even makes much of an improvement. 
    Notes: My laptop is new (64-bit Win 7 Enterprise). The remote desktop where the files lie is new as well. (64-bit Win 7 Enterprise) Both computers have good hardware and more than enough juice to handle applications. 
    There are certain files I work on along with other co-workers that we store on a computer within the office. We simply create shortcuts to the files on our local machines and make changes, etc. from there. However, after this upgrade, every time I try to
    open a file on the remote computer, it takes over a 1 minute to load. I've spoken to our support team who sent someone out and confirmed it's not the network. 
    Both computers are on the same subnet as well. I've changed the trust center settings on both the client computers and "server" to trust any computer on the network. I have also changed the network card's speed from "Auto Negotiate" to
    full duplex 100mbps with no luck.
    I am out of options here and in desperate need for a fix. Even saving changes to a file we work on takes forever. 50% of the time when I close a spreadsheet, the title bar has a not responding message and takes a minute to eventually close. 
    PS: Extra Info : All computers run McAfee AV and use McAfee for disk encryption. I've confirmed all computers are up-to-date in every respect with the AV software. 
    Thanks,

    Try: 
    Open My Computer.
    Open the Tools menu and choose Folder Options...
    Select the File Types tab.
    Select the extension (for example DOC, or XLS) of the file that is slow to open.
    In the Details section, click [Advanced], and another dialog box will open. 
    In the Actions section, click Open then click [Edit...], and another dialog box will open.
    http://windowssecrets.com/forums/showthread.php/149672-10-9-2012-Updates-and-very-slow-opening-of-Office-files
    KR

  • Capturing video to a file while transmitting it over the network

    I have tried several ways to do this but non of them have worked. On the JMF Programmers Guide its stated that one could do something like this: creating a processor from a DataSource, and the taking two Datasources from the processor, one is used to transmitt the video over the network, and the other is used to save the data to a file(through a DataSink).
    One of the ways I've tried is to clone de DataSource before creating the Processor. I've also tried to clone the Data source after creating and realizing the processor. The other way I've tried is by using the JMFSolution "Video Capture Utility with Monitoring", found at the jmf's homepage, which intercepts the data carried from the capture data source to the Processor.
    Non of these have worked, and I always get Exceptions about not finding a DataSink for the DataSource I use. For example:
    "javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.multiplexer.RawBufferMux$RawBufferDataSource@d9850" ;
    "javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.vfw.PushBufferDataSource@1e45"
    I've search the Web triying to find something clear about capturing video to a file while transmitting it over the network, but nothing seems to work.
    I would appreciate a piece of an advice on this.

    you can try modifing de Capture example from JMF Solutions.
    change this function:
    public int startCapture() {
         int result = -1;
         enableComponents(false);
         buttonStart.setLabel("Pause");
         buttonEnd.setEnabled(true);
         startMonitoring();
         try {
    processor.start();
    DataSource clone = Manager.createCloneableDataSource(datasource);
         MediaLocator ml2 = new MediaLocator("file://capture.mov");
    System.out.println("Content Type " + clone.getContentType());
    datasink = Manager.createDataSink(processor.getDataOutput(), ml2);
         datasink.open();
    datasink.addDataSinkListener(this);
         datasink.start();
    result = 0;
         } catch (Exception e) {
         System.err.println("DataSink Exception " + e);
    result= -1;
    Regards.
    Fernando

  • Installing an app from DVD-ROM on an iMac, over the network, to an iBook G4

    I have a rather broad question: my in-laws want to install Office 2008 onto an iBook G4. Unfortunately, the G4 only has a CD-ROM drive (ie, read-only), and the Office 2008 install media is DVD-ROM.
    They have a new iMac (onto which Office 2008 has already been successfully installed), and my suspicion is that you can share the install disk over the network, but I can't seem to find any detailed instructions on how to do so. I am (unfortunately) Mac-less at the moment, so I can't experiment myself, and my in-laws are about 2,000 miles away, so I can't just pop over and play around until something works.
    Anyone have any guidance on how to use the DVD drive on one machine as a way to install on another over the network?
    The iMac has Leopard installed, the iBook G4 has the latest version of Tiger.
    Don't worry, no licensing issues as it's the Student/Home edition of Office 2008; you're entitled to install it on up to three machines.

    Go to System Preferences/Sharing and make sure that DVD or CD Sharing is checked. Ensure both Macs are connected to the same network. Insert the Office 2008 DVD into the Mac with the DVD drive. Open a finder window on the Mac without the DVD drive connect to the other machine. You should see the Office 2008 DVD in the finder window and you can install from here.

  • I need to copy files over the network PSSession . ( Firewall / DMZ / Etc. )

    Hello
    I need to copy files over the network PSSession . ( Firewall / DMZ / Etc. )
    I have a script where I copy from my local server ( server1) to the remote server ( server2 ), but I can´t not make script that will copy from the remote server to my local by my session. From server2 to server1
    Script is as below ...:-)
    HELP : ....
    winrm s winrm/config/client '@{TrustedHosts="SERVER2"}'
        $Source = "D:\test\ok.log"
        $Destination = "D:\test\ok.log"
        $session = New-PSSession -ComputerName SERVER2
    Set-StrictMode -Version Latest
    ## Get the source file, and then get its content
    $sourcePath = (Resolve-Path $source).Path
    $sourceBytes = [IO.File]::ReadAllBytes($sourcePath)
    $streamChunks = @()
    ## Now break it into chunks to stream
    Write-Progress -Activity "Sending $Source" -Status "Preparing file"
    $streamSize = 1MB
    for($position = 0; $position -lt $sourceBytes.Length;
        $position += $streamSize)
        $remaining = $sourceBytes.Length - $position
        $remaining = [Math]::Min($remaining, $streamSize)
        $nextChunk = New-Object byte[] $remaining
        [Array]::Copy($sourcebytes, $position, $nextChunk, 0, $remaining)
        $streamChunks += ,$nextChunk
    $remoteScript = {
        param($destination, $length)
        ## Convert the destination path to a full filesytem path (to support
        ## relative paths)
        $Destination = $executionContext.SessionState.`
            Path.GetUnresolvedProviderPathFromPSPath($Destination)
        ## Create a new array to hold the file content
        $destBytes = New-Object byte[] $length
        $position = 0
        ## Go through the input, and fill in the new array of file content
        foreach($chunk in $input)
            Write-Progress -Activity "Writing $Destination" `
                -Status "Sending file" `
                -PercentComplete ($position / $length * 100)
            [GC]::Collect()
            [Array]::Copy($chunk, 0, $destBytes, $position, $chunk.Length)
            $position += $chunk.Length
        ## Write the content to the new file
        [IO.File]::WriteAllBytes($destination, $destBytes)
        ## Show the result
        Get-Item $destination
        [GC]::Collect()
    ## Stream the chunks into the remote script
    $streamChunks | Invoke-Command -Session $session $remoteScript `
        -ArgumentList $destination,$sourceBytes.Length
        Remove-PSSession -Session $session

    But have will the script look,  if i need to copy from
    From server2 to server1.
    My script copy from server1 to server2 and working, but I need server2
    to server1.

  • Bluetooth mouse cuts out when transferring files over the network

    Just as the title says: whenever I copy files to a PC over the network (via SMB I think its called) My bluetooth mighty mouse will start getting very jerky and makes is very difficult to move the cursor on the screen. However, my Bluetooth keyboard is comply fine. Both are using Lithium batteries and where just replaced about a month ago. Also, both are in close range...about 2 feet. And it only happens when coping files.
    Any ideas?
    -Scott

    I don't connect to network volumes that often, but I did again today and noticed that my bluetooth keyboard completely cut out (had the "discounted" HUD come up) and then the keyboard would not reconnect until the file copy was complete. I don't know about the mouse as lately I've been using my Microsoft mouse that hasn't been giving me any troubles. (like really, Microsoft and "no troubles" in the same sentence??? lol)

  • Epson Stylus CX5400 printing rubbish over the network!!!

    Hi! I am visiting my mom and dad for the holidays and they have an all-in-one Epson Stylus CX 5400 connected to their WinXP computer. Bonjour installed as well.
    I have tried a few times to print some photos from iPhoto. I also tried printing an email from Apple's Mail. Everytime all I got was... nonsense basically. This kind of printout with unreadable characters.
    I thought the lack of drivers for such a device installed in my PB should make no difference but anyway I tried installing them. I was right, the result was the same.
    File sharing takes place without problem. As far as I know the drivers are up to date on both computers. If I connect the CX5400 directly to a PB's USB port it works great, but no otherwise.
    Any thoughts?
    Merry Christmas and happy 2006.
    George...

    Neither the PC nor the printer know what to do with the PostScript your Mac is sending. When the printer is attached directly to the Mac you use the printer's USB driver which speaks the printer's language, but when you send it over the network to the PC, you are using PostScript printing which the PC can't raster, and the printer doesn't understand. I don't think there is a solution here. I doubt there is a PostScript driver for that printer. You could install GhostScript on the PC, but that is very complicated and probably not worth it.

Maybe you are looking for

  • Pointing an emailed fdf to the right pdf form

    I am using Acrobat 8 Pro and I've designed a pdf form that I need to distribute and collect over email. Part of the data is filled in first by another application, which then also distributes the forms. This application requires that usage rights are

  • Save Order - Call function in background Task

    Hi all, I have written a function module which is called in order save Badi and copies the system status on the Master contract to the sub contracts. This works fine but when I call this function in background task the status is not getting copied ov

  • Sign In Not Working

    I have purchased loads of music and audiobooks, the last on was in April...Now when I sign in, it flips me to the billing info screen, my info has not changes, I add in the security code, click done. When I go to buy again, the same thing happens. An

  • Stop and Start sounds

    Good morning All, I have a Flash presentation that has some music and various sounds throughout the presentation. I want to have a btn stop all the sounds, but if clicked again it will enable all the sounds again. Is this possible? I can get the btn

  • Static NAT to inside DNS address

    I'm struggling to address an issue where as a policy I have internal virtualized/clustered servers on reserved DHCP addresses on a separate VLAN, and occasionally there is a situation where by the guests change hosts and end up on another VLAN (for w