Questions tagged [decibel]

Anything related to the usage of the decibel (dB). The decibel is a logarithmic unit of measurement commonly used in electronics and communication engineering.

Anything related to the usage of the decibel (dB). The decibel is a logarithmic unit of measurement commonly used in electronics and communication engineering.

This dimensionless unit is used to express in a compact way ratios that can vary over a broad range of values.

See Wikipedia page on decibels.

100 questions
28
votes
2 answers

What does Android's getMaxAmplitude() function for the MediaRecorder actually give me?

The Android MediaRecorder has a function .getMaxAmplitude(); which, as the API tells me, "Returns the maximum absolute amplitude that was sampled since the last call to this method." but I can't find what amplitude this is? Is it in pascal or…
Lukas Ruge
  • 2,044
  • 3
  • 25
  • 41
11
votes
1 answer

How to get the reading of deciBels from iOS AVAudioRecorder in a correct scale?

I'm trying to obtain a noise level in my iOS app, using AVAudioRecorder. The code I'm using is: [self.recorder updateMeters]; float decibels = [self.recorder averagePowerForChannel:0]; // 160+db here, to scale it from 0 to 160, not…
kender
  • 79,300
  • 24
  • 99
  • 144
10
votes
0 answers

How do you get the decibel level of an audio in Javascript

I am currently making a decibel meter visualizer using JavaScript, HTML and CSS. I have gone through several Web Audio API tutorials, but nothing on there is close to being specific to what I want to do. This is what I have so far: window.onload =…
ipalibowhyte
  • 1,453
  • 1
  • 20
  • 33
9
votes
2 answers

iPhone SDK: AVAudioRecorder metering -- how to change peakPowerForChannel from decibel into percentage?

The AVAudioRecorder in the iPhone SDK can be used to get the peak and average power for a channel, in decibels. The range is between 0db to 160db. What is the calculation used to convert this into a scale between 0 - 10 or something similar that can…
memmons
  • 39,202
  • 21
  • 146
  • 181
9
votes
1 answer

Calculate loudness level from the microphone on android

I am trying to calculate the loudness level from the microphone on android. I used AudioRecord to get the raw data from the microphone and also did some normalization and calculated the decibel after that. But the result is not right. The decibel…
Foreverniu
  • 329
  • 1
  • 3
  • 16
8
votes
3 answers

Decibel Sound Meter for Android

I am new to Android and looking to write an app for measuring decibel sound level. The idea is that when a sound reaches a certain level the user gets a alert. That's it. Can anyone help me out with this. Can I do this using HTML5/Javascript ? any…
FaISalBLiNK
  • 531
  • 2
  • 6
  • 19
8
votes
5 answers

Am I doing the right thing to convert decibel from -120 - 0 to 0 - 120

I will like to measure the sound volume of the surrounding, not too sure if I am doing the right thing. I will like to create a VU meter of a range of 0(quiet) to 120(very noisy). I gotten the Peak and Avg power but are very high in normal quiet…
Desmond
  • 4,943
  • 14
  • 51
  • 112
6
votes
1 answer

Android: how to convert getMaxAmplitude to db?

I have a piece of code that give me the getMaxAmplitude() of the audio from the mic. it works, but the value is surely strange. i need to convert it to decibel. how can i? i've found this formula: double db = 20 *…
Zak
  • 531
  • 2
  • 14
  • 37
5
votes
1 answer

Android: Amplitude value to Decibel value?

I'm trying to get the decibel of noise being recored from mic on Android phone. I can get amplitude value and looking for the formula to convert it into decibel. I use following function of MediaRecorder to get…
Sharj
  • 14,733
  • 12
  • 55
  • 87
5
votes
2 answers

C# How to get Audio Decibel values with time span

how can I get Decibel values of a wav/mp3 file I have every 1 second? using any audio library that works with C#.. something like: Time: 0, DB: 0.213623 Time: 1, DB: 0.2692261 Time: 2, DB: 0.2355957 Time: 3, DB: 0.2363281 Time: 4, DB:…
SolidSnake
  • 20,635
  • 18
  • 68
  • 89
5
votes
1 answer

How to get a volume measurement of iPhone recording in dB, with a limit of at least 120dB

I am trying to make a simple volume meter for the iPhone. I want the volume to be displayed in dB. When using this turorial, I am only getting measurements up to 78 dB. I've read that that is because the dBFS spectrum for 16 bit audio recordings is…
Cyber
  • 51
  • 1
  • 4
  • 5
5
votes
3 answers

iPhone - AVAudioPlayer - convert decibel level into percent

I like to update an existing iPhone application which is using AudioQueue for playing audio files. The levels (peakPowerForChannel, averagePowerForChannel) were linear form 0.0f to 1.0f. Now I like to use the simpler class AVAudioPlayer which works…
crashtesttommy
  • 429
  • 3
  • 9
  • 15
4
votes
2 answers

Confusion with meters in AVAudioRecorder

Simply put, I'm trying to lip-sync something based on the decibel reading from the mic input stream of an iPhone, and the values I'm getting aren't quite what I'm after. I'm using AVAudioRecorder's peakPowerForChannel and averagePowerForChannel.…
whut
  • 43
  • 3
4
votes
3 answers

Getting decibel from an Android microphone

I have been searching for quite some time now, and I haven't been able to find a way to actually get an SPL/db value from a microphone on Android. The few threads and articles that I have found that discussed it treated it like something so obvious…
Brandon
  • 1,335
  • 2
  • 12
  • 19
4
votes
0 answers

Get amplitude from MediaPlayer using Visualizer

i've been reading another posts about calculate the amplitude in real time from a Mediaplayer, but i have no clear how to get a value useful for me. What i need is a linear amplitude value normalize between 0-100, but as i've watched in another…
Billyjoker
  • 701
  • 1
  • 10
  • 27
1
2 3 4 5 6 7