Files
claude-voice-experiment/test-chime.mjs
mikael-lovqvists-claude-agent a7fa2fd218 Add Pending_Query class and voice interaction improvements
- lib/pending-query.mjs: new state machine for query accumulation
  wake word, silence timer, send/cancel/pause/resume, instant dispatch,
  mode toggle (always listen / stop listening), mode query
- query-demo.mjs: refactored to use Pending_Query; wake word on by default
  with silence timer; chimes for dispatch/working/cancel/activate
- tts-server.mjs: track last_speak_at, expose /activity endpoint,
  chime playback via Python queue (soundfile + librosa), preload on startup
- chatterbox-server.py: chime and preload commands via stdin protocol
- lib/chatterbox-tts.mjs: play_chime and preload_chime methods
- test-chime.mjs: simple chime test script
- voices.yaml: configured ready/cancel/working/dispatch chimes
- CLEANUP-PLAN.md: updated with current state, command vocabulary, future plans

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 03:59:11 +00:00

14 lines
321 B
JavaScript
Executable File

#!/usr/bin/env node
import { Tts_Client } from './lib/tts-client.mjs'
const name = process.argv[2] ?? 'ready'
const tts = new Tts_Client()
try {
await tts.chime(name)
process.stderr.write(`chime '${name}' played\n`)
} catch (err) {
process.stderr.write(`chime '${name}' failed: ${err.message}\n`)
process.exit(1)
}