LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   dsnoop audio level to web - javascript (https://www.linuxquestions.org/questions/linux-software-2/dsnoop-audio-level-to-web-javascript-4175722305/)

kzo81 02-22-2023 01:30 PM

dsnoop audio level to web - javascript
 
Hi,

I would like a "real time" audio VU meter displayed in the device's web interface, but the dsnoop device is currently used for streaming and recording at the same time. Is there a way to send in a number representing the audio level and that number is displayed as a VU meter green/yellow/red as in some video encoders. Do you guys have any idea how could I implement this? Is it done by a named FIFO?

Is this a good start?

curl --json '{"audioLevel": 3}' \ -H "Content-Type: application/json; charset=UTF-8" http://127.0.0.1/vumeter

If so, how could I get the in real time from alsa?

Thanks,


All times are GMT -5. The time now is 02:44 AM.