Copy link to clipboard
Copied
According to the documentation for Microphone.setSilenceLevel():
"To prevent the microphone from detecting sound at all, pass a value of 100 for silenceLevel; the activity event is never dispatched."
That being said, I've tried this, and it doesn't seem to be working. I've tried it when passing either 2000 or -1 for the timeout parameter, and I've also tried passing 101 as the value for silenceLevel. Whether using 100 or 101, I'm still able to hear my voice when the microphone is set to loop back, and I'm able to see its activityLevel property go up and down while speaking into it. I've tried turning loop back off for several seconds, then turning it back on again, but to no avail.
This is probably a bug that needs to be reported. If not though, then please explain. Thanks.
Have something to add?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now