Capturing audio from sound card

Hi everybody, I need to record the output from my sound card, I've investigated and I've just found how record sound from the microphone and I don't need this ..... I hope somebody helps me ...
thanks

Dear seniors,
i have tried to display my audio file as a graph as
x axis being the Time and the y axis beeing the frequency/pitch.
look at this post, i have mentioned all here...
http://forum.java.sun.com/thread.jspa?messageID=3073027&#3073027
is it possible to display as i desired?
wht the audio stream has? is it frequency or pitch?...
pls do give me some tips on that...
thanx in advance
-Munas.

Similar Messages

  • Can JMF capture audio from sound card?

    I want to know if JMF can capture sound/audio from the sound card. Until now we have been capturing audio from microphone. but is there any possibility of capturing audio from sound card using JMF.
    The audio captured from the sound card is to be streamed using JMF/RTP API.

    Dear seniors,
    i have tried to display my audio file as a graph as
    x axis being the Time and the y axis beeing the frequency/pitch.
    look at this post, i have mentioned all here...
    http://forum.java.sun.com/thread.jspa?messageID=3073027&#3073027
    is it possible to display as i desired?
    wht the audio stream has? is it frequency or pitch?...
    pls do give me some tips on that...
    thanx in advance
    -Munas.

  • Capture audio from sound card

    Is there a way to capture the sound from a sound card, but
    not the microphone?

    Please see this post for response.
    Moved discussion to the Desktop Development forum.
    Chris

  • Audio capture (recording) from sound card doesn't work

    I have a Asus Xonar DS sound card that uses CMI8788 chip,  AV200 kernel driver and snd-virtuoso kernel module. The card is recognised on installation (i686) and there are no issues with the sound output.
    This is a new installation to try to fix the (lack of) recording problem. I know the card can be used to capture sound being played from a web browser, Youtube and internet radio, as I previously had it working with audacity, gnome-recorder and mhwaveedit, but some months ago, after an upgrade it stopped working.
    Alsamixer shows the card as AV200 and I have toggled all the capture options and raised levels to no avail.
    The card is not broken as the capture works fine on Kubuntu and even Win7. I have tried pasting asound.state from Kubuntu but there was no diference.
    Does anybody know a good troubleshooting guide that deals with the capture side, not output.

    "volume: can't open /dev/mixer " is for the users who use OSS so there; you should find out what uses OSS and change it if it is possible and not solely on oss.
    and the error I am having is because I defined the specific software to hwd:0,0. so what i should do is to check my softwares and set the audio output to "default"
    So in another word use you sound card and in output option of your sound card choose "default over hwd:0,0"

  • Stream audio from sound card input thru network

    Good Day:
    I have an application where I need to access instruments at a remote location.  Command/Control of the instruments is not a problem, but I also need to stream the audio present at the remote system's sound card thru the network connection.  Any suggestions on how to accomplish this via LabWindows?
    Thanks in advance for any replies.
    -Ed

    Hi Ed,
    First, I was wondering, how do you get the audio from the sound card?  Is it from a LabWindows program? I've never done that.  Second, I was wondering how do you play the audio on the remote machine?  Is that through a LabWindows program?  I've never done that either.
    But I was wondering if just a remote PC app would do the job.  Like admins use to take over your PC from there desk and fix problems.  I assume they have these that send the audio thru the net as well as the screen.  Then on the radio's PC you just need a LabWindows program to control the radio and some other app to play sound from the sound card input to the local speaker.  Then the remote PC app would magically transfer the screen and audio from the radio PC to the remote PC.
    Otherwise, I can just say that to stream the audio thru the net, after the Radio's PC gets it off the sound card somehow, I would just set up two TCP servers on the remote PC, one for audio and one for the commands/control.  When the remote PC client connects to the audio server the audio server would just start sending audio data to the client.  The client would receive the data and put it in a big buffer to handle network speed variation.  Let the buffer fill up to like a second or more worth of data before having anothe function/thread read the buffer data and give the data to the client PC's sound card.  Big problem is that the client PC's sound card will alway's consume the data at a slightly different speed than the servers sound card produces it.  Different clocks running at slightly different frequencies.  So the client function that reads the audio buffer to give it to the sound card must play games.  If the buffer is shrinking over time then it has to create extra samples to give to the sound card, just duplicating a sample every 100 samples or whatever. If the buffer is growing over time then it throws away a sample every 100 sample or whatever.  So it's kind of a challenge to manage the buffer with the variable speed of the net transfering data and the two different rates of producing and consuming the audio data.
    LabWindows has the TCP server create and client create functions so that's pretty easy.  The harder part is that you probibly want to set the Radio's PC to a fixed IP address so that you can connect to it without worrying about domain names and such.  Then the two TCP ports that the LabWindows uses for command and audio might need to be setup in all the routers to let you establish a connection.  Your IT guy's can answer that.
    PS. you can play around with this suff on one PC by using the RegisterTCPServerEx function and setting the local host address to "localhost", or "127.0.0.1" on one LabWindows project and using the corresponding ConnectToTCpServerEx with "NULL" as the server host name on another LabWindows project.  This creates a virtual TCP connection on the same machine.  This does not duplicate the different audio clock issue I talked about above.

  • Capturing Audio from DAT

    Hello,
    I'm trying to capture audio from a DAT deck (Tascam DA-20) into FCP HD by routing it through my JVC BR-DV600U DV deck (RCA output from DAT, RCA input to DV deck, Firewire into FCP).
    The DV deck's input is set to line-in, and the audio is being routed through (audio meters on DV deck mimic those on DAT deck, and I can hear the audio through the headphones jacked into my DV deck).
    However, when I try to capture the audio on FCP, I am unsuccessful, prompting the following window from FCP: "Error: Final Cut Pro HD was unable to read the movie file just captured."
    Now, I use the same set up I described above to capture footage from my Beta deck into FCP with no problems (route Beta signal through DV deck and firewire it into FCP). This leads me to believe that perhaps the glitch lies within my Capture Presets.
    At first, I tried to capture the signal as an Audio-Only DV NTSC 48 Khz/Non-controllable device. After that failed, I tried to create my own capture preset, but am not sure it will make a difference, as the only input choices I am given are DV Audio, Built-In Audio, and None.
    Any suggestions?
    Thanks.

    Why not capture the audio content outside of FCP, check the sample rate for 48Khz/16-bit, convert if necessary, save as an AIFF file, and then import that resulting sound file into FCP?
    Any good audio app, including STP will do captures.
    You are probably going to need to do some cleanup on the audio anyway before you use it, so why not just use an audio app to do it beforehand?
    Besides, if you have an audio device (PCI card or Firewire device) in your Mac, you can use the S/PDIF port for your connection to the DAT and do a digital transfer when you import.
    As I understand the way you are doing it now, you are taking digital content from the DAT, converting it to analog for the connection into your deck, and then re-converting it into digital when you capture it back into FCP.
    One big advantage of digital audio (and video) is to avoid generation loss and added noise during transfer if you go D-to-D.
    If you don't have an audio card or Firewire A/D audio I/O device with S/PDIF ports in your Mac, then see if you can find a friend who has one and can do the transfer for you. Then he can give you the file on a CD-ROM.
    That's what I'd do.

  • Capturing audio from telephone for use in FCP

    My requirement is quite specific, and so far none of previous posts seem to answer my question. So...
    I'm looking to capture audio from my telephone for use in FCP. It won't be a telephone conversation, but a voice text. In other words, an SMS sent to a landline. The audio is saved as a voice message on the answer machine. My phone / answer machine is fairly basic - it has a speaker and the only ports it has is for power and the telephone line itself. I have tried a very basic method of playing the message on speaker and capturing it on a mini DV - but that results in too much audio edit to get it to sound acceptable. My Mac is a G5 and I have the full FC studio, but just not sure of best way to get audio onto the Mac without losing too much of the sound quality.
    Any suggestions?
    Many thanks all...
    Kirsten
    iMac G5    
    iMac G5    

    you need a telephone audio interface like the products made by the fine folks at gentner, telos or jk audio. i have a celltap from jk audio, works very very well. http://www.jkaudio.com/celltap.htm

  • Capturing audio from microphone and save it to a file

    Hi!!
    I'm searching for a code using JavaSound that allows capturing audio from a microphone and save it to a file.
    thanks in advance and sorry for my English

    Hi,
    Check out these links.
    http://developer.java.sun.com/developer/technicalArticles/Media/JavaSoundAPI/
    http://java.sun.com/j2se/1.3/docs/guide/sound/prog_guide/chapter5.fm.html
    Also this is a very good site for finding similar issue as yours.
    http://www.jsresources.org/examples/audio.html
    Hope this helps.
    Regards,
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • Capture Audio from Mic

    I am new to Java and need to know where to start with developing a Java app that can capture audio from a pc's mic, convert it to mp3, name the audio, and store it in a directory of my choosing. Additionally, I'll need an interface to that audio app that can receive function calls and args from a windows-based application.
    Can you point me in the right direction- sample code if possible.
    Thanks,
    Jeff

    I have the same problem. There doesn't seem to be any sample code for capturing an audio recording with JMF! I have browsed the web, the usenet groups and the (physical) library. It's almost like they try to keep it secret :/
    There is plenty of information on how to use the JMF player, though.

  • Using Flex to capture audio from Flash

    Hi!
    I've been trying for a while to figure out how to capture audio from a flash-application (http://www.delorean.se/mixer)
    and store it as a mp3-file.
    Since I've studied Java for 2 years I thought I'd try and use it to capture the audio but I'm running into problems all the time,
    and I've been advised to look up Flex by other Java users.
    So, I got some questions:
    Is Flex a good tool to use to capture audio from flash-applications and store the audio as a mp3-file?
    Is Flex hard to learn (I've been working with Eclipse for a long time so the IDE shouldn't be a problem and learning another language/framework is always nice)
    Any tips in general?
    Any answers would make me very happy!
    Thanks!

    physical are closed : how will it managed the queues and overspill queues when target is not present? Also the data dictionary must reflect the primary but If you run capture, then you introduce rules that are not on primary: How ?

  • Capture audio from MIC and decode bitsream

    Hi, I am new to windows phone 8.1. I want to capture audio from the MIC using MediaCapture, first I can capture to the audio using recordToSorageFileAsync but I cannot capture it to just to a memory steam, how is this done? Also after it is captured either
    way the recorded data needs to be broken up into a byte array, so that I can bit decode, i.e. I need to determine what is a high and what is a low, the audio is Manchester encoded given a 1 = 25mSec on 25mSec off and a zero = 25mSec off 25mSec on, how can
    I decode the audio to find out this pattern, the audio pattern will have a fixed preamble of FF followed by the data.

    StartRecordToStreamAsync
    method provide the possibility to save to memory stream.

  • Capture audio from separate device

    Is it possible to capture from a camera, but record the audio at the same time from a different audio device, e.g. soundcard?
    (My camera does not have a separate audio input with reasonable quality, so one could save from having 2 separate files by recording video from camera plus audio from soundcard. I'm not sure if that would really work due to latency problems, but I'd like to give it a try if possible.)
    Thanks!

    My practice is to capture sound separately using an hard disc recorder,from two to twenty-four tracks, and to combine this with the video in Premiere Pro. I use the sound track on the tape to achieve synchronization (which is very easy in Premiere Pro). If the room is small (<100 feet) I can use an on-camera microphone. For best results I use a wireless feed from the recorder to the camera.
    It's important to use a digital recorder, preferably at 48KHz sampling speed (you can convert from 44.1 or something else, but the speed may slip). An analog source, like a cassette deck, varies too much in speed, often more than 5%, to be useful. The sync slip is usually less than 3 frames per hour of recording. Most digital recorders have a digital output which can be captured directly by the computer through firewire or USB. If your only choice is an analog sound card, don't bother - too noisy and bad timing.

  • How playing the sound from sound card backward?

    hello
    I write the following program for playing backward the sounds from the sound card:
    package sound;
    import java.io.ByteArrayOutputStream;
    import javax.sound.sampled.*;
    public class SoundLimiter {
          //final AudioFormat format = new AudioFormat(44100, 8, 1, true, false);
         final AudioFormat format = AudioSystem.getClip().getFormat();
         final DataLine.Info info = new DataLine.Info(SourceDataLine.class, format, 1);
         final SourceDataLine soundLine = (SourceDataLine) AudioSystem.getLine(info);
          boolean stopped = false;
          int total;
         public SoundLimiter() throws LineUnavailableException {
              TargetDataLine line;
              if (!AudioSystem.isLineSupported(info)) {
                  // Handle the error ...
              // Obtain and open the line.
              try {
                  line = (TargetDataLine) AudioSystem.getLine(info);
                  line.open(format);
                  // playing back audio
                  line.start();
               // Assume that the TargetDataLine, line, has already
               // been obtained and opened.
               ByteArrayOutputStream out  = new ByteArrayOutputStream();
               int numBytesRead;
               byte[] data = new byte[line.getBufferSize() / 5];
               // Begin audio capture.
               line.start();
               soundLine.open(format);
               int totalToRead = data.length;
                  while (total < totalToRead && !stopped){
                      //numBytesRead = stream.read(data, 0, numBytesRead);
                       numBytesRead =  line.read(data, 0, data.length);
                      if (numBytesRead == -1) break;
                      total += numBytesRead;
                      soundLine.write(data, 0,numBytesRead);
                      //(data, 0, numBytesRead)
              } catch (LineUnavailableException ex) {
                  // Handle the error ...
                   ex.getStackTrace();               
         public static void main(String[] args) {
              try {
                   new SoundLimiter();
              } catch (LineUnavailableException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }Using the above code i received the following error:
    Exception in thread "main" java.lang.IllegalArgumentException: No line matching interface SourceDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian, and buffers of 1 to 1 bytes is supported.
         at javax.sound.sampled.AudioSystem.getLine(Unknown Source)
         at sound.SoundLimiter.<init>(SoundLimiter.java:12)
         at sound.SoundLimiter.main(SoundLimiter.java:59)
    Edited by: 982163 on Jan 16, 2013 1:46 AM
    Edited by: 982163 on Jan 16, 2013 2:32 AM

    Well, first of all, use the tags to format your code.
    Second of all, your code looks pretty horrible (fair enough, you posted in New to Java).
    Lastly, the error message seems to be quite clear, you're trying to open a SourceDataLine with an unsupported format.
    Where did you get this code?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • HP Mini 110-1160SA problem recording sound from sound card

    I am trying to record sound from the sound card itself rather than an external or internal microphone, using a free software called Sonarca Sound Recorder. For example, I play radio from the internet using the BBC Iplayer. I have Windows 7 Starter. When I use the Windows Control Panel > Hardware and Sound > Manage Audio Devices, I get a window called Sound. I press the Recording tab, and get a choice of Internal Microphone, External Microphone, and Stereo Mix. According to my sound recorder software's documentation, I need to select that Stereo Mix, because it means "record whatever the sound card is playing". However, the Stereo Mix recording device, despite having a red tick mark next to it is "Currently Unavailable". How do I make it available?

    to be honest, i am not sure about your problems, normally, you need to set stereo mix as default device, then using recording devices to record sound on windows 7. Since you cannot make it, why not insall a virtual sound device, it works like a real one, install this streaming music recorder on your system, start recording. Just test it out by yourself.

  • Capture audio from soundcard - help!

    Hi everyone,
    I'm tyring to write a little utility that captures everything coming out of my sound card and stores it as a .wav file on the system. (When I say everything, I mean wave output...for now).
    The purpose of this little exercise is two fold, i) familiarise myself with JMF and ii) enable me to store music from online radio stations to burn and listen on CDs later.
    I have thus far got to the point where I can successfully record a .wav file although when I play the file back it's completely silent. I have a sneaky suspicion that this is because I have not configured something to capture from an output port on the soundcard instead of the usual mic/line it etc...
    Another problem I've just stumbled accross whilst testing the code before I post it is that if I run in debug mode and step through everything works fine. If I execute normally I get a "javax.media.NotConfiguredError: setContentDescriptor cannot be called before configured" exception. Why would this be happening when running normally, but not in debug?
    Any hints/tips with this little lot would be great.
    Thanks in advance,
    Chris
    PS My prototype is below;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.util.Iterator;
    import java.util.Vector;
    import javax.media.CaptureDeviceInfo;
    import javax.media.CaptureDeviceManager;
    import javax.media.DataSink;
    import javax.media.Manager;
    import javax.media.MediaLocator;
    import javax.media.Processor;
    import javax.media.datasink.DataSinkEvent;
    import javax.media.datasink.DataSinkListener;
    import javax.media.datasink.EndOfStreamEvent;
    import javax.media.protocol.DataSource;
    import javax.media.protocol.FileTypeDescriptor;
    public class JCapture
    CaptureDeviceInfo captureDeviceInfo = null;
    DataSink dataSink = null;
    public static void main(String[] args)
    JCapture jCapture = new JCapture();
    jCapture.doIt();
    System.exit(0);
    private void doIt()
    // retrieve list of available capture devices
    Vector vector = CaptureDeviceManager.getDeviceList(null);
    Iterator it = vector.iterator();
    while(it.hasNext())
    CaptureDeviceInfo deviceInfo = (CaptureDeviceInfo)it.next();
    if("DirectSoundCapture".equals(deviceInfo.getName()))
    captureDeviceInfo = deviceInfo;
    break;
    // exit if no capture devices found
    if(captureDeviceInfo == null)
    System.err.println("No capture devices found!");
    System.exit(-1);
    try
         // get media locator from capture device
         MediaLocator mediaLocator = captureDeviceInfo.getLocator();
         // create processor
         Processor p = Manager.createProcessor(mediaLocator);
         // configure the processor
         p.configure();
         // set the content type
         p.setContentDescriptor(new FileTypeDescriptor(FileTypeDescriptor.WAVE));
         // realise the processor
         p.realize();
         // get the output of processor
         DataSource dataSource = p.getDataOutput();
         // create medialocator with output file
         MediaLocator dest = new MediaLocator("file://c:\\myFile.wav");
         // create datasink passing in output source and medialocator specifying our output file
         dataSink = Manager.createDataSink(dataSource,dest);
         // create dataSink listener
                   dataSink.addDataSinkListener
                        // anonymous inner class to handle DataSinkEvents
                        new DataSinkListener()
                             // if end of media, close data writer
                             public void dataSinkUpdate(DataSinkEvent dataEvent)
              // if capturing stopped, close DataSink
                                  if(dataEvent instanceof EndOfStreamEvent)
                                  dataSink.close();
         // open the datasink
         dataSink.open();
         // start the datasink
         dataSink.start();
         // start the processor
         p.start();
         getConsolePress();
         // stop the processor
         p.stop();
         // close the processor
         p.close();
    catch(Exception e)
    e.printStackTrace();
    System.exit(-1);
    System.out.println("Finished!!");
    public void getConsolePress() throws Exception
    InputStreamReader isr = new InputStreamReader(System.in);
    BufferedReader input = new BufferedReader(isr);
    String line;
    System.out.println("Press x to stop capturing...");
    while (!(line = input.readLine()).equals("x"))
    System.out.println("Press x to stop capturing...");
    return;

    tyring to write a little utility that captures everything coming out of my sound card and stores it as >>a .wav file on the systemCapture (input) from an output???
    You can capture from the mic/line in, so plug in a microphone and talk into it, to see if you are recording.
    enable me to store music from online radio stations This has nothing to do with the sound card. The stream is from the internet, then capture that stream, pass it to jmf, and record to file.
    You only need the sound card for listening(output) or record (live input from mic).

Maybe you are looking for

  • Errors, don't know how to fix

    "ImageServlet.java": Error #: 704 : cannot access directory javax\servlet\http at line 21, column 1 "ImageServlet.java": Error #: 704 : cannot access directory javax\servlet at line 22, column 1 "ImageServlet.java": Error #: 300 : class HttpServlet n

  • No UI Updating On Main Thread

    I have a few Cocoa UI elements with outlet connexions to an object instantiated within an NSView object, which is in turn put there by an NSViewController. These elements, a definite progress bar and a text label, are not updating: the progress bar i

  • Using ipod on xbox 360

    I just today bought an xbox 360 and i tried connecting my ipod video to it but for some reason after i select the song to be played absoloutly nothing happens. Please help me resolve this issue. I appriciate the help thank you.

  • Attempting to download the trial version

    I've been attempting unsuccessfully to download the 180day trial version of SharePoint from http://www.microsoft.com/en-us/evalcenter/ I've registered I see it in the evaluation center but it does not allow me to download it. Is there a direct link t

  • Note 361014 - Meaning of message M7352 (Interco STO)

    Hi Experts While MIGO GR (101) reference to the Purchase Order (# NB - Intercompany STO), system prompts warning message as M7 352 Delivery document flow". Subsequently the GR document (101-doc) is not updated in the D/O doc flow. Note 361014 (As of