diff --git a/__pycache__/config.cpython-313.pyc b/__pycache__/config.cpython-313.pyc index 1f0bc61..a8200eb 100644 Binary files a/__pycache__/config.cpython-313.pyc and b/__pycache__/config.cpython-313.pyc differ diff --git a/app.py b/app.py index 20a82e0..281a40d 100644 --- a/app.py +++ b/app.py @@ -25,6 +25,7 @@ def _cmd_ok(cmd, **kwargs): except Exception: return None + def audio_backend_detect(): if AUDIO_BACKEND in ('pactl', 'alsa'): return AUDIO_BACKEND diff --git a/config.py b/config.py index 94e1945..965129e 100644 --- a/config.py +++ b/config.py @@ -18,7 +18,7 @@ DETECTOR_BACKEND = "yolo" CONF_THRES = 0.30 IMG_SIZE = 640 INFER_FPS = 8 -SHOW_FPS_DEFAULT = True +SHOW_FPS_DEFAULT = False #Afficher les FPS True ou False # Configuration TTS (Piper) et STT (Vosk) PIPER_MODEL = "/data/piper_model/fr_FR-siwis-low.onnx" diff --git a/templates/index.html b/templates/index.html index 8aa4912..df9363d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,7 +2,7 @@ - Caméra USB – Détection, Volume, TTS & STT (Vosk) + Alfred -
Diffusion Caméra USB
+
Alfred
@@ -46,7 +46,7 @@
- + backend: {{ audio_backend }} diff --git a/templates/index.html.old b/templates/index.html.old deleted file mode 100644 index 022ba77..0000000 --- a/templates/index.html.old +++ /dev/null @@ -1,168 +0,0 @@ - - - - - Caméra USB – Détection & Volume - - - - -
Diffusion Caméra USB
-
- - -
- 📸 Snapshot - - - - - Détecteur: {{ detector_backend }} - Status: {{ 'ON' if detect_enabled else 'OFF' }} - FPS: -- / -- -
- - - Flux caméra (MJPEG) - - -
-
-
- - - - -
-
- Volume: --% - backend: {{ audio_backend }} - -
-
-
- -
- - - -