stopSoundDetection method
void
stopSoundDetection()
Implementation
void stopSoundDetection() {
_noiseSubscription?.cancel();
_permissionSubscription?.cancel();
_alertTimeout?.cancel();
// Cancel the throttle timer when stopping the sound detection
_throttleTimer?.cancel();
}