2026-01-23 17:23:52 +03:00
|
|
|
// Audio Section Component
|
|
|
|
|
// Reusable for both global and camera-level audio settings
|
|
|
|
|
|
2026-01-23 19:04:50 +03:00
|
|
|
import { createConfigSection } from "./BaseSection";
|
2026-01-23 17:23:52 +03:00
|
|
|
|
|
|
|
|
export const AudioSection = createConfigSection({
|
|
|
|
|
sectionPath: "audio",
|
2026-01-23 19:04:50 +03:00
|
|
|
defaultConfig: {
|
|
|
|
|
fieldOrder: [
|
|
|
|
|
"enabled",
|
|
|
|
|
"listen",
|
|
|
|
|
"filters",
|
|
|
|
|
"min_volume",
|
|
|
|
|
"max_not_heard",
|
|
|
|
|
"num_threads",
|
|
|
|
|
],
|
|
|
|
|
fieldGroups: {
|
2026-01-29 23:58:13 +03:00
|
|
|
detection: ["enabled", "listen", "filters"],
|
2026-01-23 19:04:50 +03:00
|
|
|
sensitivity: ["min_volume", "max_not_heard"],
|
|
|
|
|
},
|
|
|
|
|
hiddenFields: ["enabled_in_config"],
|
|
|
|
|
advancedFields: ["min_volume", "max_not_heard", "num_threads"],
|
2026-01-27 04:56:43 +03:00
|
|
|
uiSchema: {
|
|
|
|
|
listen: {
|
|
|
|
|
"ui:widget": "audioLabels",
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-01-23 19:04:50 +03:00
|
|
|
},
|
2026-01-23 17:23:52 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default AudioSection;
|