Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By DarrylBurke

Thread: How Capturing Sound Mic & Speaker with Java

  1. #1
    FJavierBG is offline Member
    Join Date
    Aug 2012
    Posts
    1
    Rep Power
    0

    Default How Capturing Sound Mic & Speaker with Java

    Hi,

    i need some help, i'm trying to capture any sound from my soundcard but only get the mic's sound. I wanna create a recording with both vias, input and output and save it to a wav or mp3 file, is that posible? thanks


  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: How Capturing Sound Mic & Speaker with Java

    Moved from Forum Guides. What made you think this question belonged there?

    db
    awinston likes this.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default Re: How Capturing Sound Mic & Speaker with Java

    You cannot save to an mp3 directly, unless you use some external library. There are some nice pure java libs, jlayer used to be a good one back in the day, but it hasn't been updated in a few years, might not matter. There are others too.

    As for your other question about sounds source, can't say without seeing your code. I know on a Mac you can set the global sound input, and I think java respects that setting. It's possible the JVM can poll the OS and give you a list of sound inputs to choose from, but I couldn't say, I haven't played with in a a couple years.

Similar Threads

  1. Java Sound
    By cyberia in forum Advanced Java
    Replies: 2
    Last Post: 08-19-2011, 12:58 PM
  2. sound API - Record data from speaker
    By michbudz in forum New To Java
    Replies: 5
    Last Post: 06-30-2011, 11:00 PM
  3. Sound In java
    By chetoos in forum New To Java
    Replies: 2
    Last Post: 06-28-2011, 05:59 PM
  4. Problems with sound in java and USB sound card
    By marblecatdog in forum New To Java
    Replies: 1
    Last Post: 04-19-2011, 12:02 PM
  5. Java Swing class capturing output to the console
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-12-2008, 11:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •