ofSoundStream how to tell if audio is playing from a stream?


Been looking at documentation for this addon consider using it on an app im building which will analyse a live audio stream and if it is silent for 10 seconds make a voice call.

I have a fairly good idea of how to do the voice call element with an ardunio and gsm sheild however I can’t seem to work out which functions I would use within OFSoundStream to “analyse” the audio.

Can anyone suggests something?

maybe you can check the signal rms (the perceived loudness), and to measure if it’s below a minimum threshold.
if that happens you could (go to another PAUSE state and) trig the voice player.

there’s many examples around, but you can check this one:

thanks so much, will have a look.