mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-14 02:32:47 +03:00
CI / AMD64 Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
CI / ARM Build (push) Waiting to run
* fix: fix embedding time locale * fix: fix setting i18n * fix: fix lpr setting item i18n * fix: fix code
42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
import type { SectionConfigOverrides } from "./types";
|
|
|
|
const audioTranscription: SectionConfigOverrides = {
|
|
base: {
|
|
sectionDocs: "/configuration/audio_detectors#audio-transcription",
|
|
messages: [
|
|
{
|
|
key: "audio-detection-disabled",
|
|
messageKey: "configMessages.audioTranscription.audioDetectionDisabled",
|
|
severity: "warning",
|
|
condition: (ctx) => {
|
|
if (ctx.level === "camera" && ctx.fullCameraConfig) {
|
|
return (
|
|
!ctx.fullCameraConfig.ffmpeg?.inputs?.some((input) =>
|
|
input.roles?.includes("audio"),
|
|
) || ctx.fullCameraConfig.audio.enabled === false
|
|
);
|
|
}
|
|
return false;
|
|
},
|
|
},
|
|
],
|
|
restartRequired: [],
|
|
fieldOrder: ["enabled", "language", "device", "model_size"],
|
|
hiddenFields: ["enabled_in_config", "live_enabled"],
|
|
advancedFields: ["language", "device", "model_size"],
|
|
overrideFields: ["enabled", "live_enabled"],
|
|
uiSchema: {
|
|
model_size: {
|
|
"ui:options": { size: "xs", enumI18nPrefix: "modelSize" },
|
|
},
|
|
},
|
|
},
|
|
global: {
|
|
fieldOrder: ["enabled", "language", "device", "model_size"],
|
|
advancedFields: ["language", "device", "model_size"],
|
|
restartRequired: ["enabled", "language", "device", "model_size"],
|
|
},
|
|
};
|
|
|
|
export default audioTranscription;
|