feat: shared transcription cache to avoid duplicate Whisper API calls

Both services (nanoclaw + nanoclaw-codex) now share cache/transcriptions/
directory. When one service transcribes audio, the other reads from cache
instead of making a second Whisper API call. Uses .pending file to
coordinate concurrent transcription attempts.
This commit is contained in:
Eyejoker
2026-03-14 01:40:35 +09:00
parent 7a726c335d
commit b8292e14a1
3 changed files with 60 additions and 10 deletions

View File

@@ -13,6 +13,7 @@ vi.mock('../config.js', () => ({
ASSISTANT_NAME: 'Andy',
TRIGGER_PATTERN: /^@Andy\b/i,
DATA_DIR: '/tmp/nanoclaw-test-data',
CACHE_DIR: '/tmp/nanoclaw-test-cache',
}));
// Mock logger