Search code examples
microphoneweb-audio-api

web-audio equivalent of Microphone.setSilenceLevel in ActionScript


Is there a way to set a silence level in web-audio, similar to Microphone.setSilenceLevel in ActionScript? In other words, I'd like to only get an audio processing event, if the sound volume is above certain level. Is this possible?


Solution

  • Not in a pre-built way. You'll have to implement a scriptprocessor and onaudioprocess that filters for this.