Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ Everything currently ships from one package with a few focused entry surfaces:

```sh
bargekit fixtures --json
bargekit tune --fixture tests/fixtures/long_utterance.json --json
bargekit smoke --fixture tests/fixtures/interruption_timing.json --json
bargekit tune --profile wired_headset --json
bargekit smoke --name interruption_timing --json
bargekit demo
```

The CLI uses synthetic/local fixture data only; it does not open a microphone.
The CLI uses built-in synthetic data or explicit local fixture files only; it does not open a microphone.

## Demo

Expand Down
17 changes: 17 additions & 0 deletions test/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,27 @@ test('cli smokes a checked-in fixture file', () => {
assert.equal(payload.passed, true);
});

test('cli smokes a built-in fixture by name for installed users', () => {
const result = runCli(['smoke', '--name', 'interruption_timing', '--json']);
assert.equal(result.status, 0, result.stderr);
const payload = JSON.parse(result.stdout);
assert.equal(payload.fixture, 'interruption_timing');
assert.equal(payload.speechStarted, true);
assert.equal(payload.passed, true);
});

test('cli tune can analyze a fixture file', () => {
const result = runCli(['tune', '--fixture', 'tests/fixtures/long_utterance.json', '--json']);
assert.equal(result.status, 0, result.stderr);
const report = JSON.parse(result.stdout);
assert.equal(report[0].fixture, 'long_utterance');
assert.ok(report[0].speechFrames > 0);
});

test('cli tune can use bundled fixtures without file paths', () => {
const result = runCli(['tune', '--profile', 'wired_headset', '--json']);
assert.equal(result.status, 0, result.stderr);
const report = JSON.parse(result.stdout);
assert.ok(report.some((item) => item.fixture === 'interruption_timing'));
assert.ok(report.every((item) => Number.isFinite(item.peakLevel)));
});
Loading