Преглед изворни кода

Further Accuracy Improvments

Benjamin Harris пре 1 месец
родитељ
комит
232411b4e7
2 измењених фајлова са 8 додато и 5 уклоњено
  1. 2 1
      .claude/settings.local.json
  2. 6 4
      bridge/bridge.py

+ 2 - 1
.claude/settings.local.json

@@ -9,7 +9,8 @@
       "PowerShell(& \"d:\\\\GIT_REPO\\\\Deaf_Transcription_Service\\\\.venv\\\\Scripts\\\\python.exe\" -m pip install imageio-ffmpeg miniaudio --quiet 2>&1)",
       "PowerShell(& \"d:\\\\GIT_REPO\\\\Deaf_Transcription_Service\\\\.venv\\\\Scripts\\\\python.exe\" \"d:\\\\GIT_REPO\\\\Deaf_Transcription_Service\\\\bridge\\\\whisper_launcher.py\" --help 2>&1)",
       "Bash(nvcc --version)",
-      "Bash(nvidia-smi)"
+      "Bash(nvidia-smi)",
+      "Bash(python -c ' *)"
     ]
   }
 }

+ 6 - 4
bridge/bridge.py

@@ -49,10 +49,10 @@ AUDIO_DEVICE: int | None = 12
 SPEAKERS_FILE = Path(__file__).parent / "speakers.json"
 
 DEFAULT_SPEAKERS: dict[str, str] = {
-    "SPEAKER_00": "Serving Brother",
-    "SPEAKER_01": "Contributor",
-    "SPEAKER_02": "Contributor",
-    "SPEAKER_03": "Contributor",
+    "SPEAKER_00": "A.A.A": "Serving Brother": "Sydney",
+    "SPEAKER_01": "A.A.A": "Contributor": "London",
+    "SPEAKER_02": "A.A.A": "Contributor": "Hobart",
+    "SPEAKER_03": "A.A.A": "Contributor": "Perth",
 }
 
 # ── Audio injection queue ─────────────────────────────────────────────────────
@@ -379,6 +379,8 @@ def main() -> None:
         pcm_input=True,
         backend_policy="localagreement",
         confidence_validation=True,
+        min_chunk_size=1.5,
+        vac=False,
     )
 
     # Inject API must start before the audio loop so test playback works immediately