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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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). |
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions cmd/clawgo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down Expand Up @@ -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")
Expand Down
Loading