Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

perf(wake): 2 fixed ctranslate2 threads + cross-snapshot prefix join

Ruben Lütke1b1b9c8b5311
diff --git a/scripts/wake_bench.py b/scripts/wake_bench.py
index 512c4fa128..5d848bc194 100644
--- a/scripts/wake_bench.py
+++ b/scripts/wake_bench.py
@@ -370,9 +370,9 @@ async def run_stream_mode(args: argparse.Namespace) -> dict:
try:
for p in fx.pos_full[:limit]:
pos = load_wav(p)
- lead = np.concatenate([random.Random(7).choice(quiet_pool)
+ lead = np.concatenate([random.Random(7).choice(quiet_pool) # noqa: S311
for _ in range(2)])
- tail = np.concatenate([random.Random(9).choice(quiet_pool)
+ tail = np.concatenate([random.Random(9).choice(quiet_pool) # noqa: S311
for _ in range(4)])
composite = np.concatenate([lead, pos, tail]).astype(np.float32)
word_end_s = len(lead) / SAMPLE_RATE + speech_end_s(pos)