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.

118 questions
32
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,204
  • 3
  • 30
  • 42
15
votes
1 answer

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,553
  • 2
  • 22
  • 34
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
  • 85,663
  • 26
  • 103
  • 145
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
  • 40,222
  • 21
  • 149
  • 183
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
  • 349
  • 1
  • 3
  • 18
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
  • 691
  • 2
  • 11
  • 24
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
  • 5,001
  • 14
  • 56
  • 115
7
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
  • 591
  • 2
  • 15
  • 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…
Sharjeel
  • 15,588
  • 14
  • 58
  • 89
5
votes
0 answers

Extract decibels from short array, derived from byte array coming from Android AudioRecord

I want to get the average decibels over a period of time (lets say 1 second). Edit: This is to detect loud noises. I have a ByteArray of audio, at 16khz sample rate and 16 bit depth. I convert it to a ShortArray to get the amplitude of over time,…
Sean Blahovici
  • 5,350
  • 4
  • 28
  • 38
5
votes
2 answers

Calculate Decibel from amplitude - Android media recorder

How to calculate decibel from maxAmplitude, I wrote an android application to get maxAmplitude at regular interval, I need to show the o/p to the user in decibels.
Sandeep Manne
  • 6,030
  • 5
  • 39
  • 55
5
votes
1 answer

Flutter Play Sound and Record Noise Levels

Can anybody help plz! Ive been running into this issue for a while now. The app runs fine on an ios simulator aswell as android device but not on an ios device. The general idea is that i want a tone to play and once that tone starts playing i need…
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:…
Desolator
  • 22,411
  • 20
  • 73
  • 96
5
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,373
  • 2
  • 12
  • 19
5
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
  • 729
  • 1
  • 10
  • 31
1
2 3 4 5 6 7 8