Volume unit meter (VU meter) is an application used to monitor the intensity of sound using ALSA programming interfacefor linux. There are two variants of this application:
- Using dB (decibels)
- Using FFT (Fast Fourier Transform)
- 1) Using dB
- 2) Hardware Requirements
- 3) Package Dependencies
- 4) Building and running
- 5) Conclusion
1. Using dB
Here, the intensity of sound is calculated by computing RMS value of sampled audio signal and converting to dB. Theimplementation is straight forward and simple.
Link to blog: http://www.96boards.org/blog/96boards-vu-meter-part-1/
2. Hardware Requirements
3. Package Dependencies
- ALSA library
$ sudo apt-get install libasound2
4. Building and Running:
$ git clone https://github.com/96boards-projects/vu_meter.git
$ cd projects
$ cd vu_meter
$ make
$ ./vu_meter plughw:U0x46d0x825
Replace the Sound card info according to your device
5. Conclusion
Running the executable causes progress bar to move according to the sound intensity.
Using FFT
Under development
Comments