Filipe Murteira
Filipe Murteira

Reputation: 3

Actionscript 3.0 Microphone Decibel

Hy,

How can hy obtain decibels value from Microphone class im Actionscript 3.0.

Thanks in advance!

Upvotes: 0

Views: 767

Answers (1)

Kodiak
Kodiak

Reputation: 5978

The only value you can get from Microphone is activityLevel. You can't get the rough dB value of your sound source from multiple reasons:

  1. Your soundcard may oper a dynamic amplification/compression of the sound, which means a quiet sound may have the same level of a loud one on the output.
  2. The response of your microphone is not linear, you must know precisely the curve of its response to get the real volume of your source.
  3. Your material is not calibrated, you will get a relative value. You would need a certified sound source to match the value you get to the real amount of dB.

Sorry, cheers!

Upvotes: 1

Related Questions