<div dir="ltr">Hi Jonathan,<div>I found your request actually interesting to play with.</div><div>If you use jack, I made a little python script, which only requires you to download and compile a small program, jack-peak, that Robin Gaerus wrote a couple of years ago.</div><div>You can find it here: <a href="http://gareus.org/gitweb/?p=jack-peak.git;a=tree">http://gareus.org/gitweb/?p=jack-peak.git;a=tree</a></div><div>Just download the tar or zip file, unpack it and type make. It might give you some erros, but don't worry: if a "jack-peak" file (without any extension) is created, it means that the build process was successful.</div><div>Then, just use the attached "meter.py" script, put it anywere you want, then copy that jack-peak compiled file in the same path, then run</div><div><br></div><div>./meter.py -c 1</div><div><br></div><div>this will just create a single input port, without jack connection, and will print the output at the default delay rate (100ms).<br>For example, this command line will record the value every second, connect to the first system audio input and save the data to the file "peaks.txt"</div><div>./meter.py -d 1000 -f peaks.txt system:capture_1<br></div><div><br></div><div>By default, the value is a float linear (3 digits after decimal point), from 0 to 1, you can use a custom integer scale, eg from 0 to 1000.</div><div>To stop recording, just hit ctrl+c.</div><div><br></div><div>For more options, look at the help documentation:</div><div>./meter.py -h</div><div><br></div><div>I'm actually thinking about converting it to a pure python script, by including jack-python bindings and supporting alsa too, but right now I'm in the middle of another project and I don't have much time for that right now.</div><div>Anyway, let me know if this suits your needs.<br><br>PS: Robin's program can be used even without this script, but you need to forward its output to a file and then parse every line, since it just rewrites the lines everytime the data is analyzed, which results in an unreadable output or file.</div><div><br></div><div>Cheers,</div><div>MaurizioB</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-12 11:47 GMT+02:00 Jonathan Gazeley <span dir="ltr"><<a href="mailto:Jonathan.Gazeley@bristol.ac.uk" target="_blank">Jonathan.Gazeley@bristol.ac.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi folks,<br>
<br>
I'd like to set up sound level monitoring for my office, with periodic logging. I have a handheld meter but I'm really looking for a way to use a traditional condenser microphone and USB audio interface to measure the level with some kind of windowing, and log it periodically to a file (maybe once per minute). Is there a decent application that can monitor and log data in this way?<br>
<br>
I'm also open to the idea of just recording a WAV file over 24 hours and doing the analysis afterwards, with periodic readings from the file.<br>
<br>
Is my approach reasonable, to set up a microphone and use the gain knob to calibrate it against the handheld meter?<br>
<br>
I don't need amazing accuracy. We've just moved into a large open-plan office for the first time and it is very noisy (handheld meter says about 50dB of air handling noise measured at my desk, rising to 60dB when there is background talking). I want to monitor sound levels throughout the day to test my theory that people are more noisy in the afternoon, and to get an overnight control reading with the people gone and only the air handling and computers running.<br>
<br>
Thanks,<br>
Jonathan<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Jonathan Gazeley<br>
Senior Systems Administrator<br>
IT Services<br>
University of Bristol<br>
______________________________<wbr>_________________<br>
Linux-audio-user mailing list<br>
<a href="mailto:Linux-audio-user@lists.linuxaudio.org" target="_blank">Linux-audio-user@lists.linuxau<wbr>dio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-user" rel="noreferrer" target="_blank">http://lists.linuxaudio.org/li<wbr>stinfo/linux-audio-user</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">È difficile avere una convinzione precisa quando si parla delle ragioni del cuore. - "Sostiene Pereira", Antonio Tabucchi<br><a href="http://www.jidesk.net" target="_blank">http://www.jidesk.net</a></div>
</div>