SoundDetection

Class responsible for sound detection using the device's microphone.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Sets a listener to receive sound detection events.

Link copied to clipboard
fun start(monitorInterval: Int = 50, samplingRate: Int = 22050, volumeThreshold: Int = -60)

Starts the sound detection process with the specified monitor interval, sampling rate, and volume threshold.

Link copied to clipboard
fun stop()

Stops the sound detection process and releases the resources used by the AudioRecord.

Properties

Link copied to clipboard