Getting amplitude from opusStream

Hey Guys. I am trying to get an amplitude or volume from an opus stream. I would like to figure out if a person is yelling or whispering. No idea where to start. I tried using OpusEncoder.decode with data from opusStream but i don't get any usable information out of it.
6 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
duck
duck2y ago
this isn't something you would do with djs/voice or even prism-media and for reference, decode just outputs a pcm stream
Joopst
Joopst2y ago
Yes i know I tought i would be able to get the amplitude from the buffer data the pcm stream outputs
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Joopst
Joopst2y ago
Thank you that's a good idea. Any idea how i would do this to a live pcm stream?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View