setSoundDetectionListener

Sets a listener to receive sound detection events.

Parameters

listener

The listener to be notified when a sound is detected.