This discussion is archived
2 Replies Latest reply: Oct 12, 2010 5:28 PM by 793415 RSS

Real-time mic level

804220 Newbie
Currently Being Moderated
Hi,

Not sure if this is the right subforum.

I'm trying to access the level of the mic through Java.
I don't need to record anything, I just want to know a relative scale of sound level.

Is this possible in real-time?
  • 1. Re: Real-time mic level
    captfoss Pro
    Currently Being Moderated
    timvdalen wrote:
    I'm trying to access the level of the mic through Java.
    I don't need to record anything, I just want to know a relative scale of sound level.
    http://www.jsresources.org/examples/SimpleAudioRecorder.html

    Looking at that code, you can rip out the recording part and just use the targetDataLine to determine the level by doing targetDataLine.getLevel
  • 2. Re: Real-time mic level
    793415 Pro
    Currently Being Moderated
    http://stackoverflow.com/questions/3899585/microphone-level-in-java

    Did you not like the answers offered at StackOverflow? Where else have you dumped your question?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points