From 082ae1deafb7511bc4e5c66dbaa90c61a634015d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 23 Sep 2026 00:19:38 -0700 Subject: [PATCH] docs: correct FIFO input and supported TTS engines --- CHANGELOG.md | 1 + README.md | 5 ++--- cmd/clawgo/main.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 137e7bc..7c6642c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- Fix the FIFO transcript example and list only implemented TTS engines in CLI help and documentation. - Stop speech queues and cancel active system TTS when the bridge disconnects or the node exits. Thanks @SebTardif! (#7) - Forward only final speech transcripts to quick actions, voice events, and agent requests. Thanks @SebTardif! (#12) - Treat leading dashes in spoken text as words instead of espeak options. Thanks @SebTardif! (#11) diff --git a/README.md b/README.md index 87451e2..32d354e 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ GOOS=linux GOARCH=arm64 go build -o /tmp/clawgo-linux-arm64 ./cmd/clawgo | `-session-key` | Session for outgoing `voice.transcript` events (default `main`). | | `-chat-session-key` | Session to subscribe for chat replies (default mirrors `-session-key`). | | `-chat-subscribe` | Enable chat stream+TTS (default `true`). | -| `-tts-engine` | `system`, `piper`, `elevenlabs`, or `none` (system = `espeak-ng`). | +| `-tts-engine` | `system` or `none` (system = `espeak-ng`). | | `-tts-system-voice` | espeak voice id (default `en-us`). | | `-tts-system-command` | espeak-compatible executable; receives voice/rate options, `--`, then the utterance. | | `-tts-system-rate` | Speech rate (wpm). | @@ -62,8 +62,7 @@ tail -f /tmp/voice.fifo | ./clawgo run \ -chat-subscribe \ -tts-engine system # elsewhere -printf hey computer turn on the lights - > /tmp/voice.fifo +printf '%s\n' 'hey computer turn on the lights' > /tmp/voice.fifo ``` Each line on the FIFO becomes a `voice.transcript`; chat responses from the outgoing session (`main` by default) are spoken via `espeak-ng`. Set `-chat-session-key` to subscribe to a different session explicitly. diff --git a/cmd/clawgo/main.go b/cmd/clawgo/main.go index 4df1534..3090556 100644 --- a/cmd/clawgo/main.go +++ b/cmd/clawgo/main.go @@ -133,7 +133,7 @@ func usage() { fmt.Fprintln(os.Stderr, " -deliver Deliver agent response to a channel") fmt.Fprintln(os.Stderr, " -deliver-channel Channel for delivery (telegram|whatsapp|signal|imessage)") fmt.Fprintln(os.Stderr, " -deliver-to Destination id (e.g. telegram chat id)") - fmt.Fprintln(os.Stderr, " -tts-engine TTS engine (system, piper, elevenlabs, none)") + fmt.Fprintln(os.Stderr, " -tts-engine TTS engine (system, none)") fmt.Fprintln(os.Stderr, " -tts-system-voice Voice id for system TTS (default en-us)") fmt.Fprintln(os.Stderr, " -tts-system-rate Speech rate for system TTS (default 180)") fmt.Fprintln(os.Stderr, " -tts-system-command Binary for system TTS (default espeak-ng)") @@ -173,7 +173,7 @@ func parseFlags(cmd string, args []string) NodeConfig { deliver := fs.Bool("deliver", false, "deliver agent response to channel") deliverChannel := fs.String("deliver-channel", "", "deliver channel (telegram|whatsapp|signal|imessage)") deliverTo := fs.String("deliver-to", "", "deliver destination id") - ttsEngine := fs.String("tts-engine", "system", "TTS engine (system, piper, elevenlabs, none)") + ttsEngine := fs.String("tts-engine", "system", "TTS engine (system, none)") ttsSystemVoice := fs.String("tts-system-voice", "en-us", "voice id for system TTS") ttsSystemRate := fs.Int("tts-system-rate", 180, "speech rate for system TTS") ttsSystemCommand := fs.String("tts-system-command", "espeak-ng", "binary for system TTS")