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
2
votes
2 answers

Wrong decibel result on fft data

If i remember the decibel range is bit depth * 6. I play wav file that his bit depth = 16 (using NAudio lib) and I get the fft result then i'm calc the decibels for each fft result. 20 * Math.log10(fftData[i]) and i've got strange results…
Maya
  • 989
  • 4
  • 12
  • 19
2
votes
1 answer

How would i find the current decibel level and set it as a variable?

I'm looking to find the current decibel level in a room using a microphone and setting it as a variable. I haven't been able to find any python code on this so I'm very stuck. It would be good if the variable could refresh every 0.3 of a second but…
Caleb Nicolle
  • 23
  • 1
  • 3
2
votes
0 answers

Flutter media recorder amplitude

I am building a shot clock which needs to be able to stop a timer when the microphone detects a loud noise. There seems to be no libraries out there that can grab amplitude like in MediaRecorder for android. i have searched the web the last week and…
2
votes
0 answers

How to play audio with specific decibels/frequency in React Native Android?

I need to reproduce an audio/beep in a specific intensity (decibels/dB) and frequency (hertz/hZ). I've looked at these react libraries: https://github.com/zmxv/react-native-sound https://github.com/futurice/react-native-audio-toolkit But none of…
Javier
  • 21
  • 2
2
votes
1 answer

Android noise level detection and decibel calculation

I have tried many examples of noise level detection from that some following examples I tried and debug: Detect noise or blow sound Android detect sound level Google SplMeter sample code But I am get little bit confused on the following…
2
votes
3 answers

What Are Linear PCM Values

I am working with audio in the iPhone OS and am a bit confused. I am currently getting input from my audio buffer in the form of pcm values ranging from -32767 to 32768. I am hoping to perform a dbSPL conversion using the formula…
richsoni
  • 4,188
  • 8
  • 34
  • 47
2
votes
1 answer

gstreamer read decibel from buffer

I am trying to get the dB level of incoming audio samples. On every video frame, I update the dB level and draw a bar representing a 0 - 100% value (0% being something arbitrary such as -20.0dB and 100% being 0dB.) gdouble sum, rms; sum =…
Daniel L.
  • 437
  • 3
  • 15
2
votes
1 answer

How do I calculate dB(A) values for 1/3 octave bands using AVAudioRecorder in iPhone

I have used AVAudioRecorder and AVAudioSession which gives me values in decibels in the range 0 (extremely loud) to -160(near silence). In the app, I have to plot an A-rating i.e.dB(A) curve for real time audio measurements received from the iPhone…
D S
  • 23
  • 1
  • 3
2
votes
1 answer

How to determine average volume of an audio file using Objective-C?

I want to compare the average volume, in dB, of two audio files for an iPhone application I'm working on for school. I'm working in Xcode, Objective-C. After some research I found "averagePowerForChannel:" in the AVFoundation Framework, but I can't…
RoelfMik
  • 255
  • 1
  • 2
  • 9
1
vote
1 answer

How to handle a decibel meter type component/widget?

I'd like to be able to have some sort of volume panel looking something like : ||||||||||||||||||||| Where the lines highlight according to how loud/quiet the sound is according to decibels. Is there a built in Android component to handle this, or…
litterbugkid
  • 3,534
  • 7
  • 36
  • 54
1
vote
0 answers

react Could not find a declaration file for module

i am looking a libary for decibel meter i found this libary : https://www.npmjs.com/package/decibel-meter but somewhat it dosent work after i install it i get error that this module not found any suggestions? i add a picture that show this…
Lior98
  • 79
  • 7
1
vote
0 answers

Pydub library to find the loudest portion of an audio clip, save from 5 seconds before to 5 seconds after, and print out the max decibels?

I want to take m4a files from iPhones and use Python to find the max-decibel portion of the segment. I then want to trim the clip to start 5 seconds before, and end 5 seconds after the max-decibel point. Lastly, I want it to print out the decibel…
JapeHarf
  • 11
  • 1
1
vote
0 answers

How to determine the voltage range of a microphone output?

I have an analog microphone: PMM-3738-VM1010-R. I want to know what will be the voltage range of the microphone's output at a specific threshold level, let's say 89 dB threshold (different thresholds are mentioned in the datasheet, 89 dB is one of…
Dar
  • 37
  • 7
1
vote
2 answers

How can I quickly loop through chunks of audio and determine their sample values (amplitude/power level/etc) in Core Audio?

What I'm trying to accomplish is basically as follows: Open up a file, determine how many 'samples' I will need based on its duration Dividing the file up into x samples; determine the (average) power level / amplitude for each sample. Using these…
pxlshpr
  • 986
  • 6
  • 15
1
vote
1 answer

Why is the volume coming from -80db to 0 - not even starting at 0?

I'm very new to sound. I've never explored this area in my whole life. I thought decibels was a measure starting at 0. But in Unity, it starts at -80db and and "0db" it seems it's the "100%" level volume. Moreover, when I change the sound to -40db…
Olivier Pons
  • 15,363
  • 26
  • 117
  • 213