diff --git a/CHANGELOG.md b/CHANGELOG.md index b2da990..106b571 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. - Add an opt-in `-tts-system-timeout` to recover the speech queue from a hung system TTS child while preserving unlimited playback by default. Thanks @SebTardif! (#10) - Deliver buffered bridge frames before reporting disconnects, preventing lost pairing and hello replies, and let bridge readers exit without an error consumer. Thanks @SebTardif! (#9) - Stop speech queues and cancel active system TTS when the bridge disconnects or the node exits. Thanks @SebTardif! (#7) diff --git a/README.md b/README.md index b87dbe8..b72a27f 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). | @@ -63,8 +63,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 fd31ac9..0de191e 100644 --- a/cmd/clawgo/main.go +++ b/cmd/clawgo/main.go @@ -134,7 +134,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)") @@ -175,7 +175,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")