From 95d9b0177173c2e3996cca436f184fa64d4a1946 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 3 Feb 2026 09:22:21 -0600 Subject: [PATCH] add audio labels endpoint --- frigate/api/app.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frigate/api/app.py b/frigate/api/app.py index 9246095ca..62accfa47 100644 --- a/frigate/api/app.py +++ b/frigate/api/app.py @@ -49,6 +49,7 @@ from frigate.types import JobStatusTypesEnum from frigate.util.builtin import ( clean_camera_user_pass, flatten_config_data, + load_labels, process_config_query_string, update_yaml_file_bulk, ) @@ -755,6 +756,12 @@ def get_sub_labels(split_joined: Optional[int] = None): return JSONResponse(content=sub_labels) +@router.get("/audio_labels", dependencies=[Depends(allow_any_authenticated())]) +def get_audio_labels(): + labels = load_labels("/audio-labelmap.txt", prefill=521) + return JSONResponse(content=labels) + + @router.get("/plus/models", dependencies=[Depends(allow_any_authenticated())]) def plusModels(request: Request, filterByCurrentModelDetector: bool = False): if not request.app.frigate_config.plus_api.is_active():