|
@@ -40,7 +40,7 @@ BLOCKSIZE = 4096 # ~256 ms per chunk at 16 kHz
|
|
|
|
|
|
|
|
SENTENCE_TIMEOUT = 4.0 # seconds of silence before forcing a flush
|
|
SENTENCE_TIMEOUT = 4.0 # seconds of silence before forcing a flush
|
|
|
MAX_LINE_CHARS = 80 # characters per line
|
|
MAX_LINE_CHARS = 80 # characters per line
|
|
|
-DISPLAY_LINES = 10
|
|
|
|
|
|
|
+DISPLAY_LINES = 3
|
|
|
|
|
|
|
|
# Set to a device index (integer) to force a specific microphone.
|
|
# Set to a device index (integer) to force a specific microphone.
|
|
|
# Leave as None to use the Windows default input device.
|
|
# Leave as None to use the Windows default input device.
|
|
@@ -372,7 +372,14 @@ async def _speaker_reloader(state: BridgeState) -> None:
|
|
|
def main() -> None:
|
|
def main() -> None:
|
|
|
state = BridgeState()
|
|
state = BridgeState()
|
|
|
mqtt_client = build_mqtt_client()
|
|
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
|
|
# Inject API must start before the audio loop so test playback works immediately
|
|
|
def _run_inject_api():
|
|
def _run_inject_api():
|