start

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.

Parameters

monitorInterval

The time interval (in milliseconds) between sound detection checks.

samplingRate

The audio sampling rate in Hz.

volumeThreshold

The threshold value in decibels (dB) above which a sound is considered detected.