@@ -171,5 +171,13 @@ test('a disabled microphone never starts capture while speech output remains ava
|
||||
const capture = new EventEmitter(); capture.start = () => assert.fail('microphone should be disabled');
|
||||
const loop = new VoiceLoop({ capture, asr: null, tts: { start: async () => {} } });
|
||||
await loop.start();
|
||||
assert.equal(loop.status.capture, false); assert.equal(loop.status.asr, false); assert.equal(loop.status.tts, true);
|
||||
assert.equal(loop.status.capture, false); assert.equal(loop.status.asr, false); assert.equal(loop.status.tts, false);
|
||||
assert.equal(await loop.ensureTts(), true); assert.equal(loop.status.tts, true);
|
||||
});
|
||||
|
||||
test('catalog defaults enable CPU wake, workspace files, and idle VRAM unload', () => {
|
||||
const settings = voiceSettings({});
|
||||
assert.equal(settings.fsAccess, 'workspace');
|
||||
assert.equal(settings.freeVramOnIdle, true);
|
||||
assert.equal(settings.wakeCommand, 'jarvis-wake-bridge');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user