Advanced Configurations

1. Sensitivity Control


It allows users to adjust the sensitivity so that it can be customized depending on target sounds and user scenarios. If you find that tags are not being detected frequently, try increasing the sensitivity. Conversely, if there are too many false detections, consider lowering the sensitivity.

  • When disabled, all sounds follow the default sensitivity (‘Normal’).
  • When enabled, target sound follows adjusted sensitivity levels from ‘Very Low’ to ‘Very High’.

You can find tags on this link.

Sensitivity Control
Sense.Parameters senseParams = new Sense.Parameters();

senseParams.sensitivityControl.enable = true;

// set the default sensitivity
senseParams.sensitivityControl.defaultSensitivity = 1;

// set the sensitivities by tag
senseParams.sensitivityControl.sensitivity.put("Siren", 2);
senseParams.sensitivityControl.sensitivity.put("Emergency_vehicle_siren", -2);
sense::Parameters sense_params;

sense_params.sensitivity_control.enable = true;

// set the default sensitivity
sense_params.sensitivity_control.default_sensitivity = 1;

// set the sensitivities by tag
sense_params.sensitivity_control.sensitivity["Siren"] = -2;
sense_params.sensitivity_control.sensitivity["Emergency_vehicle_siren"] = 2;
sense_params = Parameters()

sense_params.sensitivity_control.enable = True

# set the default sensitivity
sense_params.sensitivity_control.default_sensitivity = 1

# set the sensitivities by tag
sense_params.sensitivity_control.sensitivity["Siren"] = 2
sense_params.sensitivity_control.sensitivity["Emergency_vehicle_siren"] = -2

2. Result Summary


It summarizes the prediction result by aggregating consecutive windows, returning the time and length of the detected tag. The ‘interval margin’ is a parameter that treats the unrecognized window between tags as part of the recognized ones and it affects all sound tags. If you want to specify a different interval margin for specific sound tags, you can explicitly specify tags in key-value containers.

NOTE: The ‘interval margin’ in stream mode cannot be modified, and you can only obtain results using the interval margin reserved by the SDK. This was decided considering real-time.

You can find tags on this link.

Result Summary
Sense.Parameters senseParams = new Sense.Parameters();

senseParams.resultAbbreviation.enable = true;

// set the default interval margin
senseParams.resultAbbreviation.defaultIm = 2;

// set the interval margins by tag
senseParams.resultAbbreviation.im.put("Siren", 3);
senseParams.resultAbbreviation.im.put("Emergency_vehicle_siren", 5);
sense::Parameters sense_params;

sense_params.result_abbreviation.enable = true;

// set the default interval margin
sense_params.result_abbreviation.default_im = 2;

// set the interval margins by tag
sense_params.result_abbreviation.im["Siren"] = 3;
sense_params.result_abbreviation.im["Emergency_vehicle_siren"] = 5;
sense_params = Parameters()

sense_params.result_abbreviation.enable = True

# set the default interval margin
sense_params.result_abbreviation.default_im = 2

# set the interval margins by tag
sense_params.result_abbreviation.im["Siren"] = 3
sense_params.result_abbreviation.im["Emergency_vehicle_siren"] = 5