Quellcode durchsuchen

Algorithm Accuracy

Benjamin Harris vor 1 Monat
Ursprung
Commit
e06db04d05
1 geänderte Dateien mit 9 neuen und 2 gelöschten Zeilen
  1. 9 2
      bridge/bridge.py

+ 9 - 2
bridge/bridge.py

@@ -40,7 +40,7 @@ BLOCKSIZE   = 4096          # ~256 ms per chunk at 16 kHz
 
 SENTENCE_TIMEOUT = 4.0      # seconds of silence before forcing a flush
 MAX_LINE_CHARS   = 80       # characters per line
-DISPLAY_LINES    = 10
+DISPLAY_LINES    = 3
 
 # Set to a device index (integer) to force a specific microphone.
 # Leave as None to use the Windows default input device.
@@ -372,7 +372,14 @@ async def _speaker_reloader(state: BridgeState) -> None:
 def main() -> None:
     state       = BridgeState()
     mqtt_client = build_mqtt_client()
-    engine      = TranscriptionEngine(model_size="large-v3", lan="en", diarization=False, pcm_input=True)
+    engine      = TranscriptionEngine(
+        model_size="large-v3",
+        lan="en",
+        diarization=False,
+        pcm_input=True,
+        backend_policy="localagreement",
+        confidence_validation=True,
+    )
 
     # Inject API must start before the audio loop so test playback works immediately
     def _run_inject_api():