[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 372
  • Last Modified:

capturing sound from a microphone in java

I am trying to capture sound from a microphone in java using this class http://www.jsresources.org/examples/SimpleAudioRecorder.java.html but first of all after recording it the file cannot be open using windows media player. It gets open by a VLC media player but it doesn't show the length of the audio file. it says 6:45 where the recorded sound has only 3 sec.
1 Solution
Bryan ButlerCommented:
What version of Java are you using?  Seems like the encoding is not puttin the header info as that will have the "length" in it I believe.  Here's some info that might help:

Java Sound API: Java Sound Demo

Java Sound API: What's new in version 1.5.0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now