get decibel level from audio stream or file

94 views
Skip to first unread message

Jeff Mangan

unread,
Dec 15, 2020, 2:42:50 PM12/15/20
to golang-nuts


I want to know if there is a, internal or other package to get the decibel level from an audio stream or file say every second, or few seconds, etc... I tried searching and have not found anything.

Anyone know of a way to accomplish this with golang?  I'd rather not use c#, java, etc...

Thanks

ccahoon

unread,
Dec 16, 2020, 11:43:15 AM12/16/20
to golang-nuts
I believe https://github.com/mdlayher/waveform does what you're hoping to do, and uses it to generate waveform images.

Matt Aimonetti, a co-founder of Splice, has several audio-related libraries at https://github.com/go-audio, and a great non-Go-specific article about generating waveform data  https://matt.aimonetti.net/posts/2019-06-generating-waveform-data-audio-representation/.

I hope this helps with your search.

Jeff Mangan

unread,
Dec 16, 2020, 11:56:58 AM12/16/20
to ccahoon, golang-nuts
Thanks I'll check them out, and I was thinking further, I don't really need the decibels, I think I can do what I need by just getting the volume of the recording (how recording software has the graph that goes up and down), or maybe that is the decibel, not sure yet.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/f3954e3d-4051-4e5e-ae2f-0d60f9bd5b98n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages