capturing sound from a microphone in java

Posted on 2011-05-05
Last Modified: 2012-05-11
I am trying to capture sound from a microphone in java using this class 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.
Question by:chudyksg
    1 Comment
    LVL 16

    Accepted Solution

    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

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now