agentvibes 4.0.1 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/.agentvibes/bmad/bmad-voices.md +69 -69
  2. package/.agentvibes/config.json +12 -0
  3. package/.claude/activation-instructions +54 -54
  4. package/.claude/audio/tracks/README.md +52 -52
  5. package/.claude/commands/agent-vibes/add.md +21 -21
  6. package/.claude/commands/agent-vibes/agent-vibes.md +101 -101
  7. package/.claude/commands/agent-vibes/agent.md +79 -79
  8. package/.claude/commands/agent-vibes/background-music.md +111 -111
  9. package/.claude/commands/agent-vibes/bmad.md +198 -198
  10. package/.claude/commands/agent-vibes/clean.md +18 -18
  11. package/.claude/commands/agent-vibes/cleanup.md +18 -18
  12. package/.claude/commands/agent-vibes/commands.json +145 -145
  13. package/.claude/commands/agent-vibes/effects.md +97 -97
  14. package/.claude/commands/agent-vibes/get.md +9 -9
  15. package/.claude/commands/agent-vibes/hide.md +91 -91
  16. package/.claude/commands/agent-vibes/language.md +23 -23
  17. package/.claude/commands/agent-vibes/learn.md +67 -67
  18. package/.claude/commands/agent-vibes/list.md +13 -13
  19. package/.claude/commands/agent-vibes/mute.md +37 -37
  20. package/.claude/commands/agent-vibes/preview.md +17 -17
  21. package/.claude/commands/agent-vibes/provider.md +68 -68
  22. package/.claude/commands/agent-vibes/replay-target.md +14 -14
  23. package/.claude/commands/agent-vibes/sample.md +12 -12
  24. package/.claude/commands/agent-vibes/set-favorite-voice.md +84 -84
  25. package/.claude/commands/agent-vibes/set-pretext.md +65 -65
  26. package/.claude/commands/agent-vibes/set-speed.md +41 -41
  27. package/.claude/commands/agent-vibes/show.md +84 -84
  28. package/.claude/commands/agent-vibes/switch.md +87 -87
  29. package/.claude/commands/agent-vibes/target-voice.md +26 -26
  30. package/.claude/commands/agent-vibes/target.md +30 -30
  31. package/.claude/commands/agent-vibes/translate.md +68 -68
  32. package/.claude/commands/agent-vibes/unmute.md +45 -45
  33. package/.claude/commands/agent-vibes/verbosity.md +89 -89
  34. package/.claude/commands/agent-vibes/whoami.md +7 -7
  35. package/.claude/commands/agent-vibes-bmad-voices.md +117 -117
  36. package/.claude/commands/agent-vibes-rdp.md +24 -24
  37. package/.claude/config/agentvibes.json +1 -0
  38. package/.claude/config/audio-effects.cfg +3 -2
  39. package/.claude/config/audio-effects.cfg.sample +52 -52
  40. package/.claude/config/background-music-volume.txt +1 -0
  41. package/.claude/config/intro-text.txt +1 -0
  42. package/.claude/config/piper-speech-rate.txt +4 -0
  43. package/.claude/config/piper-target-speech-rate.txt +1 -0
  44. package/.claude/config/reverb-level.txt +1 -0
  45. package/.claude/config/tts-speech-rate.txt +4 -0
  46. package/.claude/config/tts-target-speech-rate.txt +1 -0
  47. package/.claude/docs/TERMUX_SETUP.md +408 -408
  48. package/.claude/github-star-reminder.txt +1 -1
  49. package/.claude/hooks/README-TTS-QUEUE.md +135 -135
  50. package/.claude/hooks/audio-cache-utils.sh +246 -246
  51. package/.claude/hooks/audio-processor.sh +433 -389
  52. package/.claude/hooks/background-music-manager.sh +404 -404
  53. package/.claude/hooks/bmad-speak-enhanced.sh +165 -165
  54. package/.claude/hooks/bmad-speak.sh +269 -112
  55. package/.claude/hooks/bmad-tts-injector.sh +568 -568
  56. package/.claude/hooks/bmad-voice-manager.sh +928 -928
  57. package/.claude/hooks/clawdbot-receiver-SECURE.sh +129 -129
  58. package/.claude/hooks/clawdbot-receiver.sh +107 -107
  59. package/.claude/hooks/clean-audio-cache.sh +22 -22
  60. package/.claude/hooks/cleanup-cache.sh +106 -106
  61. package/.claude/hooks/configure-rdp-mode.sh +137 -137
  62. package/.claude/hooks/download-extra-voices.sh +244 -244
  63. package/.claude/hooks/effects-manager.sh +268 -268
  64. package/.claude/hooks/github-star-reminder.sh +154 -154
  65. package/.claude/hooks/language-manager.sh +362 -362
  66. package/.claude/hooks/learn-manager.sh +492 -492
  67. package/.claude/hooks/macos-voice-manager.sh +205 -205
  68. package/.claude/hooks/migrate-background-music.sh +125 -125
  69. package/.claude/hooks/migrate-to-agentvibes.sh +161 -161
  70. package/.claude/hooks/optimize-background-music.sh +87 -87
  71. package/.claude/hooks/path-resolver.sh +60 -60
  72. package/.claude/hooks/personality-manager.sh +448 -448
  73. package/.claude/hooks/piper-download-voices.sh +225 -225
  74. package/.claude/hooks/piper-installer.sh +292 -292
  75. package/.claude/hooks/piper-multispeaker-registry.sh +171 -171
  76. package/.claude/hooks/piper-voice-manager.sh +24 -3
  77. package/.claude/hooks/play-tts-agentvibes-receiver-for-voiceless-connections.sh +90 -90
  78. package/.claude/hooks/play-tts-enhanced.sh +105 -70
  79. package/.claude/hooks/play-tts-macos.sh +368 -345
  80. package/.claude/hooks/play-tts-piper.sh +679 -578
  81. package/.claude/hooks/play-tts-soprano.sh +356 -320
  82. package/.claude/hooks/play-tts-ssh-remote.sh +167 -88
  83. package/.claude/hooks/play-tts-termux-ssh.sh +169 -169
  84. package/.claude/hooks/play-tts.sh +301 -298
  85. package/.claude/hooks/prepare-release.sh +54 -54
  86. package/.claude/hooks/provider-commands.sh +617 -617
  87. package/.claude/hooks/provider-manager.sh +399 -399
  88. package/.claude/hooks/replay-target-audio.sh +95 -95
  89. package/.claude/hooks/requirements.txt +6 -6
  90. package/.claude/hooks/sentiment-manager.sh +201 -201
  91. package/.claude/hooks/session-start-tts.sh +81 -71
  92. package/.claude/hooks/soprano-gradio-synth.py +139 -139
  93. package/.claude/hooks/speed-manager.sh +291 -291
  94. package/.claude/hooks/stop-tts.sh +84 -0
  95. package/.claude/hooks/termux-installer.sh +261 -261
  96. package/.claude/hooks/translate-manager.sh +341 -341
  97. package/.claude/hooks/translator.py +237 -237
  98. package/.claude/hooks/tts-queue-worker.sh +145 -114
  99. package/.claude/hooks/tts-queue.sh +165 -136
  100. package/.claude/hooks/verbosity-manager.sh +178 -178
  101. package/.claude/hooks/voice-manager.sh +548 -544
  102. package/.claude/hooks-windows/audio-cache-utils.ps1 +119 -119
  103. package/.claude/hooks-windows/background-music-manager.ps1 +348 -0
  104. package/.claude/hooks-windows/clean-audio-cache.ps1 +53 -0
  105. package/.claude/hooks-windows/download-extra-voices.ps1 +185 -0
  106. package/.claude/hooks-windows/effects-manager.ps1 +294 -0
  107. package/.claude/hooks-windows/language-manager.ps1 +193 -0
  108. package/.claude/hooks-windows/learn-manager.ps1 +241 -0
  109. package/.claude/hooks-windows/personality-manager.ps1 +266 -0
  110. package/.claude/hooks-windows/play-tts-piper.ps1 +209 -0
  111. package/.claude/hooks-windows/play-tts-sapi.ps1 +108 -0
  112. package/.claude/hooks-windows/play-tts-soprano.ps1 +159 -158
  113. package/.claude/hooks-windows/play-tts-windows-piper.ps1 +50 -5
  114. package/.claude/hooks-windows/play-tts-windows-sapi.ps1 +108 -108
  115. package/.claude/hooks-windows/play-tts.ps1 +344 -266
  116. package/.claude/hooks-windows/provider-manager.ps1 +29 -10
  117. package/.claude/hooks-windows/session-start-tts.ps1 +124 -124
  118. package/.claude/hooks-windows/soprano-gradio-synth.py +153 -153
  119. package/.claude/hooks-windows/speed-manager.ps1 +166 -0
  120. package/.claude/hooks-windows/verbosity-manager.ps1 +119 -0
  121. package/.claude/hooks-windows/voice-manager-windows.ps1 +92 -8
  122. package/.claude/output-styles/agent-vibes.md +202 -202
  123. package/.claude/personalities/angry.md +14 -14
  124. package/.claude/personalities/annoying.md +14 -14
  125. package/.claude/personalities/crass.md +14 -14
  126. package/.claude/personalities/dramatic.md +14 -14
  127. package/.claude/personalities/dry-humor.md +50 -50
  128. package/.claude/personalities/flirty.md +20 -20
  129. package/.claude/personalities/funny.md +14 -14
  130. package/.claude/personalities/grandpa.md +32 -32
  131. package/.claude/personalities/millennial.md +14 -14
  132. package/.claude/personalities/moody.md +14 -14
  133. package/.claude/personalities/normal.md +16 -16
  134. package/.claude/personalities/pirate.md +14 -14
  135. package/.claude/personalities/poetic.md +14 -14
  136. package/.claude/personalities/professional.md +14 -14
  137. package/.claude/personalities/rapper.md +55 -55
  138. package/.claude/personalities/robot.md +14 -14
  139. package/.claude/personalities/sarcastic.md +38 -38
  140. package/.claude/personalities/sassy.md +14 -14
  141. package/.claude/personalities/surfer-dude.md +14 -14
  142. package/.claude/personalities/zen.md +14 -14
  143. package/.claude/settings.json +15 -15
  144. package/.claude/verbosity.txt +1 -1
  145. package/.clawdbot/README.md +105 -105
  146. package/.clawdbot/skill/SKILL.md +241 -241
  147. package/.mcp.json +12 -0
  148. package/CLAUDE.md +170 -181
  149. package/README.md +2029 -1909
  150. package/RELEASE_NOTES.md +1310 -66
  151. package/WINDOWS-SETUP.md +208 -208
  152. package/bin/agent-vibes +39 -39
  153. package/bin/agentvibes-voice-browser.js +1840 -1826
  154. package/bin/agentvibes.js +48 -2
  155. package/bin/mcp-server.js +121 -121
  156. package/bin/mcp-server.sh +206 -206
  157. package/bin/test-bmad-pr +78 -78
  158. package/mcp-server/QUICK_START.md +203 -203
  159. package/mcp-server/README.md +345 -345
  160. package/mcp-server/WINDOWS_SETUP.md +260 -260
  161. package/mcp-server/docs/troubleshooting-audio.md +313 -313
  162. package/mcp-server/examples/claude_desktop_config.json +11 -11
  163. package/mcp-server/examples/claude_desktop_config_piper.json +9 -9
  164. package/mcp-server/examples/custom_instructions.md +169 -169
  165. package/mcp-server/install-deps.js +130 -130
  166. package/mcp-server/pyproject.toml +52 -52
  167. package/mcp-server/requirements.txt +2 -2
  168. package/mcp-server/server.py +1465 -1417
  169. package/mcp-server/test_server.py +395 -395
  170. package/mcp-server/test_windows_script_parity.py +336 -0
  171. package/package.json +110 -112
  172. package/setup-windows.ps1 +815 -815
  173. package/src/bmad-detector.js +71 -71
  174. package/src/cli/list-personalities.js +110 -110
  175. package/src/cli/list-voices.js +114 -114
  176. package/src/commands/bmad-voices.js +394 -394
  177. package/src/commands/install-mcp.js +476 -476
  178. package/src/console/app.js +824 -806
  179. package/src/console/audio-env.js +20 -1
  180. package/src/console/brand-colors.js +13 -13
  181. package/src/console/constants/personalities.js +44 -0
  182. package/src/console/footer-config.js +50 -46
  183. package/src/console/modals/modal-overlay.js +247 -247
  184. package/src/console/navigation.js +62 -61
  185. package/src/console/tabs/agents-tab.js +1684 -369
  186. package/src/console/tabs/help-tab.js +261 -261
  187. package/src/console/tabs/install-tab.js +1007 -991
  188. package/src/console/tabs/music-tab.js +22 -8
  189. package/src/console/tabs/placeholder-tab.js +53 -46
  190. package/src/console/tabs/readme-tab.js +267 -267
  191. package/src/console/tabs/receiver-tab.js +1472 -0
  192. package/src/console/tabs/settings-tab.js +185 -402
  193. package/src/console/tabs/voices-tab.js +100 -21
  194. package/src/console/widgets/destroy-list.js +25 -0
  195. package/src/console/widgets/format-utils.js +89 -0
  196. package/src/console/widgets/notice.js +55 -0
  197. package/src/console/widgets/personality-picker.js +185 -0
  198. package/src/console/widgets/reverb-picker.js +94 -0
  199. package/src/console/widgets/track-picker.js +285 -0
  200. package/src/installer/music-file-input.js +304 -304
  201. package/src/installer.js +5882 -5777
  202. package/src/services/agent-voice-store.js +423 -163
  203. package/src/services/config-service.js +264 -264
  204. package/src/services/navigation-service.js +123 -123
  205. package/src/services/provider-service.js +132 -132
  206. package/src/services/verbosity-service.js +157 -157
  207. package/src/utils/audio-duration-validator.js +298 -298
  208. package/src/utils/audio-format-validator.js +277 -277
  209. package/src/utils/dependency-checker.js +469 -466
  210. package/src/utils/file-ownership-verifier.js +358 -358
  211. package/src/utils/list-formatter.js +194 -194
  212. package/src/utils/music-file-validator.js +285 -275
  213. package/src/utils/preview-list-prompt.js +136 -136
  214. package/src/utils/provider-validator.js +96 -12
  215. package/src/utils/secure-music-storage.js +412 -412
  216. package/templates/agentvibes-receiver.sh +482 -162
  217. package/templates/audio/welcome-music.mp3 +0 -0
  218. package/voice-assignments.json +8244 -8244
  219. package/.claude/config/background-music-position.txt +0 -1
package/README.md CHANGED
@@ -1,1909 +1,2029 @@
1
- # 🎤 AgentVibes
2
-
3
- > **Finally! Your agents can talk back!**
4
- >
5
- > 🌐 **[agentvibes.org](https://agentvibes.org)**
6
- >
7
- > Professional text-to-speech for **Claude Code**, **Claude Desktop**, **Warp Terminal**, and **OpenClaw** - **Soprano** (Neural), **Piper TTS** (Free!), **macOS Say** (Built-in!), or **Windows SAPI** (Zero Setup!)
8
-
9
- [![npm version](https://img.shields.io/npm/v/agentvibes)](https://www.npmjs.com/package/agentvibes)
10
- [![Test Suite](https://github.com/paulpreibisch/AgentVibes/actions/workflows/test.yml/badge.svg)](https://github.com/paulpreibisch/AgentVibes/actions/workflows/test.yml)
11
- [![Publish](https://github.com/paulpreibisch/AgentVibes/actions/workflows/publish.yml/badge.svg)](https://github.com/paulpreibisch/AgentVibes/actions/workflows/publish.yml)
12
- [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
13
-
14
- **Author**: Paul Preibisch ([@997Fire](https://x.com/997Fire)) | **Version**: v4.0.0
15
-
16
- ---
17
-
18
- ## 🚀 Quick Links
19
-
20
- | I want to... | Go here |
21
- |--------------|---------|
22
- | **Install AgentVibes** (just `npx`, no git!) | [Quick Start Guide](docs/quick-start.md) |
23
- | **Run Claude Code on Android** | [Android/Termux Setup](#-android--termux) |
24
- | **Secure OpenClaw on Remote Server** | [Security Hardening Guide](docs/security-hardening-guide.md) ⚠️ |
25
- | **Understand what I need** | [Prerequisites](#-prerequisites) |
26
- | **Set up on Windows (Native)** | [Windows Native Setup](WINDOWS-SETUP.md) |
27
- | **Set up on Windows (Claude Desktop/WSL)** | [Windows WSL Guide](mcp-server/WINDOWS_SETUP.md) |
28
- | **Use with OpenClaw** | [OpenClaw Integration](#-openclaw-integration) |
29
- | **Use natural language** | [MCP Setup](docs/mcp-setup.md) |
30
- | **Switch voices** | [Voice Library](docs/voice-library.md) |
31
- | **Fix issues** (git-lfs? MCP tokens? Read this!) | [Troubleshooting](docs/troubleshooting.md) & [FAQ](#-frequently-asked-questions-faq) |
32
-
33
- ---
34
-
35
- ## ✨ What is AgentVibes?
36
-
37
- **AgentVibes adds lively voice narration to your Claude AI sessions!**
38
-
39
- Whether you're coding in Claude Code, chatting in Claude Desktop, using Warp Terminal, or running OpenClaw - AgentVibes brings AI to life with professional voices and personalities.
40
-
41
- ---
42
-
43
- ## 🌟 NEW FEATURE HIGHLIGHTS
44
-
45
- ### 🖥️ AgentVibes v4.0 Interactive TUI Console
46
-
47
- ![AgentVibes TUI Console](docs/installation-screenshots/screenshot-voices.png)
48
-
49
- **🎤 Browse, Sample & Install 914 Voices All From One Console**
50
-
51
- ```bash
52
- npx agentvibes install
53
- ```
54
-
55
- The new **AgentVibes TUI Console** is a full interactive terminal application with tabbed navigation:
56
-
57
- - 🖥️ **Settings Tab** - Real-time settings management with live preview
58
- - 🎤 **Voices Tab** - Browse, sample, and install 914+ voices with one keypress
59
- - 🎵 **Music Tab** - Browse and preview 16 background music tracks
60
- - **Help Tab** - Built-in documentation and quick reference
61
-
62
- **914 Total Voices:**
63
- - 904 High-Quality Piper TTS Speakers (libritts-high model)
64
- - 10 Hand-Curated Personality Voices
65
-
66
- **Perfect for:**
67
- - Managing all AgentVibes settings in one place
68
- - Finding your ideal AI voice
69
- - Quick voice switching with Save Locally/Globally options
70
- - Browsing and previewing background music
71
-
72
- Launch now: `npx agentvibes`
73
-
74
- ---
75
-
76
- ### 💬 Intro Text (Pretext) - Your Personal AI Branding
77
-
78
- **Add custom prefixes to every TTS announcement!**
79
-
80
- ```bash
81
- npx agentvibes config intro-text
82
- ```
83
-
84
- Transform generic AI responses into your personal brand:
85
-
86
- **Before:**
87
- ```
88
- "Starting analysis of the codebase..."
89
- ```
90
-
91
- **After (with "FireBot: " intro text):**
92
- ```
93
- "FireBot: Starting analysis of the codebase..."
94
- ```
95
-
96
- **Perfect for:**
97
- - 🤖 **Personal AI Branding** - Make Claude sound like your custom assistant
98
- - 🏢 **Team Identity** - Company bots with branded voices
99
- - 🎮 **Character Roleplay** - Gaming assistants with character names
100
- - 🎓 **Teaching Contexts** - Professor Bot, Tutor AI, etc.
101
-
102
- **Features:**
103
- - Up to 50 characters
104
- - UTF-8 and emoji support 🎉
105
- - Set during installation or anytime after
106
- - Works with all TTS providers
107
- - Applies to every single announcement
108
-
109
- **Examples:**
110
- - `"JARVIS: "` - Iron Man style
111
- - `"🤖 Assistant: "` - With emoji
112
- - `"CodeBot: "` - Development assistant
113
- - `"Chef AI: "` - Cooking helper
114
-
115
- Configure now: `npx agentvibes config intro-text`
116
-
117
- ---
118
-
119
- ### 🎵 Custom Background Music - Complete Audio Control
120
-
121
- **Upload your own background music with battle-tested security!**
122
-
123
- ```bash
124
- npx agentvibes config music
125
- ```
126
-
127
- Replace the default background tracks with your own audio files for complete sonic branding.
128
-
129
- **Supported Formats:**
130
- - 🎵 MP3 (.mp3)
131
- - 🎵 WAV (.wav)
132
- - 🎵 OGG (.ogg)
133
- - 🎵 M4A (.m4a)
134
-
135
- **Security First:**
136
- - ✅ **180+ attack variations tested** - Path traversal, symlinks, Unicode tricks
137
- - ✅ **100% attack rejection rate** - Every malicious attempt blocked
138
- - **OWASP CWE-22 compliant** - Industry-standard security
139
- - ✅ **7 validation layers** - Defense-in-depth architecture
140
- - **File ownership verification** - Only your files accepted
141
- - **Magic number validation** - Real audio files only
142
- - **Secure storage** - 600 permissions, restricted directory
143
-
144
- **Smart Validation:**
145
- - Recommended duration: 30-90 seconds (optimal looping)
146
- - Maximum: 300 seconds (5 minutes)
147
- - Maximum size: 50MB
148
- - Automatic format detection
149
- - Duration warnings for non-optimal lengths
150
-
151
- **Perfect for:**
152
- - 🎸 **Team Audio Branding** - Company theme music
153
- - 🎮 **Gaming Sessions** - Epic background tracks
154
- - 🎼 **Personal Playlists** - Your favorite instrumental
155
- - 🎹 **Focus Music** - Lo-fi, classical, ambient
156
-
157
- **Features:**
158
- - Preview before setting
159
- - One-command upload
160
- - Works with all TTS providers
161
- - Loops seamlessly under voice
162
- - Easy restore to defaults
163
-
164
- **Menu Options:**
165
- 1. Change music - Upload new audio file
166
- 2. Remove music - Clear custom music
167
- 3. Reset to default - Restore built-in tracks (16 genres)
168
- 4. Enable/Disable - Toggle background music
169
- 5. Preview current - Sample your music
170
-
171
- Configure now: `npx agentvibes config music`
172
-
173
- **Security Certified:** See full audit report at `docs/security/SECURITY-AUDIT.md`
174
-
175
- ---
176
-
177
- ### 🎯 Key Features
178
-
179
- **🌟 NEW IN v4.0.0 Interactive Console & Voice Explorer:**
180
- - 🖥️ **Interactive TUI Console** - Full terminal UI with tabbed navigation (Settings, Voices, Music, Help)
181
- - 🎤 **914+ Voices** - Browse, preview, and install voices with multi-speaker support
182
- - 🔊 **Reliable TTS Hooks** - SessionStart JSON output + auto git-init for guaranteed hook support
183
- - 🏷️ **Friendly Voice Names** - "Ryan" instead of "en_US-libritts_r-medium-speaker-123"
184
- - 💬 **Intro Text (Pretext)** - Custom prefix for all TTS ("FireBot: Starting...")
185
- - 🎵 **Custom Background Music** - Upload your own audio files with battle-tested security
186
- - 🛡️ **Security Hardening** - 58 issues fixed, 180+ attack variations tested, OWASP compliant
187
-
188
- **🪟 NEW IN v3.5.5 Native Windows Support:**
189
- - 🖥️ **Windows Native TTS** - Soprano, Piper, and Windows SAPI providers. No WSL required!
190
- - 🎵 **Background Music** - 16 genre tracks mixed under voice
191
- - 🎛️ **Reverb & Audio Effects** - 5 reverb levels via ffmpeg
192
- - 🔊 **Verbosity Control** - High, Medium, or Low settings
193
- - 🎨 **Beautiful Installer** - `npx agentvibes install` or `.\setup-windows.ps1`
194
-
195
- **⚡ v3.4.0 Highlights:**
196
- - 🎤 **Soprano TTS Provider** - Ultra-fast neural TTS with 20x CPU, 2000x GPU acceleration (thanks [@nathanchase](https://github.com/nathanchase)!)
197
- - 🛡️ **Security Hardening** - 9.5/10 score with comprehensive validation and timeouts
198
- - 🌐 **Environment Intelligence** - PulseAudio tunnel auto-detection for SSH scenarios
199
-
200
- **⚡ Core Features:**
201
- - **One-Command Install** - Get started in 30 seconds (`npx agentvibes install` or `.\setup-windows.ps1` without Node.js)
202
- - 🎭 **Multi-Provider Support** - Soprano (neural), Piper TTS (50+ free voices), macOS Say (100+ built-in), or Windows SAPI
203
- - 🎙️ **27+ Professional AI Voices** - Character voices, accents, and unique personalities
204
- - 🎙️ **Verbosity Control** - Choose how much Claude speaks (LOW, MEDIUM, HIGH)
205
- - 🎙️ **AgentVibes MCP** - Natural language control ("Switch to Aria voice") for Claude Code, Desktop & Warp
206
- - 🔊 **SSH Audio Optimization** - Auto-detects remote sessions and eliminates static (VS Code Remote SSH, cloud dev)
207
-
208
- **🎭 Personalization:**
209
- - 🎭 **19 Built-in Personalities** - From sarcastic to flirty, pirate to dry humor
210
- - 💬 **Advanced Sentiment System** - Apply personality styles to ANY voice without changing it
211
- - 🎵 **Voice Preview & Replay** - Listen before you choose, replay last 10 TTS messages
212
-
213
- **🚀 Integrations & Power Features:**
214
- - 🔌 **Enhanced BMAD Plugin** - Auto voice switching for BMAD agents with multilingual support
215
- - 🔊 **Live Audio Feedback** - Hear task acknowledgments and completions in any language
216
- - 🌍 **30+ Languages** - Multilingual support with native voice quality
217
- - 🆓 **Free & Open** - Use Piper TTS with no API key required
218
-
219
- ### 🤗 Hugging Face AI Voice Models
220
-
221
- **AgentVibes' Piper TTS uses 100% Hugging Face-trained AI voice models** from [rhasspy/piper-voices](https://huggingface.co/rhasspy/piper-voices).
222
-
223
- **What are Hugging Face voice models?**
224
-
225
- Hugging Face voice models are pre-trained artificial intelligence models hosted on the Hugging Face Model Hub platform, designed to convert text into human-like speech (Text-to-Speech or TTS) or perform other speech tasks like voice cloning and speech-to-speech translation. They're accessible via their Transformers library for easy use in applications like voice assistants, audio generation, and more.
226
-
227
- **Key Benefits:**
228
- - 🎯 **Human-like Speech** - VITS-based neural models for natural pronunciation and intonation
229
- - 🌍 **35+ Languages** - Multilingual support with native accents
230
- - 🆓 **100% Open Source** - All Piper voices are free HF models (Tacotron2, FastSpeech2, VITS)
231
- - 🔧 **Developer-Friendly** - Fine-tune, customize, or deploy for various audio projects
232
- - **Offline & Fast** - No API keys, no internet needed once installed
233
-
234
- All 50+ Piper voices AgentVibes provides are sourced from Hugging Face's open-source AI voice models, ensuring high-quality, natural-sounding speech synthesis across all supported platforms.
235
-
236
- ---
237
-
238
- ## 📑 Table of Contents
239
-
240
- ### Getting Started
241
- - [🚀 Quick Start](#-quick-start) - Get voice in 30 seconds (3 simple steps)
242
- - [📱 Android/Termux](#-quick-setup-android--termux-claude-code-on-your-phone) - Run Claude Code on your phone
243
- - [📋 Prerequisites](#-prerequisites) - What you actually need (Node.js + optional tools)
244
- - [✨ What is AgentVibes?](#-what-is-agentvibes) - Overview & key features
245
- - [🌟 NEW FEATURE HIGHLIGHTS](#-new-feature-highlights) - **START HERE!**
246
- - [🖥️ TUI Console v4.0](#%EF%B8%8F-agentvibes-v40-interactive-tui-console) - Interactive settings, voices, music
247
- - [💬 Intro Text](#-intro-text-pretext---your-personal-ai-branding) - Custom TTS prefixes
248
- - [🎵 Custom Background Music](#-custom-background-music---complete-audio-control) - Upload your own tracks
249
- - [📰 Latest Release](#-latest-release) - v4.0.0 "Interactive Console & Voice Explorer"
250
- - [🪟 Windows Setup Guide for Claude Desktop](mcp-server/WINDOWS_SETUP.md) - Complete Windows installation with WSL & Python
251
-
252
- ### AgentVibes MCP (Natural Language Control)
253
- - [🎙️ AgentVibes MCP Overview](#%EF%B8%8F-agentvibes-mcp) - **Easiest way** - Natural language commands
254
- - [For Claude Desktop](docs/mcp-setup.md#for-claude-desktop) - Windows/WSL setup, Python requirements
255
- - [For Warp Terminal](docs/mcp-setup.md#for-warp-terminal) - Warp configuration
256
- - [For Claude Code](docs/mcp-setup.md#for-claude-code) - Project-specific setup
257
-
258
- ### Core Features
259
- - [🎤 Commands Reference](#-commands-reference) - All available commands
260
- - [🎙️ Verbosity Control](#%EF%B8%8F-verbosity-control) - Control how much Claude speaks (low/medium/high)
261
- - [🎭 Personalities vs Sentiments](#-personalities-vs-sentiments) - Two systems explained
262
- - [🗣️ Voice Library](#%EF%B8%8F-voice-library) - 914 voices with friendly names
263
- - [🔌 BMAD Plugin](#-bmad-plugin) - Auto voice switching for BMAD agents
264
- - [🎙️ AgentVibes Receiver - NEW!](#%EF%B8%8F-agentvibes-receiver-remote-audio-streaming-from-voiceless-servers) - Remote audio streaming from voiceless servers
265
-
266
- ### Integrations & Platforms
267
- - [🤖 OpenClaw Integration](#-openclaw-integration) - Use AgentVibes with OpenClaw messaging platform
268
- - [🎙️ AgentVibes Skill for OpenClaw](#-agentvibes-skill-for-openclaw---what-you-get) - 50+ voices, effects, personalities for OpenClaw
269
- - [📱 AgentVibes Receiver](#-agentvibes-receiver-local-phone-) - Remote audio on phones/local machines
270
-
271
- ### Advanced Topics
272
- - [📦 Installation Structure](#-installation-structure) - What gets installed
273
- - [💡 Common Workflows](#-common-workflows) - Quick examples
274
- - [🔧 Advanced Features](#-advanced-features) - Custom voices & personalities
275
- - [🔊 Remote Audio Setup](#-remote-audio-setup) - Play TTS from remote servers
276
- - [🛠️ Technical Documentation](#️-technical-documentation) - Audio architecture, cross-platform support, voice resolution
277
- - [🚨 Security Hardening Guide](docs/security-hardening-guide.md) - **REQUIRED if running OpenClaw on remote server**: SSH hardening, Fail2Ban, Tailscale, UFW, AIDE
278
- - [🔬 Technical Deep Dive](docs/technical-deep-dive.md) - How AgentVibes works under the hood
279
- - [❓ Troubleshooting](#-troubleshooting) - Common issues & fixes
280
-
281
- ### Additional Resources
282
- - [🔗 Useful Links](#-useful-links) - Voice typing & AI tools
283
- - [🔄 Updating](#-updating) - Keep AgentVibes current
284
- - [🗑️ Uninstalling](#️-uninstalling) - Remove AgentVibes cleanly
285
- - [❓ FAQ](#-frequently-asked-questions-faq) - **NEW!** Common questions answered (git-lfs, MCP tokens, installation)
286
- - [🍎 macOS Testing](docs/macos-testing.md) - Automated testing on macOS with GitHub Actions
287
- - [🤗 Hugging Face Voice Models](docs/hugging-face-models.md) - Technical details on AI voice models
288
- - [🙏 Credits](#-credits) - Acknowledgments
289
- - [🤝 Contributing](#-contributing) - Show support
290
-
291
- ---
292
-
293
- ## 📰 Latest Release
294
-
295
- **[v4.0.0 - Interactive Console & Voice Explorer](https://github.com/paulpreibisch/AgentVibes/releases/tag/v4.0.0)** 🎉
296
-
297
- AgentVibes v4.0.0 is a major release that transforms the user experience with a full interactive TUI console, 914+ voices in the built-in Voices tab, and comprehensive platform support including Windows, macOS, Android/Termux, and SSH remote audio.
298
-
299
- ### 🖥️ Interactive TUI Console
300
-
301
- **Full terminal UI with tabbed navigation and real-time settings!**
302
-
303
- ![AgentVibes Voices Tab](docs/installation-screenshots/screenshot-voices.png)
304
-
305
- ![AgentVibes Music Tab](docs/installation-screenshots/screenshot-music.png)
306
-
307
- ```bash
308
- npx agentvibes install
309
- ```
310
-
311
- ### Key Highlights
312
-
313
- - 🖥️ **Interactive TUI Console** - Full terminal UI with tabbed navigation (Settings, Voices, Music, Help)
314
- - 🎤 **914+ Voices** - Browse, preview, and install voices with multi-speaker support
315
- - 🔊 **Reliable TTS Hooks** - SessionStart JSON output + auto git-init for guaranteed hook support
316
- - 🪟 **Windows Support** - Native Soprano, Piper, and SAPI providers
317
- - 📱 **Android/Termux** - Mobile TTS with termux-ssh provider
318
- - 🎵 **Background Music** - Custom track uploads with secure validation
319
- - 🛡️ **Security Hardened** - 58 issues fixed, 180+ attack variations tested
320
-
321
- ### Quick Install
322
-
323
- ```bash
324
- # Install AgentVibes
325
- npx agentvibes install
326
- ```
327
-
328
- 💡 **Tip:** If `npx agentvibes` shows an older version, clear cache: `npm cache clean --force && npx agentvibes@latest --help`
329
-
330
- 🐛 **Found a bug?** Report at [GitHub Issues](https://github.com/paulpreibisch/AgentVibes/issues)
331
-
332
- [→ View Complete Release Notes](RELEASE_NOTES.md) | [→ View All Releases](https://github.com/paulpreibisch/AgentVibes/releases)
333
-
334
- [ Back to top](#-table-of-contents)
335
-
336
- ---
337
-
338
- ## 🎙️ AgentVibes MCP
339
-
340
- Agent Vibes was originally created to give the Claude Code assistant a voice! Simply install it with an npx command in your terminal, and Claude Code can talk back to you.
341
-
342
- We've now enhanced this capability by adding an MCP (Model Context Protocol) server. This integration exposes Agent Vibes' functionality directly to your AI assistant, allowing you to configure and control Agent Vibes using natural language instead of typing "/" slash commands.
343
-
344
- Setting it up is straightforward: just add the MCP server to your Claude Code configuration files.
345
-
346
- But the convenience doesn't stop there. With the MCP server in place, Claude Desktop can now use Agent Vibes too! We've even tested it successfully with Warp, an AI assistant that helps you navigate Windows and other operating systems.
347
-
348
- We're thrilled about this expansion because it means Claude Desktop and Warp can finally talk back as well!
349
-
350
- If you decide to use the MCP server on Claude Desktop, after configuration, give Claude Desktop this command: "every time i give you a command, speak the acknowledgement using agentvibes and the confirmation about what you completed, when done"—and watch the magic happen!
351
-
352
- **🎯 Control AgentVibes with natural language - no slash commands to remember!**
353
-
354
- Just say "Switch to Aria voice" or "Speak in Spanish" instead of typing commands.
355
-
356
- **Works in:** Claude Desktop, Claude Code, Warp Terminal
357
-
358
- **[→ View Complete MCP Setup Guide](docs/mcp-setup.md)** - Full setup for all platforms, configuration examples, available tools, and MCP vs slash commands comparison
359
-
360
- [ Back to top](#-table-of-contents)
361
-
362
- ---
363
-
364
- ## 🚀 Quick Start - Get Voice in 30 Seconds
365
-
366
- **3 Simple Steps:**
367
-
368
- ### 1️⃣ Install
369
- ```bash
370
- npx agentvibes install
371
- ```
372
-
373
- ### 2️⃣ Choose Provider (Auto-Detected)
374
- - **macOS**: Native `say` provider (100+ voices) ✨
375
- - **Linux/WSL**: Piper TTS (50+ free voices) 🎙️
376
- - **Windows Native**: Soprano, Piper, or SAPI 🪟
377
- - **Android**: Termux with auto-setup 📱
378
-
379
- ### 3️⃣ Use in Claude Code
380
- Just code normally - AgentVibes automatically speaks task acknowledgments and completions! 🔊
381
-
382
- ---
383
-
384
- ### TUI Console Commands
385
-
386
- AgentVibes includes a full **Text User Interface (TUI)** built with blessed.js for managing voices, music, settings, and installation — all from a single interactive console.
387
-
388
- | Command | Description |
389
- |---------|-------------|
390
- | `npx agentvibes` | Smart detection opens Settings if installed, Install if not |
391
- | `npx agentvibes install` | Open the Install tab directly |
392
- | `npx agentvibes config` | Open the Settings tab directly |
393
-
394
- Once inside, use **Tab** / **Shift+Tab** to switch between tabs: **Voices**, **Music**, **Settings**, and **Install**. Use **[** / **]** to page through voice and music catalogs.
395
-
396
- ---
397
-
398
- **🍎 macOS Users (One-Time Setup):**
399
- ```bash
400
- brew install bash # Required for bash 5.x features
401
- ```
402
- macOS ships with bash 3.2 (from 2007). After this, everything works perfectly!
403
-
404
- ---
405
-
406
- **[→ Full Setup Guide](docs/quick-start.md)** - Advanced options, provider switching, and detailed setup
407
-
408
- [↑ Back to top](#-table-of-contents)
409
-
410
- ---
411
-
412
- ## 📋 Prerequisites - What You Actually Need
413
-
414
- ### Minimum (Core Features)
415
- **✅ REQUIRED:**
416
- - **Node.js** ≥16.0 - Check with: `node --version`
417
-
418
- ### Required for Full Features
419
- **✅ STRONGLY RECOMMENDED:**
420
- - **Python** 3.10+ - Needed for Piper TTS voice engine
421
- - **bash** 5.0+ - macOS only (macOS ships with 3.2 from 2007)
422
-
423
- ### Optional but Recommended
424
- **⭕ OPTIONAL (TTS still works without them):**
425
- - **sox** - Audio effects (reverb, EQ, pitch shifting)
426
- - **ffmpeg** - Background music, audio padding, RDP compression
427
-
428
- ### NOT Required (Despite What You've Heard)
429
- **❌ DEFINITELY NOT NEEDED:**
430
- - Git or git-lfs (npm handles everything)
431
- - ❌ Repository cloning (unless you're contributing code)
432
- - ❌ Build tools or C++ compilers (pre-built package ready to use)
433
-
434
- ### Installation Methods
435
-
436
- | Method | Command | Use Case |
437
- |--------|---------|----------|
438
- | **✅ RECOMMENDED: NPX (via npm)** | `npx agentvibes install` | **All platforms** - Just want to use AgentVibes |
439
- | **🪟 Windows PowerShell** | `.\setup-windows.ps1` | **Windows** - Standalone installer (no Node.js needed) |
440
- | **⚠️ Git Clone** | `git clone ...` | **Developers Only** - Contributing code |
441
-
442
- **Why npx?** Zero git operations, no build steps, just 30 seconds to voice!
443
-
444
- ### For Developers (Contributing Code)
445
-
446
- If you want to contribute to AgentVibes:
447
- ```bash
448
- git clone https://github.com/paulpreibisch/AgentVibes.git
449
- cd AgentVibes
450
- npm install
451
- npm link
452
- ```
453
-
454
- Requires: Node.js 16+, Git (no git-lfs), and `npm link` familiarity.
455
-
456
- [↑ Back to top](#-table-of-contents)
457
-
458
- ---
459
-
460
- ---
461
-
462
- ## 📱 Quick Setup: Android & Termux (Claude Code on Your Phone!)
463
-
464
- **Want to run Claude Code on your Android phone with professional voices?**
465
-
466
- Simply install Termux from F-Droid (NOT Google Play) and run:
467
- ```bash
468
- pkg update && pkg upgrade
469
- pkg install nodejs-lts
470
- npx agentvibes install
471
- ```
472
-
473
- Termux auto-detects and installs everything needed (proot-distro for compatibility, Piper TTS, audio playback).
474
-
475
- **[→ Full Android/Termux Setup Guide](#-android--termux)** - Detailed troubleshooting and verification steps
476
-
477
- [↑ Back to top](#-table-of-contents)
478
-
479
- ---
480
-
481
- ## 📋 System Requirements
482
-
483
- AgentVibes requires certain system dependencies for optimal audio processing and playback. Requirements vary by operating system and TTS provider.
484
-
485
- ### Core Requirements (All Platforms)
486
-
487
- | Tool | Required For | Why It's Needed |
488
- |------|-------------|-----------------|
489
- | **Node.js** ≥16.0 | All platforms | Runtime for AgentVibes installer and MCP server |
490
- | **Bash** ≥5.0 | macOS | Modern bash features (macOS ships with 3.2 from 2007) |
491
- | **Python** 3.10+ | Piper TTS, MCP server | Runs Piper voice engine and MCP server |
492
-
493
- ### Audio Processing Tools (Recommended)
494
-
495
- | Tool | Status | Purpose | Impact if Missing |
496
- |------|--------|---------|------------------|
497
- | **sox** | Recommended | Audio effects (reverb, EQ, pitch, compression) | No audio effects, still works |
498
- | **ffmpeg** | Recommended | Background music mixing, audio padding, RDP compression | No background music or RDP optimization |
499
-
500
- ### Platform-Specific Requirements
501
-
502
- #### 🐧 Linux / WSL
503
-
504
- ```bash
505
- # Ubuntu/Debian
506
- sudo apt-get update
507
- sudo apt-get install -y sox ffmpeg python3-pip pipx
508
-
509
- # Fedora/RHEL
510
- sudo dnf install -y sox ffmpeg python3-pip pipx
511
-
512
- # Arch Linux
513
- sudo pacman -S sox ffmpeg python-pip python-pipx
514
- ```
515
-
516
- **Audio Playback** (one of the following):
517
- - `paplay` (PulseAudio - usually pre-installed)
518
- - `aplay` (ALSA - fallback)
519
- - `mpg123` (fallback)
520
- - `mpv` (fallback)
521
-
522
- **Why these tools?**
523
- - **sox**: Applies audio effects defined in `.claude/config/audio-effects.cfg` (reverb, pitch shifting, EQ, compression)
524
- - **ffmpeg**: Mixes background music tracks, adds silence padding to prevent audio cutoff, compresses audio for RDP/SSH sessions
525
- - **paplay/aplay**: Plays generated TTS audio files
526
- - **pipx**: Isolated Python environment manager for Piper TTS installation
527
-
528
- #### 🍎 macOS
529
-
530
- ```bash
531
- # Install Homebrew if not already installed
532
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
533
-
534
- # Required: Modern bash
535
- brew install bash
536
-
537
- # Recommended: Audio processing tools
538
- brew install sox ffmpeg pipx
539
- ```
540
-
541
- **Audio Playback**:
542
- - `afplay` (built-in - always available)
543
- - `say` (built-in - for macOS TTS provider)
544
-
545
- **Why these tools?**
546
- - **bash 5.x**: macOS ships with bash 3.2 which lacks associative arrays and other modern features AgentVibes uses
547
- - **sox**: Same audio effects processing as Linux
548
- - **ffmpeg**: Same background music and padding as Linux
549
- - **afplay**: Built-in macOS audio player
550
- - **say**: Built-in macOS text-to-speech (alternative to Piper)
551
-
552
- #### 🪟 Windows
553
-
554
- **Option A: Native Windows (Recommended)**
555
-
556
- AgentVibes now supports native Windows with three TTS providers. No WSL required!
557
-
558
- ```powershell
559
- # Interactive Node.js installer (recommended)
560
- npx agentvibes install
561
-
562
- # Or use the standalone PowerShell installer
563
- .\setup-windows.ps1
564
- ```
565
-
566
- **Providers available natively:**
567
- - **Soprano** - Ultra-fast neural TTS (best quality, requires `pip install soprano-tts`)
568
- - **Windows Piper** - High quality offline neural voices (auto-downloaded)
569
- - **Windows SAPI** - Built-in Windows voices (zero setup)
570
-
571
- **Requirements:** Node.js 16+, PowerShell 5.1+, ffmpeg (optional, for background music & reverb)
572
-
573
- See [Windows Native Setup Guide](WINDOWS-SETUP.md) for full instructions.
574
-
575
- **Option B: WSL (Legacy)**
576
-
577
- For Claude Desktop or WSL-based workflows, follow the [Windows WSL Guide](mcp-server/WINDOWS_SETUP.md).
578
-
579
- ```powershell
580
- # Install WSL from PowerShell (Administrator)
581
- wsl --install -d Ubuntu
582
- ```
583
-
584
- Then follow Linux requirements above inside WSL.
585
-
586
- #### 🤖 Android / Termux
587
-
588
- **Running Claude Code on Your Android Using Termux**
589
-
590
- AgentVibes fully supports Android devices through the [Termux app](https://termux.dev/). This enables you to run Claude Code with professional TTS voices directly on your Android phone or tablet!
591
-
592
- **Quick Setup:**
593
-
594
- ```bash
595
- # 1. Install Termux from F-Droid (NOT Google Play - it's outdated)
596
- # Download: https://f-droid.org/en/packages/com.termux/
597
-
598
- # 2. Install Node.js in Termux
599
- pkg update && pkg upgrade
600
- pkg install nodejs-lts
601
-
602
- # 3. Install AgentVibes (auto-detects Android and runs Termux installer)
603
- npx agentvibes install
604
- ```
605
-
606
- **What Gets Installed?**
607
-
608
- The Termux installer automatically sets up:
609
- - **proot-distro** with Debian (for glibc compatibility)
610
- - **Piper TTS** via proot wrapper (Android uses bionic libc, not glibc)
611
- - **termux-media-player** for audio playback (`paplay` doesn't work on Android)
612
- - **Audio dependencies**: ffmpeg, sox, bc for processing
613
- - **termux-api** for Android-specific audio routing
614
-
615
- **Why Termux Instead of Standard Installation?**
616
-
617
- Android's architecture requires special handling:
618
- - ❌ Standard pip/pipx fails (missing wheels for bionic libc)
619
- - Linux binaries require glibc (Android uses bionic)
620
- - ❌ `/tmp` directory is not accessible on Android
621
- - Standard audio tools like `paplay` don't exist
622
-
623
- Termux installer solves all these issues with proot-distro and Android-native audio playback!
624
-
625
- **Requirements:**
626
- - [Termux app](https://f-droid.org/en/packages/com.termux/) (from F-Droid, NOT Google Play)
627
- - [Termux:API](https://f-droid.org/en/packages/com.termux.api/) (for audio playback)
628
- - Android 7.0+ (recommended: Android 10+)
629
- - ~500MB free storage (for Piper TTS + voice models)
630
-
631
- **Audio Playback:**
632
- - Uses `termux-media-player` instead of `paplay`
633
- - Audio automatically routes through Android's media system
634
- - Supports all Piper TTS voices (50+ languages)
635
-
636
- **Verifying Your Setup:**
637
-
638
- ```bash
639
- # Check Termux environment
640
- echo $PREFIX # Should show /data/data/com.termux/files/usr
641
-
642
- # Check Node.js
643
- node --version # Should be ≥16.0
644
-
645
- # Check if Piper is installed
646
- which piper # Should return /data/data/com.termux/files/usr/bin/piper
647
-
648
- # Test audio playback
649
- termux-media-player play /path/to/audio.wav
650
- ```
651
-
652
- **Troubleshooting:**
653
-
654
- | Issue | Solution |
655
- |-------|----------|
656
- | "piper: not found" | Run `npx agentvibes install` - auto-detects Termux |
657
- | No audio playback | Install Termux:API from F-Droid |
658
- | Permission denied | Run `termux-setup-storage` to grant storage access |
659
- | Slow installation | Use WiFi, not mobile data (~300MB download) |
660
-
661
- **Why F-Droid and Not Google Play?**
662
-
663
- Google Play's Termux version is outdated and unsupported. Always use the [F-Droid version](https://f-droid.org/en/packages/com.termux/) for the latest security updates and compatibility.
664
-
665
- ### TTS Provider Requirements
666
-
667
- #### Piper TTS (Free, Offline)
668
- - **Python** 3.10+
669
- - **pipx** (for isolated installation)
670
- - **Disk Space**: ~50MB per voice model
671
- - **Internet**: Only for initial voice downloads
672
-
673
- ```bash
674
- # Installed automatically by AgentVibes
675
- pipx install piper-tts
676
- ```
677
-
678
- #### macOS Say (Built-in, macOS Only)
679
- - No additional requirements
680
- - 100+ voices pre-installed on macOS
681
- - Use: `/agent-vibes:provider switch macos`
682
-
683
- ### Verifying Your Setup
684
-
685
- ```bash
686
- # Check all dependencies
687
- node --version # Should be ≥16.0
688
- python3 --version # Should be ≥3.10
689
- bash --version # Should be ≥5.0 (macOS users!)
690
- sox --version # Optional but recommended
691
- ffmpeg -version # Optional but recommended
692
- pipx --version # Required for Piper TTS
693
-
694
- # Check audio playback (Linux/WSL)
695
- paplay --version || aplay --version
696
-
697
- # Check audio playback (macOS)
698
- which afplay # Should return /usr/bin/afplay
699
- ```
700
-
701
- ### What Happens Without Optional Dependencies?
702
-
703
- | Missing Tool | Impact | Workaround |
704
- |-------------|--------|------------|
705
- | sox | No audio effects (reverb, EQ, pitch) | TTS still works, just no effects |
706
- | ffmpeg | No background music, no audio padding | TTS still works, audio may cut off slightly early |
707
- | paplay/aplay | No audio playback on Linux | Install at least one audio player |
708
-
709
- **All TTS generation still works** - optional tools only enhance the experience!
710
-
711
- [↑ Back to top](#-table-of-contents)
712
-
713
- ---
714
-
715
- ## 🎭 Choose Your Voice Provider
716
-
717
- **Piper TTS** (free, works offline on Linux/WSL) or **macOS Say** (free, built-in on Mac) - pick one and switch anytime.
718
-
719
- | Provider | Platform | Cost | Quality | Setup |
720
- |----------|----------|------|---------|-------|
721
- | **macOS Say** | macOS only | Free (built-in) | ⭐⭐⭐⭐ | Zero config |
722
- | **Piper** | Linux/WSL/Windows | Free | ⭐⭐⭐⭐ | Auto-downloads |
723
- | **Soprano** | Linux/WSL/Windows | Free | ⭐⭐⭐⭐⭐ | `pip install soprano-tts` |
724
- | **Windows SAPI** | Windows | Free (built-in) | ⭐⭐⭐ | Zero config |
725
-
726
- On macOS, the native `say` provider is automatically detected and recommended!
727
-
728
- **[→ Provider Comparison Guide](docs/providers.md)**
729
-
730
- [↑ Back to top](#-table-of-contents)
731
-
732
- ---
733
-
734
- ## 🎤 Commands Reference
735
-
736
- AgentVibes provides **50+ slash commands** and **natural language MCP equivalents**.
737
-
738
- **Quick Examples:**
739
- ```bash
740
- # Voice control
741
- /agent-vibes:switch Aria # Or: "Switch to Aria voice"
742
- /agent-vibes:list # Or: "List all voices"
743
-
744
- # Personality & sentiment
745
- /agent-vibes:personality pirate # Or: "Set personality to pirate"
746
- /agent-vibes:sentiment sarcastic # Or: "Apply sarcastic sentiment"
747
-
748
- # Language & learning
749
- /agent-vibes:set-language spanish # Or: "Speak in Spanish"
750
- /agent-vibes:learn # Or: "Enable learning mode"
751
- ```
752
-
753
- **[→ View Complete Command Reference](docs/commands.md)** - All voice, system, personality, sentiment, language, and BMAD commands with MCP equivalents
754
-
755
- ### Intro Text Commands
756
-
757
- ```bash
758
- # Configure intro text
759
- /agent-vibes:config intro-text
760
- npx agentvibes config intro-text
761
-
762
- # View current intro text
763
- cat ~/.claude/config/intro-text.txt
764
- ```
765
-
766
- **MCP Equivalent:**
767
- ```
768
- "Set my intro text to 'FireBot: '"
769
- "What's my current intro text?"
770
- "Clear my intro text"
771
- ```
772
-
773
- ### Custom Music Commands
774
-
775
- ```bash
776
- # Configure background music
777
- /agent-vibes:config music
778
- npx agentvibes config music
779
-
780
- # Menu options:
781
- # 1. Change music - Upload new audio file
782
- # 2. Remove music - Clear custom music
783
- # 3. Reset to default - Restore built-in tracks
784
- # 4. Enable/Disable - Toggle background music
785
- # 5. Preview current - Sample current music
786
- ```
787
-
788
- **MCP Equivalent:**
789
- ```
790
- "Configure my background music"
791
- "Add custom background music"
792
- "Remove custom music"
793
- "Preview my background music"
794
- ```
795
-
796
- ### Friendly Voice Name Commands
797
-
798
- ```bash
799
- # Switch using friendly name
800
- /agent-vibes:switch Ryan
801
- /agent-vibes:switch Sarah
802
-
803
- # List all voices with friendly names
804
- /agent-vibes:list
805
-
806
- # Get current voice (shows friendly name if available)
807
- /agent-vibes:whoami
808
- ```
809
-
810
- **MCP Equivalent:**
811
- ```
812
- "Switch to Ryan voice"
813
- "Use the Sarah voice"
814
- "List all available voices"
815
- ```
816
-
817
- [↑ Back to top](#-table-of-contents)
818
-
819
- ---
820
-
821
- ## 🎙️ Verbosity Control
822
-
823
- **Control how much Claude speaks while working!** 🔊
824
-
825
- Choose from three verbosity levels:
826
-
827
- ### LOW (Minimal) 🔇
828
- - Acknowledgments only (start of task)
829
- - Completions only (end of task)
830
- - Perfect for quiet work sessions
831
-
832
- ### MEDIUM (Balanced) 🤔
833
- - Acknowledgments + completions
834
- - Major decisions ("I'll use grep to search")
835
- - Key findings ("Found 12 instances")
836
- - Perfect for understanding decisions without full narration
837
-
838
- ### HIGH (Maximum Transparency) 💭
839
- - All reasoning ("Let me search for all instances")
840
- - All decisions ("I'll use grep for this")
841
- - All findings ("Found it at line 1323")
842
- - Perfect for learning mode, debugging complex tasks
843
-
844
- **Quick Commands:**
845
- ```bash
846
- /agent-vibes:verbosity # Show current level
847
- /agent-vibes:verbosity high # Maximum transparency
848
- /agent-vibes:verbosity medium # Balanced
849
- /agent-vibes:verbosity low # Minimal (default)
850
- ```
851
-
852
- **MCP Equivalent:**
853
- ```
854
- "Set verbosity to high"
855
- "What's my current verbosity level?"
856
- ```
857
-
858
- 💡 **How it works:** Claude uses emoji markers (💭 🤔 ✓) in its text, and AgentVibes automatically detects and speaks them based on your verbosity level. No manual TTS calls needed!
859
-
860
- ⚠️ **Note:** Changes take effect on next Claude Code session restart.
861
-
862
- [↑ Back to top](#-table-of-contents)
863
-
864
- ---
865
-
866
- ## 📚 Language Learning Mode
867
-
868
- **🎯 Learn Spanish (or 30+ languages) while you program!** 🌍
869
-
870
- Every task acknowledgment plays **twice** - first in English, then in your target language. Context-based learning while you code!
871
-
872
- **[→ View Complete Learning Mode Guide](docs/language-learning-mode.md)** - Full tutorial, quick start, commands, speech rate control, supported languages, and pro tips
873
-
874
- [↑ Back to top](#-table-of-contents)
875
-
876
- ---
877
-
878
- ## 🎭 Personalities vs Sentiments
879
-
880
- **Two ways to add personality:**
881
-
882
- - **🎪 Personalities** - Changes BOTH voice AND speaking style (e.g., `pirate` personality = Pirate Marshal voice + pirate speak)
883
- - **💭 Sentiments** - Keeps your current voice, only changes speaking style (e.g., Aria voice + sarcastic sentiment)
884
-
885
- **[→ Complete Personalities Guide](docs/personalities.md)** - All 19 personalities, create custom ones
886
-
887
- [↑ Back to top](#-table-of-contents)
888
-
889
- ---
890
-
891
- ## 🗣️ Voice Library
892
-
893
- **NEW in v4.0.0:** Browse, sample, and install from 914+ voices directly in the interactive TUI console! Launch with `npx agentvibes`.
894
-
895
- ### Friendly Voice Names
896
-
897
- All voices now have memorable names! Instead of technical IDs like `en_US-libritts_r-medium-speaker-123`, just use friendly names like **Ryan**, **Joe**, or **Sarah**.
898
-
899
- **Voice Metadata Includes:**
900
- - Display name and technical ID
901
- - Gender, accent, and region
902
- - Personality traits (professional, warm, friendly, etc.)
903
- - Recommended use cases
904
- - Quality rating and sample rate
905
-
906
- ### Voice Categories
907
-
908
- **Curated Voices** (10 personalities):
909
- These hand-picked voices cover common use cases with clear characteristics.
910
-
911
- **Speaker Variations** (904 voices):
912
- High-quality Piper TTS voices from the libritts-high model. Each speaker has unique vocal characteristics, accents, and tones.
913
-
914
- ### Popular Voices
915
-
916
- AgentVibes includes professional AI voices from Piper TTS and macOS Say with multilingual support.
917
-
918
- 🎧 **Try in Claude Code:** `/agent-vibes:preview` to hear all voices
919
- 🌍 **Multilingual:** Use Antoni, Rachel, Domi, or Bella for automatic language detection
920
-
921
- **[→ View Complete Voice Library](docs/voice-library.md)** - All voices with clickable samples, descriptions, and best use cases
922
-
923
- [↑ Back to top](#-table-of-contents)
924
-
925
- ---
926
-
927
- ## 🔌 BMAD Plugin
928
-
929
- **Automatically switch voices when using BMAD agents!**
930
-
931
- The BMAD plugin detects when you activate a BMAD agent (e.g., `/BMad:agents:pm`) and automatically uses the assigned voice for that role.
932
-
933
- **Version Support**: AgentVibes supports both BMAD v4 and v6-alpha installations. Version detection is automatic - just install BMAD and AgentVibes will detect and configure itself correctly!
934
-
935
- ### 🔊 TTS Injection: How It Works
936
-
937
- BMAD uses a **loosely-coupled injection system** for voice integration. BMAD source files contain placeholder markers that AgentVibes replaces with speaking instructions during installation:
938
-
939
- **Before Installation (BMAD Source):**
940
- ```xml
941
- <rules>
942
- <r>ALWAYS communicate in {communication_language}...</r>
943
- <!-- TTS_INJECTION:agent-tts -->
944
- <r>Stay in character until exit selected</r>
945
- </rules>
946
- ```
947
-
948
- **After Installation (with AgentVibes enabled):**
949
- ```xml
950
- <rules>
951
- <r>ALWAYS communicate in {communication_language}...</r>
952
- - When responding to user messages, speak your responses using TTS:
953
- Call: `.claude/hooks/bmad-speak.sh '{agent-id}' '{response-text}'`
954
- Where {agent-id} is your agent type (pm, architect, dev, etc.)
955
-
956
- - Auto Voice Switching: AgentVibes automatically switches to the voice
957
- assigned for your agent role when activated
958
- <r>Stay in character until exit selected</r>
959
- </rules>
960
- ```
961
-
962
- **After Installation (with TTS disabled):**
963
- ```xml
964
- <rules>
965
- <r>ALWAYS communicate in {communication_language}...</r>
966
- <r>Stay in character until exit selected</r>
967
- </rules>
968
- ```
969
-
970
- This design means **any TTS provider** can integrate with BMAD by replacing these markers with their own instructions!
971
-
972
- **[→ View Complete BMAD Documentation](docs/bmad-plugin.md)** - All agent mappings, language support, TTS injection details, plugin management, and customization
973
-
974
- [↑ Back to top](#-table-of-contents)
975
-
976
- ---
977
-
978
- ## 🤖 OpenClaw Integration
979
-
980
- **Use AgentVibes TTS with OpenClaw - the revolutionary AI assistant you can access via any instant messenger!**
981
-
982
- **What is OpenClaw?** [OpenClaw](https://openclaw.ai/) is a revolutionary AI assistant that brings Claude AI to your favorite messaging platforms - WhatsApp, Telegram, Discord, and more. No apps to install, no websites to visit - just message your AI assistant like you would a friend.
983
-
984
- 🌐 **Website**: https://openclaw.ai/
985
-
986
- AgentVibes seamlessly integrates with OpenClaw, providing professional text-to-speech for AI assistants running on messaging platforms and remote servers.
987
-
988
- ### 🚨 CRITICAL: Security Before Running OpenClaw on Any Remote Server
989
-
990
- ⚠️ **SECURITY IS NOT OPTIONAL** - Running OpenClaw on a remote server exposes your infrastructure to attack vectors including SSH compromise, credential theft, and lateral movement.
991
-
992
- **👉 READ THIS FIRST:** [Security Hardening Guide](docs/security-hardening-guide.md) - **Required reading** covering:
993
- - SSH hardening (key-only auth, port 2222, fail2ban)
994
- - ✅ Firewall configuration (UFW/iptables)
995
- - Intrusion detection (AIDE, Wazuh)
996
- - ✅ VPN tunneling (Tailscale alternative to direct SSH)
997
-
998
- **Do not expose your OpenClaw server to the internet without reading this guide.**
999
-
1000
- ### 🎯 Key Benefits
1001
-
1002
- - **Free & Offline**: No API costs, works without internet
1003
- - **Remote SSH Audio**: Audio tunnels from server to local machine via PulseAudio
1004
- - **50+ Voices**: Professional AI voices in 30+ languages
1005
- - **Zero Config**: Automatic when AgentVibes is installed
1006
-
1007
- ### 🚀 Installation
1008
-
1009
- AgentVibes includes a ready-to-use OpenClaw skill that enables TTS on messaging platforms. The setup involves two components:
1010
-
1011
- #### Component 1: OpenClaw Server (Remote)
1012
-
1013
- Install AgentVibes on your OpenClaw server:
1014
-
1015
- ```bash
1016
- # On your remote server where OpenClaw is running
1017
- npx agentvibes install
1018
- ```
1019
-
1020
- The OpenClaw skill is **automatically included** in the AgentVibes npm package at `.clawdbot/skill/SKILL.md`.
1021
-
1022
- **How to activate the skill in OpenClaw:**
1023
-
1024
- 1. **Locate the skill** - After installing AgentVibes, the skill is at:
1025
- ```
1026
- node_modules/agentvibes/.clawdbot/skill/SKILL.md
1027
- ```
1028
-
1029
- 2. **Link to OpenClaw skills directory** (if OpenClaw uses skills):
1030
- ```bash
1031
- # Example - adjust path based on your OpenClaw installation
1032
- ln -s $(npm root -g)/agentvibes/.clawdbot/skill/SKILL.md ~/.openclaw/skills/agentvibes.md
1033
- ```
1034
-
1035
- 3. **OpenClaw auto-detection** - Many OpenClaw setups automatically detect AgentVibes when it's installed. Check your OpenClaw logs for:
1036
- ```
1037
- AgentVibes skill detected and loaded
1038
- ```
1039
-
1040
- ---
1041
-
1042
- #### 🎙️ AgentVibes Voice Management Skill for OpenClaw
1043
-
1044
- Manage your text-to-speech voices across multiple providers with the AgentVibes Voice Management Skill:
1045
-
1046
- **Voice Management Features:**
1047
- - 🎤 **50+ Professional Voices** - Across Piper TTS, Piper (free offline), and macOS Say providers
1048
- - 🔀 **Multi-Provider Support** - Switch between Piper TTS (premium), Piper (free), and macOS Say
1049
- - 👂 **Voice Preview** - Listen to voices before selecting them
1050
- - 🎚️ **Voice Customization** - Add custom voices, set pretext, control speech rate
1051
- - 📋 **Voice Management** - List, switch, replay, and manage your voice library
1052
- - 🔇 **Mute Control** - Mute/unmute TTS output with persistent settings
1053
- - 🌍 **Multilingual Support** - Voices in 30+ languages across all providers
1054
-
1055
- **Installation Confirmation:**
1056
- The skill is **automatically included** in the AgentVibes npm package at:
1057
- ```
1058
- node_modules/agentvibes/.clawdbot/skill/SKILL.md
1059
- ```
1060
-
1061
- No extra setup needed - when you run `npx agentvibes install` on your OpenClaw server, the skill is ready to use!
1062
-
1063
- **Full Skill Documentation:**
1064
- **[→ View Complete AgentVibes Skill Guide](.clawdbot/skill/SKILL.md)** - 430+ lines covering:
1065
- - Quick start with 50+ voice options
1066
- - Background music & effects management
1067
- - Personality system (19+ styles)
1068
- - Voice effects (reverb, reverb, EQ)
1069
- - Speed & verbosity control
1070
- - Remote SSH audio setup
1071
- - Troubleshooting & complete reference
1072
-
1073
- **Popular Voice Examples:**
1074
- ```bash
1075
- # Female voices
1076
- npx agentvibes speak "Hello" --voice en_US-amy-medium
1077
- npx agentvibes speak "Bonjour" --voice fr_FR-siwis-medium
1078
-
1079
- # Male voices
1080
- npx agentvibes speak "Hello" --voice en_US-lessac-medium
1081
- npx agentvibes speak "Good day" --voice en_GB-alan-medium
1082
-
1083
- # Add personality!
1084
- bash ~/.claude/hooks/personality-manager.sh set sarcastic
1085
- bash ~/.claude/hooks/play-tts.sh "Oh wonderful, another request"
1086
- ```
1087
-
1088
- ---
1089
-
1090
- #### Component 2: AgentVibes Receiver (Local/Phone) ⚠️ REQUIRED
1091
-
1092
- **CRITICAL: You MUST install AgentVibes on your phone (or local machine) to receive and play audio!**
1093
-
1094
- Without this, audio cannot be heard - the server generates TTS but needs a receiver to play it.
1095
-
1096
- **Install on Android Phone (Termux):**
1097
-
1098
- 1. **Install Termux from F-Droid** (NOT Google Play):
1099
- - Download: https://f-droid.org/en/packages/com.termux/
1100
-
1101
- 2. **Install Node.js in Termux:**
1102
- ```bash
1103
- pkg update && pkg upgrade
1104
- pkg install nodejs-lts
1105
- ```
1106
-
1107
- 3. **Install AgentVibes in Termux:**
1108
- ```bash
1109
- npx agentvibes install
1110
- ```
1111
-
1112
- 4. **Install Termux:API** (for audio playback):
1113
- - Download: https://f-droid.org/en/packages/com.termux.api/
1114
- - Then in Termux: `pkg install termux-api`
1115
-
1116
- **Install on Local Mac/Linux:**
1117
-
1118
- ```bash
1119
- npx agentvibes install
1120
- ```
1121
-
1122
- **Why is this needed?**
1123
- - The **server generates TTS** but has no speakers (headless)
1124
- - AgentVibes on your **phone acts as the audio receiver** via SSH tunnel
1125
- - Audio tunnels from server SSH phone → speakers 🔊
1126
-
1127
- Without AgentVibes installed on the receiving device, you'll generate audio but hear nothing!
1128
-
1129
- #### How It Works: Server → SSH Tunnel → Local Playback
1130
-
1131
- ```
1132
- ┌─────────────────────────────────────────────────────────┐
1133
- │ 1. User messages OpenClaw via Telegram/WhatsApp │
1134
- │ "Tell me about the weather" │
1135
- └─────────────────────────────────────────────────────────┘
1136
-
1137
- ┌─────────────────────────────────────────────────────────┐
1138
- │ 2. OpenClaw (Server) processes request with Claude │
1139
- │ AgentVibes skill generates TTS audio │
1140
- └─────────────────────────────────────────────────────────┘
1141
-
1142
- ┌─────────────────────────────────────────────────────────┐
1143
- │ 3. Audio tunnels through SSH PulseAudio (port 14713)│
1144
- │ Server: PULSE_SERVER=tcp:localhost:14713 │
1145
- └─────────────────────────────────────────────────────────┘
1146
-
1147
- ┌─────────────────────────────────────────────────────────┐
1148
- │ 4. Local AgentVibes receives and plays audio │
1149
- │ Phone speakers, laptop speakers, etc.
1150
- │ 🔊 "The weather is sunny and 72 degrees" │
1151
- └─────────────────────────────────────────────────────────┘
1152
- ```
1153
-
1154
- **Architecture:**
1155
- - **Server (OpenClaw)**: Generates TTS, sends via PulseAudio
1156
- - **SSH Tunnel**: RemoteForward port 14713 (encrypted transport)
1157
- - **Local (Termux/Desktop)**: AgentVibes receives audio, plays on speakers
1158
-
1159
- This creates a **Siri-like experience** - message from anywhere, hear responses on your phone! 📱🎤
1160
-
1161
- ### 📝 Usage
1162
-
1163
- #### Basic TTS Commands
1164
-
1165
- ```bash
1166
- # Basic TTS
1167
- npx agentvibes speak "Hello from OpenClaw"
1168
-
1169
- # With different voices
1170
- npx agentvibes speak "Hello" --voice en_US-amy-medium
1171
- npx agentvibes speak "Bonjour" --voice fr_FR-siwis-medium
1172
-
1173
- # List available voices
1174
- npx agentvibes voices
1175
- ```
1176
-
1177
- #### Advanced: Direct Hook Usage with Voice Override
1178
-
1179
- For programmatic control, use the TTS hook directly:
1180
-
1181
- ```bash
1182
- # Basic: Use default voice
1183
- bash ~/.claude/hooks/play-tts.sh "Hello from OpenClaw"
1184
-
1185
- # Advanced: Override voice per message
1186
- bash ~/.claude/hooks/play-tts.sh "Welcome message" "en_US-amy-medium"
1187
- bash ~/.claude/hooks/play-tts.sh "Bonjour!" "fr_FR-siwis-medium"
1188
- bash ~/.claude/hooks/play-tts.sh "British greeting" "en_GB-alan-medium"
1189
- ```
1190
-
1191
- **Parameters:**
1192
- - `$1` - **TEXT** (required): Message to speak
1193
- - `$2` - **VOICE** (optional): Voice name to override default
1194
-
1195
- #### Audio Effects Configuration for OpenClaw
1196
-
1197
- **File**: `.claude/config/audio-effects.cfg`
1198
-
1199
- Customize audio effects, background music, and voice processing per agent or use default settings:
1200
-
1201
- **Format:**
1202
- ```
1203
- AGENT_NAME|SOX_EFFECTS|BACKGROUND_FILE|BACKGROUND_VOLUME
1204
- ```
1205
-
1206
- **Example Configuration:**
1207
-
1208
- ```bash
1209
- # Default - subtle background music
1210
- default||agentvibes_soft_flamenco_loop.mp3|0.30
1211
-
1212
- # Custom agent with reverb + background
1213
- MyAgent|reverb 40 50 90 gain -2|agentvibes_soft_flamenco_loop.mp3|0.20
1214
-
1215
- # Agent with pitch shift and EQ
1216
- Assistant|pitch -100 equalizer 3000 1q +2|agentvibes_dark_chill_step_loop.mp3|0.15
1217
- ```
1218
-
1219
- **Available SOX Effects:**
1220
-
1221
- | Effect | Syntax | Example | Description |
1222
- |--------|--------|---------|-------------|
1223
- | **Reverb** | `reverb <reverberance> <HF-damping> <room-scale>` | `reverb 40 50 90` | Adds room ambiance (light: 30 40 70, heavy: 50 60 100) |
1224
- | **Pitch** | `pitch <cents>` | `pitch -100` | Shift pitch (100 cents = 1 semitone, negative = lower) |
1225
- | **Equalizer** | `equalizer <freq> <width>q <gain-dB>` | `equalizer 3000 1q +2` | Boost/cut frequencies (bass: 200Hz, treble: 4000Hz) |
1226
- | **Gain** | `gain <dB>` | `gain -2` | Adjust volume (negative = quieter, positive = louder) |
1227
- | **Compand** | `compand <attack,decay> <threshold:in,out>` | `compand 0.3,1 6:-70,-60,-20` | Dynamic range compression (makes quiet parts louder) |
1228
-
1229
- **Background Music Tracks:**
1230
-
1231
- Built-in tracks available in `.claude/audio/tracks/`:
1232
- - `agentvibes_soft_flamenco_loop.mp3` - Warm, rhythmic flamenco
1233
- - `agentvibes_dark_chill_step_loop.mp3` - Modern chill electronic
1234
- - (50+ additional tracks available)
1235
-
1236
- **Background Volume:**
1237
- - `0.10` - Very subtle (10%)
1238
- - `0.20` - Subtle (20%)
1239
- - `0.30` - Moderate (30%, recommended default)
1240
- - `0.40` - Noticeable (40%, party mode)
1241
-
1242
- **Example: OpenClaw Custom Configuration**
1243
-
1244
- Create `.claude/config/audio-effects.cfg` on your OpenClaw server:
1245
-
1246
- ```bash
1247
- # OpenClaw assistant - warm voice with subtle reverb
1248
- OpenClaw|reverb 30 40 70 gain -1|agentvibes_soft_flamenco_loop.mp3|0.25
1249
-
1250
- # Help desk agent - clear, bright voice
1251
- HelpDesk|equalizer 4000 1q +3 compand 0.2,0.5 6:-70,-60,-20|agentvibes_dark_chill_step_loop.mp3|0.15
1252
-
1253
- # Default fallback
1254
- default||agentvibes_soft_flamenco_loop.mp3|0.30
1255
- ```
1256
-
1257
- **How AgentVibes Applies Effects:**
1258
-
1259
- 1. **Generate TTS** - Create base audio with Piper TTS
1260
- 2. **Apply SOX effects** - Process audio (reverb, EQ, pitch, etc.)
1261
- 3. **Mix background** - Blend background music at specified volume
1262
- 4. **Tunnel via SSH** - Send processed audio to local receiver
1263
- 5. **Play on device** - Output to phone/laptop speakers
1264
-
1265
- This allows **per-message customization** or **consistent agent branding** with unique audio signatures!
1266
-
1267
- ### 🔊 Remote SSH Audio
1268
-
1269
- Perfect for running OpenClaw on a remote server with audio on your local machine:
1270
-
1271
- **Quick Setup:**
1272
-
1273
- 1. **Remote server** - Configure PulseAudio:
1274
- ```bash
1275
- echo 'export PULSE_SERVER=tcp:localhost:14713' >> ~/.bashrc
1276
- source ~/.bashrc
1277
- ```
1278
-
1279
- 2. **Local machine** - Add SSH tunnel (`~/.ssh/config`):
1280
- ```
1281
- Host your-server
1282
- RemoteForward 14713 localhost:14713
1283
- ```
1284
-
1285
- 3. **Connect and test**:
1286
- ```bash
1287
- ssh your-server
1288
- agentvibes speak "Testing remote audio from OpenClaw"
1289
- ```
1290
-
1291
- Audio plays on your local speakers! 🔊
1292
-
1293
- ### 📚 Documentation
1294
-
1295
- - **OpenClaw Skill**: [.clawdbot/README.md](.clawdbot/README.md)
1296
- - **OpenClaw Website**: https://openclaw.ai/
1297
- - **Remote Audio Setup**: [docs/remote-audio-setup.md](docs/remote-audio-setup.md)
1298
- - **Security Hardening**: [docs/security-hardening-guide.md](docs/security-hardening-guide.md) ⚠️
1299
-
1300
- [↑ Back to top](#-table-of-contents)
1301
-
1302
- ---
1303
-
1304
- ## 🎙️ AgentVibes Receiver: Remote Audio Streaming from Voiceless Servers
1305
-
1306
- **Receive and play TTS audio from servers that have no audio output!**
1307
-
1308
- AgentVibes Receiver is a lightweight audio client that runs on your phone, tablet, or personal computer, which receives TTS audio from remote voiceless servers, where your OpenClaw Personal Assistant or your Claude Code project is installed.
1309
-
1310
- ### 🎯 What AgentVibes Receiver Solves
1311
-
1312
- You have OpenClaw running on a Mac mini or remote server with **no audio output**:
1313
- - 🖥️ Mac mini (silent)
1314
- - 🖥️ Ubuntu server (headless)
1315
- - ☁️ AWS/DigitalOcean instance
1316
- - 📦 Docker container
1317
- - 🪟 WSL (Windows Subsystem for Linux)
1318
-
1319
- Users message you via WhatsApp, Telegram, Discord but only get text responses:
1320
- - ❌ No voice = Less engaging experience
1321
- - ❌ No personality = Feels robotic
1322
- - No audio cues = Miss important context
1323
-
1324
- **AgentVibes Receiver transforms this:**
1325
- - ✅ OpenClaw speaks with voice (Siri-like experience)
1326
- - ✅ Audio streams to your device automatically
1327
- - ✅ You hear responses on your speakers
1328
- - ✅ Users get a conversational AI experience
1329
-
1330
- ### 🔧 How It Works
1331
-
1332
- **One-time setup:**
1333
- 1. Install AgentVibes on your voiceless server with OpenClaw
1334
- 2. Install AgentVibes Receiver on your personal device (phone/tablet/laptop)
1335
- 3. Connect via SSH tunnel (or Tailscale VPN)
1336
- 4. Done - automatic from then on
1337
-
1338
- **Flow diagram:**
1339
- ```
1340
- ┌──────────────────────────────────────────┐
1341
- │ Your Mac mini / Server │
1342
- (OpenClaw + AgentVibes) │
1343
- │ • Generates TTS audio │
1344
- Sends via SSH tunnel │
1345
- └──────────────────────────────────────────┘
1346
- Encrypted SSH tunnel
1347
- ┌──────────────────────────────────────────┐
1348
- Your Phone / Laptop │
1349
- (AgentVibes Receiver)
1350
- Receives audio stream (or text stream)
1351
- │ • Auto-plays on device speakers │
1352
- └──────────────────────────────────────────┘
1353
- ```
1354
-
1355
- **Real-world example:**
1356
- ```
1357
- 📱 WhatsApp: "Tell me about quantum computing"
1358
-
1359
- 🖥️ Mac mini: OpenClaw processes + generates TTS
1360
- SSH tunnel (audio or text stream)
1361
- 📱 Your phone (Agent Vibes Receiver): Plays audio 🔊
1362
-
1363
- You hear on your device speakers: "Quantum computing uses quantum bits..."
1364
-
1365
- 💬 Conversation feels alive!
1366
- ```
1367
-
1368
- ### ✨ Key Features
1369
-
1370
- | Feature | Benefit |
1371
- |---------|---------|
1372
- | **One-Time Pairing** | SSH key setup, automatic reconnect |
1373
- | **Real-Time Streaming** | Low-latency audio playback |
1374
- | **SSH Encryption** | Secure audio tunnel |
1375
- | **Tailscale Support** | Easy VPN for remote servers |
1376
- | **Voice Selection** | Configure server-side voice |
1377
- | **Audio Effects** | Reverb, echo, pitch on server |
1378
- | **Cache Tracking** | Monitor audio generation |
1379
- | **Multiple Servers** | Connect to different OpenClaw instances |
1380
-
1381
- ### 🚀 Perfect For
1382
-
1383
- - 🖥️ **Mac mini + OpenClaw** - Home server with professional voices
1384
- - ☁️ **Remote Servers** - OpenClaw on AWS/GCP/DigitalOcean
1385
- - 📱 **WhatsApp/Telegram** - Users message, hear responses
1386
- - 🎓 **Discord Bots** - Bot speaks with voices
1387
- - 🏗️ **Docker/Containers** - Containerized OpenClaw with audio
1388
- - 🔧 **WSL Development** - Windows developers using voiceless WSL
1389
-
1390
- ### 📝 Setup
1391
-
1392
- ```bash
1393
- # On your server (Mac mini, Ubuntu, AWS, etc.)
1394
- npx agentvibes install
1395
- # Selects OpenClaw option
1396
- # AgentVibes installs with SSH-Remote provider
1397
-
1398
- # On your personal device (phone, laptop, tablet)
1399
- npx agentvibes receiver setup
1400
- # Pairing prompt with server SSH key
1401
- # Done!
1402
- ```
1403
-
1404
- ### 📚 Documentation
1405
-
1406
- **[→ View AgentVibes Receiver Setup Guide](docs/agentvibes-receiver.md)** - Pairing, SSH configuration, Tailscale setup, troubleshooting
1407
-
1408
- **[→ View OpenClaw Integration Guide](docs/openclaw-integration.md)** - Server setup, voice configuration, audio effects, and best practices
1409
-
1410
- [↑ Back to top](#-table-of-contents)
1411
-
1412
- ---
1413
-
1414
- ## 📦 Installation Structure
1415
-
1416
- **What gets installed:** Commands, hooks, personalities, and plugins in `.claude/` directory.
1417
-
1418
- **[→ View Complete Installation Structure](docs/installation-structure.md)** - Full directory tree, file descriptions, and settings storage
1419
-
1420
- [↑ Back to top](#-table-of-contents)
1421
-
1422
- ---
1423
-
1424
- ## 💡 Common Workflows
1425
-
1426
- ```bash
1427
- # Switch voices
1428
- /agent-vibes:list # See all voices
1429
- /agent-vibes:switch Aria # Change voice
1430
-
1431
- # Try personalities
1432
- /agent-vibes:personality pirate # Pirate voice + style
1433
- /agent-vibes:personality list # See all 19 personalities
1434
-
1435
- # Speak in other languages
1436
- /agent-vibes:set-language spanish # Speak in Spanish
1437
- /agent-vibes:set-language list # See 30+ languages
1438
-
1439
- # Replay audio
1440
- /agent-vibes:replay # Replay last message
1441
- ```
1442
-
1443
- **💡 Tip:** Using MCP? Just say "Switch to Aria voice" or "Speak in Spanish" instead of typing commands.
1444
-
1445
- [↑ Back to top](#-table-of-contents)
1446
-
1447
- ---
1448
-
1449
- ## 🔧 Advanced Features
1450
-
1451
- AgentVibes supports **custom personalities** and **custom voices**.
1452
-
1453
- **Quick Examples:**
1454
- ```bash
1455
- # Create custom personality
1456
- /agent-vibes:personality add mycustom
1457
-
1458
- # Add custom Piper voice
1459
- /agent-vibes:add "My Voice" abc123xyz789
1460
-
1461
- # Use in custom output styles
1462
- [Bash: .claude/hooks/play-tts.sh "Starting" "Aria"]
1463
- ```
1464
-
1465
- **[→ View Advanced Features Guide](docs/advanced-features.md)** - Custom personalities, custom voices, and more
1466
-
1467
- [↑ Back to top](#-table-of-contents)
1468
-
1469
- ---
1470
-
1471
- ## 🔊 Remote Audio Setup
1472
-
1473
- **Running AgentVibes on a remote server?** No problem!
1474
-
1475
- ✅ **Auto-detects SSH sessions** - Works with VS Code Remote SSH, regular SSH, cloud dev environments
1476
- ✅ **Zero configuration** - Audio optimizes automatically
1477
- ✅ **No static/clicking** - Clean playback through SSH tunnels
1478
-
1479
- **[→ Remote Audio Setup Guide](docs/remote-audio-setup.md)** - Full PulseAudio configuration details
1480
-
1481
- [↑ Back to top](#-table-of-contents)
1482
-
1483
- ---
1484
-
1485
- ## 🛠️ Technical Documentation
1486
-
1487
- ### Audio Architecture
1488
-
1489
- AgentVibes uses a cross-platform audio module (`src/console/audio-env.js`) that handles player detection and environment configuration for all supported platforms.
1490
-
1491
- #### Platform Audio Support Matrix
1492
-
1493
- | Platform | PulseAudio Config | MP3 Players (preference order) | WAV Players (preference order) |
1494
- |----------|-------------------|-------------------------------|-------------------------------|
1495
- | **Native Linux** | System default (not overridden) | ffplay → play (sox) → mpg123 → cvlc → mpv | aplay → paplay → play → ffplay |
1496
- | **WSL2** | Auto-detects `/mnt/wslg/PulseServer` | Same as Linux | Same as Linux |
1497
- | **macOS** | Not applicable | ffplay → play → mpg123 → cvlc → mpv → afplay | aplay → paplay → play → ffplay → afplay |
1498
- | **Windows** | Not applicable | ffplay mpv (if installed) | ffplay → mpv → PowerShell SoundPlayer (built-in) |
1499
-
1500
- #### Key Design Decisions
1501
-
1502
- - **Direct spawn, not shell chains**: Audio players are spawned directly via Node's `spawn()` instead of `sh -c 'cmd1 || cmd2'` chains. VLC/cvlc crashes when stderr is redirected inside shell wrappers.
1503
- - **Player detection at startup**: The available player is detected once using `which` and cached. No runtime fallback chains.
1504
- - **PULSE_SERVER safety**: The WSL2 PulseServer path (`/mnt/wslg/PulseServer`) is only set when the socket file actually exists. Hardcoding it on native Linux silently breaks audio output.
1505
- - **Windows WAV fallback**: PowerShell's `System.Media.SoundPlayer` is used as a built-in fallback when no cross-platform player is installed.
1506
-
1507
- #### Multi-Speaker Voice Models
1508
-
1509
- Piper supports multi-speaker ONNX models (e.g., `16Speakers.onnx`) that contain multiple voices in a single file. AgentVibes expands these automatically:
1510
-
1511
- - The `.onnx.json` metadata file contains `num_speakers` and `speaker_id_map`
1512
- - `scanInstalledVoices()` expands multi-speaker models into individual selectable entries (e.g., `16Speakers::Cori_Samuel`)
1513
- - When selected, the system writes `tts-piper-model.txt` and `tts-piper-speaker-id.txt` to `.claude/`
1514
- - `play-tts-piper.sh` reads these files and passes `--speaker <id>` to the piper binary
1515
-
1516
- #### Voice Directory Resolution
1517
-
1518
- Voice storage follows the same precedence chain in both JavaScript and shell:
1519
-
1520
- 1. `PIPER_VOICES_DIR` environment variable
1521
- 2. Project-local `.claude/piper-voices-dir.txt` (walks up directory tree)
1522
- 3. Global `~/.claude/piper-voices-dir.txt`
1523
- 4. Default `~/.claude/piper-voices`
1524
-
1525
- #### Voice Catalog System
1526
-
1527
- AgentVibes includes a 914-voice catalog (`voice-assignments.json`) that lets users browse, preview, and install voices directly from the Voices tab:
1528
-
1529
- - **10 Curated Voices** Hand-picked high-quality voices installed by default
1530
- - **904 LibriTTS Speakers** — Automatically extracted from the `16Speakers` multi-speaker model's `speaker_id_map`, plus the full LibriTTS catalog from Hugging Face
1531
- - **Download on Demand** Uninstalled voices appear greyed-out in the list; pressing Enter opens a download modal that fetches the voice via `piper-voice-manager.sh`
1532
- - **Catalog Metadata** — Each entry includes `voiceId`, `displayName`, `gender`, `type` (curated/libritts), and download URL
1533
- - **LibriTTS Speaker Names** — Raw numeric IDs are patched at load time using `patchLibriTTSSpeakerNames()` which maps speaker IDs to human-readable names from the registry
1534
-
1535
- The catalog is loaded once at tab initialization by `loadCatalog()`. Installed voices (from disk scan) are shown with full color; catalog-only voices are dimmed until downloaded.
1536
-
1537
- #### Required System Dependencies for Background Music
1538
-
1539
- Background music requires an MP3-capable audio player. The installer detects missing players and offers to install `ffmpeg` automatically. If no player is found, the Music tab displays a clear error message.
1540
-
1541
- ```bash
1542
- # Install ffmpeg (recommended — provides ffplay)
1543
- # Ubuntu/Debian/WSL2:
1544
- sudo apt install ffmpeg
1545
-
1546
- # macOS:
1547
- brew install ffmpeg
1548
-
1549
- # Arch Linux:
1550
- sudo pacman -S ffmpeg
1551
- ```
1552
-
1553
- [↑ Back to top](#-table-of-contents)
1554
-
1555
- ---
1556
-
1557
- ## 🔗 Useful Links
1558
-
1559
- ### Voice & AI Tools
1560
-
1561
- - 🎤 **[WhisperTyping](https://whispertyping.com/)** - Fast voice-to-text typing for developers
1562
- - 🗣️ **[OpenWhisper (Azure)](https://learn.microsoft.com/en-us/azure/ai-services/speech-service/whisper-overview)** - Microsoft's speech-to-text service
1563
- - 🆓 **[Piper TTS](https://github.com/rhasspy/piper)** - Free offline neural TTS
1564
- - 🤖 **[Claude Code](https://claude.com/claude-code)** - AI coding assistant
1565
- - 🎭 **[BMAD METHOD](https://github.com/bmad-code-org/BMAD-METHOD)** - Multi-agent framework
1566
-
1567
- ### AgentVibes Resources
1568
-
1569
- - 🐛 **[Issues](https://github.com/paulpreibisch/AgentVibes/issues)** - Report bugs
1570
- - 📝 **[Changelog](https://github.com/paulpreibisch/AgentVibes/releases)** - Version history
1571
- - 📰 **[Technical Deep Dive - LinkedIn Article](https://www.linkedin.com/pulse/agent-vibes-add-voice-claude-code-deep-dive-npx-paul-preibisch-8zrcc/)** - How AgentVibes works under the hood
1572
-
1573
- [↑ Back to top](#-table-of-contents)
1574
-
1575
- ---
1576
-
1577
- ## ❓ Troubleshooting
1578
-
1579
- **Common Issues:**
1580
-
1581
- **❌ Error: "git-lfs is not installed"**
1582
-
1583
- **AgentVibes does NOT require git-lfs.** This error suggests:
1584
-
1585
- 1. **Wrong installation method** - Use npm, not git clone:
1586
- ```bash
1587
- # ✅ CORRECT - Use this:
1588
- npx agentvibes install
1589
-
1590
- # WRONG - Don't clone unless contributing:
1591
- git clone https://github.com/paulpreibisch/AgentVibes.git
1592
- ```
1593
-
1594
- 2. **Different project** - You may be in a BMAD-METHOD or other repo that uses git-lfs
1595
-
1596
- 3. **Global git config** - Your git may have lfs enabled globally:
1597
- ```bash
1598
- git config --global --list | grep lfs
1599
- ```
1600
-
1601
- **Solution:** Use `npx agentvibes install` - no git operations needed!
1602
-
1603
- ---
1604
-
1605
- **No Audio Playing?**
1606
- 1. Verify hook is installed: `ls -la .claude/hooks/session-start-tts.sh`
1607
- 2. Test: `/agent-vibes:sample Aria`
1608
-
1609
- **Commands Not Found?**
1610
- ```bash
1611
- npx agentvibes install --yes
1612
- ```
1613
-
1614
- **[→ View Complete Troubleshooting Guide](docs/troubleshooting.md)** - Solutions for audio issues, command problems, MCP errors, voice issues, and more
1615
-
1616
- [↑ Back to top](#-table-of-contents)
1617
-
1618
- ---
1619
-
1620
- ## 🔄 Updating
1621
-
1622
- **Quick Update (From Claude Code):**
1623
- ```bash
1624
- /agent-vibes:update
1625
- ```
1626
-
1627
- **Alternative Methods:**
1628
- ```bash
1629
- # Via npx
1630
- npx agentvibes update --yes
1631
-
1632
- # Via npm (if installed globally)
1633
- npm update -g agentvibes && agentvibes update --yes
1634
- ```
1635
-
1636
- **Check Version:** `/agent-vibes:version`
1637
-
1638
- **[→ View Complete Update Guide](docs/updating.md)** - All update methods, version checking, what gets updated, and troubleshooting
1639
-
1640
- [↑ Back to top](#-table-of-contents)
1641
-
1642
- ---
1643
-
1644
- ## 🗑️ Uninstalling
1645
-
1646
- **Quick Uninstall (Project Only):**
1647
- ```bash
1648
- npx agentvibes uninstall
1649
- ```
1650
-
1651
- **Uninstall Options:**
1652
- ```bash
1653
- # Interactive uninstall (confirms before removing)
1654
- npx agentvibes uninstall
1655
-
1656
- # Auto-confirm (skip confirmation prompt)
1657
- npx agentvibes uninstall --yes
1658
-
1659
- # Also remove global configuration
1660
- npx agentvibes uninstall --global
1661
-
1662
- # Complete uninstall including Piper TTS
1663
- npx agentvibes uninstall --global --with-piper
1664
- ```
1665
-
1666
- **What Gets Removed:**
1667
-
1668
- **Project-level (default):**
1669
- - `.claude/commands/agent-vibes/` - Slash commands
1670
- - `.claude/hooks/` - TTS scripts
1671
- - `.claude/personalities/` - Personality templates
1672
- - `.claude/output-styles/` - Output styles
1673
- - `.claude/audio/` - Audio cache
1674
- - `.claude/tts-*.txt` - TTS configuration files
1675
- - `.agentvibes/` - BMAD integration files
1676
-
1677
- **Global (with `--global` flag):**
1678
- - `~/.claude/` - Global configuration
1679
- - `~/.agentvibes/` - Global cache
1680
-
1681
- **Piper TTS (with `--with-piper` flag):**
1682
- - `~/piper/` - Piper TTS installation
1683
-
1684
- **To Reinstall:**
1685
- ```bash
1686
- npx agentvibes install
1687
- ```
1688
-
1689
- **💡 Tips:**
1690
- - Default uninstall only removes project-level files
1691
- - Use `--global` if you want to completely reset AgentVibes
1692
- - Use `--with-piper` if you also want to remove the Piper TTS engine
1693
- - Run `npx agentvibes status` to check installation status
1694
-
1695
- [↑ Back to top](#-table-of-contents)
1696
-
1697
- ---
1698
-
1699
- ## ❓ Frequently Asked Questions (FAQ)
1700
-
1701
- ### Installation & Setup
1702
-
1703
- **Q: Does AgentVibes require git-lfs?**
1704
- **A:** **NO.** AgentVibes has zero git-lfs requirement. Use `npx agentvibes install` - no git operations needed.
1705
-
1706
- **Q: Do I need to clone the GitHub repository?**
1707
- **A:** **NO** (unless you're contributing code). Normal users should use `npx agentvibes install`. Repository cloning is only for developers who want to contribute to the project.
1708
-
1709
- **Q: Why is the GitHub repo so large?**
1710
- **A:** The repo includes demo files and development dependencies (node_modules). The actual npm package you download is **< 50MB** and optimized for users.
1711
-
1712
- **Q: What's the difference between npm install and git clone?**
1713
- **A:**
1714
- - `npx agentvibes install` → **For users** - Downloads pre-built package, zero git operations, instant setup
1715
- - `git clone ...` → **For developers only** - Full source code, development setup, contributing code
1716
-
1717
- **Q: I saw an error about git-lfs, is something wrong?**
1718
- **A:** You're likely:
1719
- 1. Using wrong installation method (use `npx` not `git clone`)
1720
- 2. In a different project directory that uses git-lfs
1721
- 3. Have global git config with lfs enabled
1722
-
1723
- AgentVibes itself does NOT use or require git-lfs.
1724
-
1725
- ### Features & Usage
1726
-
1727
- **Q: Does MCP consume tokens from my context window?**
1728
- **A:** **YES.** Every MCP tool schema adds to the context window. AgentVibes MCP is designed to be minimal (~1500-2000 tokens), but if you're concerned about token usage, you can use slash commands instead of MCP.
1729
-
1730
- **Q: What's the difference between using MCP vs slash commands?**
1731
- **A:**
1732
- - **MCP**: Natural language ("Switch to Aria voice"), uses ~1500-2000 context tokens
1733
- - **Slash commands**: Explicit commands (`/agent-vibes:switch Aria`), zero token overhead
1734
-
1735
- Both do the exact same thing - MCP is more convenient, slash commands are more token-efficient.
1736
-
1737
- **Q: Is AgentVibes just a bash script?**
1738
- **A:** No. AgentVibes includes:
1739
- - Multi-provider TTS abstraction (Piper TTS, macOS Say)
1740
- - Voice management system with 50+ voices
1741
- - Personality & sentiment system
1742
- - Language learning mode with bilingual playback
1743
- - Audio effects processing (reverb, EQ, compression)
1744
- - MCP server for natural language control
1745
- - BMAD integration for multi-agent voice switching
1746
- - Remote audio optimization for SSH/RDP sessions
1747
-
1748
- **Q: Can I use AgentVibes without BMAD?**
1749
- **A:** **YES.** AgentVibes works standalone. BMAD integration is optional - only activates if you install BMAD separately.
1750
-
1751
- **Q: What are the audio dependencies?**
1752
- **A:**
1753
- - **Required**: Node.js 16+, Python 3.10+ (for Piper TTS)
1754
- - **Optional**: sox (audio effects), ffmpeg (background music, padding)
1755
- - All TTS generation works without optional dependencies - they just enhance the experience
1756
-
1757
- ### TUI Console & New Features
1758
-
1759
- **Q: How do I browse and install voices?**
1760
- **A:** Run `npx agentvibes` to open the interactive TUI console. Navigate to the Voices tab using Tab key, browse 914+ voices with arrow keys, press ENTER to sample, and select to install.
1761
-
1762
- **Q: What are friendly voice names?**
1763
- **A:** Instead of technical IDs like `en_US-ryan-high`, you can now use simple names like "Ryan" when switching voices. All 904+ voices have friendly names matched to their characteristics.
1764
-
1765
- **Q: How do I set up custom intro text?**
1766
- **A:** During installation, you'll be prompted for intro text. You can also configure it anytime with `npx agentvibes config intro-text`. Enter text like "FireBot: " and it will prefix all TTS announcements.
1767
-
1768
- **Q: Can I use my own background music?**
1769
- **A:** Yes! Run `npx agentvibes config music` and select "Change music". Provide the path to your audio file (.mp3, .wav, .ogg, or .m4a). Files are validated for security and must be under 50MB.
1770
-
1771
- **Q: What's the recommended duration for custom music?**
1772
- **A:** Between 30-90 seconds is ideal for smooth looping. The system supports up to 300 seconds (5 minutes) but will warn you if the duration is non-optimal.
1773
-
1774
- **Q: Are friendly voice names case-sensitive?**
1775
- **A:** No! You can type "ryan", "Ryan", or "RYAN" - they all work. The voice resolution is case-insensitive.
1776
-
1777
- **Q: Can I favorite voices without installing them?**
1778
- **A:** Yes! In the Voices tab, press 'F' to mark any voice as a favorite. Favorites are saved and you can filter to show only favorites later.
1779
-
1780
- **Q: Does custom music work with all TTS providers?**
1781
- **A:** Yes! Custom background music works with Piper TTS, Soprano, macOS Say, and Windows SAPI.
1782
-
1783
- **Q: Can I preview music before setting it as my background?**
1784
- **A:** Yes! When configuring custom music with `npx agentvibes config music`, you can select "Preview current" to hear your music. During installation, you can also sample all built-in tracks.
1785
-
1786
- **Q: What security measures protect custom music uploads?**
1787
- **A:** AgentVibes implements **defense-in-depth security with 7 validation layers**, tested against 180+ attack variations:
1788
-
1789
- 1. **Path Validation** - `path.resolve()` prevents traversal attacks (../, encoded, Unicode)
1790
- 2. **Home Directory Boundary** - Files must be within your home directory
1791
- 3. **File Existence Check** - Verifies file actually exists
1792
- 4. **File Type Verification** - Must be a regular file (not device, socket, etc.)
1793
- 5. **Ownership Verification** - File must be owned by you (UID check)
1794
- 6. **Format Validation** - Magic number checking ensures real audio files
1795
- 7. **Secure Storage** - Files copied to restricted directory with 600 permissions
1796
-
1797
- **Security Certification:**
1798
- - 100% attack rejection rate (107/107 tests passed)
1799
- - ✅ OWASP CWE-22 compliant (path traversal prevention)
1800
- - No information disclosure in error messages
1801
- - Production-ready and certified secure
1802
-
1803
- See full security audit: `docs/security/SECURITY-AUDIT.md`
1804
-
1805
- **Q: Has the security been independently verified?**
1806
- **A:** Yes! AgentVibes v3.6.0 includes a comprehensive security audit with 180+ attack variations tested. All path traversal, symlink, Unicode, null byte, and edge case attacks were successfully blocked (100% rejection rate). The system is OWASP CWE-22 compliant and includes a detailed security audit report at `docs/security/SECURITY-AUDIT.md`.
1807
-
1808
- **Q: What attack patterns were tested?**
1809
- **A:** The security test suite covers:
1810
- - **Path Traversal:** 100 variations (basic, URL-encoded, Unicode, null bytes, mixed)
1811
- - **Symlink Attacks:** 10 variations (sensitive files, chains, traversal targets)
1812
- - **Hard Link Attacks:** 5 variations (ownership verification)
1813
- - **Edge Cases:** 65+ variations (CRLF, whitespace, Unicode normalization, platform-specific)
1814
-
1815
- Every attack was correctly rejected with no information disclosure.
1816
-
1817
- ### Troubleshooting
1818
-
1819
- **Q: Why isn't Claude speaking?**
1820
- **A:** Common causes:
1821
- 1. Hook not installed - Run `npx agentvibes install --yes`
1822
- 2. Audio player missing - Install `sox` and `ffmpeg`
1823
- 3. TTS protocol not enabled in settings
1824
- 4. Test with `/agent-vibes:sample Aria`
1825
-
1826
- **Q: Can I use this on Windows?**
1827
- **A:** Yes! AgentVibes supports **native Windows** with PowerShell scripts (Soprano, Piper, SAPI providers). See [Windows Native Setup](WINDOWS-SETUP.md). WSL is also supported for legacy workflows - see [Windows WSL Guide](mcp-server/WINDOWS_SETUP.md).
1828
-
1829
- **Q: How do I reduce token usage?**
1830
- **A:**
1831
- 1. Use slash commands instead of MCP (zero context token overhead)
1832
- 2. Set verbosity to LOW (`/agent-vibes:verbosity low`)
1833
- 3. Disable BMAD integration if not using it
1834
-
1835
- [↑ Back to top](#-table-of-contents)
1836
-
1837
- ---
1838
-
1839
- ## ⚠️ Important Disclaimers
1840
-
1841
- **API Costs & Usage:**
1842
- - Usage is completely free with Piper TTS and Mac Say (no API costs)
1843
- - Users are solely responsible for their own API costs and usage
1844
-
1845
-
1846
- **Third-Party Services:**
1847
- - This project integrates with Piper TTS (local processing) and macOS Say (system built-in)
1848
- - We are **not affiliated with, endorsed by, or officially connected** to Anthropic, Apple, or Claude
1849
- - Piper TTS is subject to its terms of service
1850
-
1851
- **Privacy & Data:**
1852
- - **Piper TTS**: All processing happens locally on your machine, no external data transmission
1853
- - **macOS Say**: All processing happens locally using Apple's built-in speech synthesis
1854
-
1855
- **Software License:**
1856
- - Provided "as-is" under Apache 2.0 License without warranty of any kind
1857
- - See [LICENSE](LICENSE) file for full terms
1858
- - No liability for data loss, bugs, service interruptions, or any damages
1859
-
1860
- **Use at Your Own Risk:**
1861
- - This is open-source software maintained by the community
1862
- - Always test in development before production use
1863
- - Monitor your API usage and costs regularly
1864
-
1865
- [↑ Back to top](#-table-of-contents)
1866
-
1867
- ---
1868
-
1869
- ## 🙏 Credits
1870
-
1871
- **Built with ❤️ by [Paul Preibisch](https://github.com/paulpreibisch)**
1872
-
1873
- - 🐦 Twitter: [@997Fire](https://x.com/997Fire)
1874
- - 💼 LinkedIn: [paul-preibisch](https://www.linkedin.com/in/paul-preibisch/)
1875
- - 🌐 GitHub: [paulpreibisch](https://github.com/paulpreibisch)
1876
-
1877
- **Powered by:**
1878
- - [Piper TTS](https://github.com/rhasspy/piper) - Free neural voices
1879
- - [Soprano TTS](https://github.com/suno-ai/bark) - Ultra-fast neural TTS
1880
- - **Windows SAPI** - Native Windows text-to-speech
1881
- - **macOS Say** - Native macOS text-to-speech
1882
- - [Claude Code](https://claude.com/claude-code) - AI coding assistant
1883
- - Licensed under Apache 2.0
1884
-
1885
- **Contributors:**
1886
- - 🎤 [@nathanchase](https://github.com/nathanchase) - Soprano TTS Provider integration (PR #95) - Ultra-fast neural TTS with GPU acceleration
1887
-
1888
- **Special Thanks:**
1889
- - 💡 [Claude Code Hooks Mastery](https://github.com/disler/claude-code-hooks-mastery) by [@disler](https://github.com/disler) - Hooks inspiration
1890
- - 🤖 [BMAD METHOD](https://github.com/bmad-code-org/BMAD-METHOD) - Multi-agent framework with auto voice switching integration
1891
-
1892
- [↑ Back to top](#-table-of-contents)
1893
-
1894
- ---
1895
-
1896
- ## 🤝 Contributing
1897
-
1898
- If AgentVibes makes your coding more fun:
1899
- - ⭐ **Star this repo** on GitHub
1900
- - 🐦 **Tweet** and tag [@997Fire](https://x.com/997Fire)
1901
- - 🎥 **Share videos** of Claude with personality
1902
- - 💬 **Tell dev friends** about voice-powered AI
1903
-
1904
- ---
1905
-
1906
- **Ready to give Claude a voice? Install now and code with personality! 🎤✨**
1907
-
1908
- [↑ Back to top](#-table-of-contents)
1909
-
1
+ # 🎤 AgentVibes
2
+
3
+ > **Finally! Your agents can talk back!**
4
+ >
5
+ > 🌐 **[agentvibes.org](https://agentvibes.org)**
6
+ >
7
+ > Professional text-to-speech for **Claude Code**, **Claude Desktop**, **Warp Terminal**, and **OpenClaw** - **Soprano** (Neural), **Piper TTS** (Free!), **macOS Say** (Built-in!), or **Windows SAPI** (Zero Setup!)
8
+
9
+ [![npm version](https://img.shields.io/npm/v/agentvibes)](https://www.npmjs.com/package/agentvibes)
10
+ [![Test Suite](https://github.com/paulpreibisch/AgentVibes/actions/workflows/test.yml/badge.svg)](https://github.com/paulpreibisch/AgentVibes/actions/workflows/test.yml)
11
+ [![Publish](https://github.com/paulpreibisch/AgentVibes/actions/workflows/publish.yml/badge.svg)](https://github.com/paulpreibisch/AgentVibes/actions/workflows/publish.yml)
12
+ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
13
+
14
+ **Author**: Paul Preibisch ([@997Fire](https://x.com/997Fire)) | **Version**: v4.4
15
+
16
+ ---
17
+
18
+ ## 🚀 Quick Links
19
+
20
+ | I want to... | Go here |
21
+ |--------------|---------|
22
+ | **Install AgentVibes** (just `npx`, no git!) | [Quick Start Guide](docs/quick-start.md) |
23
+ | **Run Claude Code on Android** | [Android/Termux Setup](#-android--termux) |
24
+ | **Secure OpenClaw on Remote Server** | [Security Hardening Guide](docs/security-hardening-guide.md) ⚠️ |
25
+ | **Understand what I need** | [Prerequisites](#-prerequisites) |
26
+ | **Set up on Windows (Native)** | [Windows Native Setup](WINDOWS-SETUP.md) |
27
+ | **Set up on Windows (Claude Desktop/WSL)** | [Windows WSL Guide](mcp-server/WINDOWS_SETUP.md) |
28
+ | **Use with OpenClaw** | [OpenClaw Integration](#-openclaw-integration) |
29
+ | **Use natural language** | [MCP Setup](docs/mcp-setup.md) |
30
+ | **Switch voices** | [Voice Library](docs/voice-library.md) |
31
+ | **Fix issues** (git-lfs? MCP tokens? Read this!) | [Troubleshooting](docs/troubleshooting.md) & [FAQ](#-frequently-asked-questions-faq) |
32
+
33
+ ---
34
+
35
+ ## ✨ What is AgentVibes?
36
+
37
+ **AgentVibes adds lively voice narration to your Claude AI sessions!**
38
+
39
+ Whether you're coding in Claude Code, chatting in Claude Desktop, using Warp Terminal, or running OpenClaw - AgentVibes brings AI to life with professional voices and personalities.
40
+
41
+ ---
42
+
43
+ ## 🌟 NEW IN v4.4 — Full Platform Parity Release
44
+
45
+ ### 🪟 Windows MCP Parity 27/27 Tools Working
46
+
47
+ All MCP tools now work natively on Windows. Previously 12 tools silently failed due to missing scripts:
48
+
49
+ - **6 new PowerShell scripts** personality-manager, speed-manager, language-manager, learn-manager, verbosity-manager, clean-audio-cache
50
+ - **Unified provider naming** — `piper` and `sapi` on all platforms (no more `windows-piper`/`windows-sapi`)
51
+ - **replay command** added to voice-manager for Windows
52
+ - **Adversarial review** — 24 issues found, 10 fixed (3 CRITICAL, 4 HIGH, 3 MEDIUM)
53
+ - **28 new tests** covering script parity, effects round-trip, provider management, and naming consistency
54
+ - **Feature-platform matrix** — [docs/feature-platform-matrix.md](docs/feature-platform-matrix.md) tracks all 85 features across Linux, macOS, Windows, and WSL
55
+
56
+ ### Bug Fixes (HIGH)
57
+ - ffmpeg stderr redirected to temp file instead of literal `"NUL"` file
58
+ - `AGENTVIBES_NO_PLAY` env var properly cleaned up on error paths
59
+ - `PIPER_SPEAKER` env var no longer leaks between voice switches
60
+ - Provider config now uses project-local `.claude` (not always global)
61
+ - Text sanitization relaxed — `$50 (USD)` no longer becomes `50 USD`
62
+
63
+ ---
64
+
65
+ ## 🌟 v4.3 — Windows Parity + BMAD Party Mode
66
+
67
+ ### 🎭 BMAD Party Mode Every Agent Has Its Own Voice
68
+
69
+ The BMad Method (Build More Architect Dreams) is an AI-driven development framework that helps you build software from ideation through agentic implementation with specialized AI agents, guided workflows, and intelligent planning that adapts to your project's complexity.
70
+
71
+ **Every BMAD agent now speaks with their own unique voice, music, and personality.**
72
+
73
+ When party mode runs a multi-agent discussion, the Architect, PM, Developer, QA, and Analyst each sound completely different — making every role immediately recognizable.
74
+
75
+ **Auto-enabled** — if BMAD is installed, party mode activates automatically. Open the BMad Tab to configure each agent:
76
+
77
+ ```bash
78
+ npx agentvibes # Press B to open the BMad Tab
79
+ ```
80
+
81
+ **Per-agent configuration:**
82
+ - 🎙️ **Voice** — 914 voices to choose from, auto-assigned gender-aware
83
+ - 🎵 **Background Music** — Unique ambient track per agent (cinematic, lo-fi, jazz...)
84
+ - 🎚️ **Music Volume** Per-agent level, or set all at once via Bulk Edit
85
+ - 🎛️ **Reverb** — none / room / hall / cathedral / studio per agent
86
+ - 💬 **Pretext** — Custom intro phrase ("Winston says:..." before every line)
87
+ - 🎭 **Personality** — sarcastic, dramatic, pirate, cheerful, and more
88
+ - 🔇 **No Overlap** — Speech lock ensures agents never talk over each other
89
+ - ✨ **Markdown-Clean** — Asterisks and formatting stripped before TTS
90
+
91
+ ### 🎛️ BMad Tab Visual Agent Configurator
92
+
93
+ The `npx agentvibes` TUI now includes a full **BMad Tab** for managing every agent visually — inspired by the Voices tab, with the same columns and navigation polish:
94
+
95
+ ```bash
96
+ npx agentvibes # Press B for BMad Tab
97
+ ```
98
+
99
+ | Agent | Voice | Gender | Provider | Reverb | Music | Vol | Pretext |
100
+ |-------|-------|--------|----------|--------|-------|-----|---------|
101
+ | 🏢 Winston | Rose Ibex | Female | Piper (LibriTTS) | studio | jazz | 65% | Winston says |
102
+ | 🧠 Larry | Kusal | Male | Piper | hall | cinematic | 80% | Larry says |
103
+
104
+ **Highlights:**
105
+ - **Beautified voice names** `16Speakers::Rose_Ibex` shows as `Rose Ibex`; `en_US-kusal-medium` shows as `Kusal`
106
+ - **Gender & Provider columns** — see voice metadata at a glance, just like the Voices tab
107
+ - **Inline row hints** — navigate to any agent and see `[Space] Preview [Enter] Configure` on the row itself
108
+ - **Preview spinner** — animated `⠋⠙⠹⠸` braille spinner while audio plays
109
+
110
+ | Key | Action |
111
+ |-----|--------|
112
+ | `↑↓` / `jk` | Navigate agents |
113
+ | `Space` | Preview agent (spinner shows while playing) |
114
+ | `Enter` | Configure voice, music, volume, reverb, personality, pretext |
115
+ | `A` | Auto-assign unique voices (gender-aware, no repeats) |
116
+ | `B` | Bulk Edit — set music / volume / pretext / reverb for all agents |
117
+ | `X` | Reset agent to defaults |
118
+
119
+ ---
120
+
121
+ ### 🖥️ SSH Receiver Hear Your Headless Server
122
+
123
+ **Run Claude on a cloud box and hear the TTS on your local machine.**
124
+
125
+ The new **Receiver Tab** streams TTS audio from voiceless remote servers to your local machine over TCP — perfect for AWS/GCP dev boxes, WSL2, and SSH sessions.
126
+
127
+ ```bash
128
+ # On your local machine — open TUI, go to Receiver tab, click Start
129
+ npx agentvibes
130
+
131
+ # On the remote server — AgentVibes auto-detects the receiver and streams
132
+ ```
133
+
134
+ Zero-config forwarding. Works with Piper, macOS Say, and Soprano.
135
+
136
+ ---
137
+
138
+ ### TTS Latency -~1 Second
139
+
140
+ - **Batched Node.js calls** 6 separate profile reads collapsed into 1 (~900ms saved)
141
+ - **inotifywait queue** file-event-based worker, no polling delay
142
+ - **Background cache cleanup** off the critical path every 10th call
143
+
144
+ ---
145
+
146
+ ### 🎨 ANSI Banner Colors + Toggle
147
+
148
+ Full color in the TTS banner (gold voice, cyan reverb, traffic-light cache). Hide it without muting:
149
+
150
+ ```bash
151
+ touch ~/.agentvibes/banner-disabled # or say "turn off the TTS banner"
152
+ ```
153
+
154
+ ---
155
+
156
+ ### 💬 Intro Text (Pretext) - Your Personal AI Branding
157
+
158
+ **Add custom prefixes to every TTS announcement!**
159
+
160
+ Configure via the AgentVibes TUI Settings tab:
161
+
162
+ ```bash
163
+ npx agentvibes # Navigate to Settings tab
164
+ ```
165
+
166
+ Transform generic AI responses into your personal brand:
167
+
168
+ **Before:**
169
+ ```
170
+ "Starting analysis of the codebase..."
171
+ ```
172
+
173
+ **After (with "FireBot: " intro text):**
174
+ ```
175
+ "FireBot: Starting analysis of the codebase..."
176
+ ```
177
+
178
+ **Perfect for:**
179
+ - 🤖 **Personal AI Branding** - Make Claude sound like your custom assistant
180
+ - 🏢 **Team Identity** - Company bots with branded voices
181
+ - 🎮 **Character Roleplay** - Gaming assistants with character names
182
+ - 🎓 **Teaching Contexts** - Professor Bot, Tutor AI, etc.
183
+
184
+ **Features:**
185
+ - Up to 50 characters
186
+ - UTF-8 and emoji support 🎉
187
+ - Set during installation or anytime after
188
+ - Works with all TTS providers
189
+ - Applies to every single announcement
190
+
191
+ **Examples:**
192
+ - `"JARVIS: "` - Iron Man style
193
+ - `"🤖 Assistant: "` - With emoji
194
+ - `"CodeBot: "` - Development assistant
195
+ - `"Chef AI: "` - Cooking helper
196
+
197
+ Configure via: `npx agentvibes` Settings tab
198
+
199
+ ---
200
+
201
+ ### 🎵 Custom Background Music - Complete Audio Control
202
+
203
+ **Upload your own background music with battle-tested security!**
204
+
205
+ Configure via the AgentVibes TUI Music tab:
206
+
207
+ ```bash
208
+ npx agentvibes # Navigate to Music tab
209
+ ```
210
+
211
+ Replace the default background tracks with your own audio files.
212
+
213
+ **Supported Formats:**
214
+ - 🎵 MP3 (.mp3)
215
+ - 🎵 WAV (.wav)
216
+ - 🎵 OGG (.ogg)
217
+ - 🎵 M4A (.m4a)
218
+
219
+ **Security First:**
220
+ - ✅ **180+ attack variations tested** - Path traversal, symlinks, Unicode tricks
221
+ - **100% attack rejection rate** - Every malicious attempt blocked
222
+ - ✅ **OWASP CWE-22 compliant** - Industry-standard security
223
+ - ✅ **7 validation layers** - Defense-in-depth architecture
224
+ - ✅ **File ownership verification** - Only your files accepted
225
+ - **Magic number validation** - Real audio files only
226
+ - ✅ **Secure storage** - 600 permissions, restricted directory
227
+
228
+ **Smart Validation:**
229
+ - Recommended duration: 30-90 seconds (optimal looping)
230
+ - Maximum: 300 seconds (5 minutes)
231
+ - Maximum size: 50MB
232
+ - Automatic format detection
233
+ - Duration warnings for non-optimal lengths
234
+
235
+ **Perfect for:**
236
+ - 🎮 **Making coding fun** - Your favorite beats while you build
237
+ - 🎼 **Setting the mood** - Match the music to the task (lo-fi for debugging, epic for shipping)
238
+ - 🗂️ **Identifying projects** - Different track per repo so you always know which project Claude is in
239
+ - 🎹 **Deep focus** - Ambient or classical to stay in flow
240
+
241
+ **Features:**
242
+ - Preview before setting
243
+ - One-command upload
244
+ - Works with all TTS providers
245
+ - Loops seamlessly under voice
246
+ - Easy restore to defaults
247
+
248
+ **Menu Options:**
249
+ 1. Change music - Upload new audio file
250
+ 2. Remove music - Clear custom music
251
+ 3. Reset to default - Restore built-in tracks (16 genres)
252
+ 4. Enable/Disable - Toggle background music
253
+ 5. Preview current - Sample your music
254
+
255
+ Configure via: `npx agentvibes` Music tab
256
+
257
+ **Security Certified:** See full audit report at `docs/security/SECURITY-AUDIT.md`
258
+
259
+ ---
260
+
261
+ ### 🎯 Key Features
262
+
263
+ **🌟 v4.2 BMAD Party Mode & SSH Receiver:**
264
+ - 🎭 **BMAD Party Mode Voices** Each agent speaks with their unique voice, music, reverb, personality
265
+ - 🖥️ **SSH Receiver Tab** — Stream TTS audio from headless servers to your local machine over TCP
266
+ - 🎛️ **BMad Tab (TUI)** — Visual agent configurator with auto-assign and bulk edit
267
+ - **TTS Latency -1s** Batched Node.js calls, inotifywait queue, background cleanup
268
+ - 🎨 **ANSI Banner Colors Restored** — Gold/cyan/traffic-light colors in TTS info banner
269
+ - 🔕 **Banner Toggle** Hide TTS banner without muting (`~/.agentvibes/banner-disabled`)
270
+ - 🔇 **No Party Mode Overlap** — Agents wait for full audio before next speaks
271
+ - 🧹 **Markdown-Clean Speech** — Asterisks/formatting stripped automatically from party mode
272
+
273
+ **🌟 NEW IN v3.6.0 Voice Explorer Release:**
274
+ - 🏷️ **Friendly Voice Names** - "Ryan" instead of "en_US-libritts_r-medium-speaker-123"
275
+ - 💬 **Intro Text (Pretext)** - Custom prefix for all TTS ("FireBot: Starting...")
276
+ - 🎵 **Custom Background Music** - Upload your own audio files with battle-tested security
277
+ - 🎨 **Interactive Installer** - Preview voices and music during installation
278
+ - 🛡️ **Security Hardening** - 180+ attack variations tested, 100% blocked, OWASP compliant
279
+
280
+ **🪟 NEW IN v3.5.5 — Native Windows Support:**
281
+ - 🖥️ **Windows Native TTS** - Soprano, Piper, and Windows SAPI providers. No WSL required!
282
+ - 🎵 **Background Music** - 16 genre tracks mixed under voice
283
+ - 🎛️ **Reverb & Audio Effects** - 5 reverb levels via ffmpeg
284
+ - 🔊 **Verbosity Control** - High, Medium, or Low settings
285
+ - 🎨 **Beautiful Installer** - `npx agentvibes install` or `.\setup-windows.ps1`
286
+
287
+ **⚡ v3.4.0 Highlights:**
288
+ - 🎤 **Soprano TTS Provider** - Ultra-fast neural TTS with 20x CPU, 2000x GPU acceleration (thanks [@nathanchase](https://github.com/nathanchase)!)
289
+ - 🛡️ **Security Hardening** - 9.5/10 score with comprehensive validation and timeouts
290
+ - 🌐 **Environment Intelligence** - PulseAudio tunnel auto-detection for SSH scenarios
291
+
292
+ **⚡ Core Features:**
293
+ - **One-Command Install** - Get started in 30 seconds (`npx agentvibes install` or `.\setup-windows.ps1` without Node.js)
294
+ - 🎭 **Multi-Provider Support** - Soprano (neural), Piper TTS (50+ free voices), macOS Say (100+ built-in), or Windows SAPI
295
+ - 🎙️ **27+ Professional AI Voices** - Character voices, accents, and unique personalities
296
+ - 🎙️ **Verbosity Control** - Choose how much Claude speaks (LOW, MEDIUM, HIGH)
297
+ - 🎙️ **AgentVibes MCP** - Natural language control ("Switch to Aria voice") for Claude Code, Desktop & Warp
298
+ - 🔊 **SSH Audio Optimization** - Auto-detects remote sessions and eliminates static (VS Code Remote SSH, cloud dev)
299
+
300
+ **🎭 Personalization:**
301
+ - 🎭 **19 Built-in Personalities** - From sarcastic to flirty, pirate to dry humor
302
+ - 💬 **Advanced Sentiment System** - Apply personality styles to ANY voice without changing it
303
+ - 🎵 **Voice Preview & Replay** - Listen before you choose, replay last 10 TTS messages
304
+
305
+ **🚀 Integrations & Power Features:**
306
+ - 🔌 **Enhanced BMAD Plugin** - Auto voice switching for BMAD agents with multilingual support
307
+ - 🔊 **Live Audio Feedback** - Hear task acknowledgments and completions in any language
308
+ - 🌍 **30+ Languages** - Multilingual support with native voice quality
309
+ - 🆓 **Free & Open** - Use Piper TTS with no API key required
310
+
311
+ ### 🤗 Hugging Face AI Voice Models
312
+
313
+ **AgentVibes' Piper TTS uses 100% Hugging Face-trained AI voice models** from [rhasspy/piper-voices](https://huggingface.co/rhasspy/piper-voices).
314
+
315
+ **What are Hugging Face voice models?**
316
+
317
+ Hugging Face voice models are pre-trained artificial intelligence models hosted on the Hugging Face Model Hub platform, designed to convert text into human-like speech (Text-to-Speech or TTS) or perform other speech tasks like voice cloning and speech-to-speech translation. They're accessible via their Transformers library for easy use in applications like voice assistants, audio generation, and more.
318
+
319
+ **Key Benefits:**
320
+ - 🎯 **Human-like Speech** - VITS-based neural models for natural pronunciation and intonation
321
+ - 🌍 **35+ Languages** - Multilingual support with native accents
322
+ - 🆓 **100% Open Source** - All Piper voices are free HF models (Tacotron2, FastSpeech2, VITS)
323
+ - 🔧 **Developer-Friendly** - Fine-tune, customize, or deploy for various audio projects
324
+ - **Offline & Fast** - No API keys, no internet needed once installed
325
+
326
+ All 50+ Piper voices AgentVibes provides are sourced from Hugging Face's open-source AI voice models, ensuring high-quality, natural-sounding speech synthesis across all supported platforms.
327
+
328
+ ---
329
+
330
+ ## 📑 Table of Contents
331
+
332
+ ### Getting Started
333
+ - [🚀 Quick Start](#-quick-start) - Get voice in 30 seconds (3 simple steps)
334
+ - [📱 Android/Termux](#-quick-setup-android--termux-claude-code-on-your-phone) - Run Claude Code on your phone
335
+ - [📋 Prerequisites](#-prerequisites) - What you actually need (Node.js + optional tools)
336
+ - [✨ What is AgentVibes?](#-what-is-agentvibes) - Overview & key features
337
+ - [🌟 NEW FEATURE HIGHLIGHTS](#-new-feature-highlights) - **START HERE!**
338
+ - [🎭 BMAD Party Mode](#-bmad-party-mode--multi-agent-voice-conversations) - Per-agent voices, music, reverb
339
+ - [🖥️ SSH Receiver](#️-agentvibes-receiver--remote-audio-streaming) - Stream audio from headless servers
340
+ - [💬 Intro Text](#-intro-text-pretext---your-personal-ai-branding) - Custom TTS prefixes
341
+ - [🎵 Custom Background Music](#-custom-background-music---complete-audio-control) - Upload your own tracks
342
+ - [📰 Latest Release](#-latest-release) - v4.3 "Windows Parity" background music, voice selection, ffmpeg auto-install on Windows
343
+ - [🪟 Windows Setup Guide for Claude Desktop](mcp-server/WINDOWS_SETUP.md) - Complete Windows installation with WSL & Python
344
+
345
+ ### AgentVibes MCP (Natural Language Control)
346
+ - [🎙️ AgentVibes MCP Overview](#%EF%B8%8F-agentvibes-mcp) - **Easiest way** - Natural language commands
347
+ - [For Claude Desktop](docs/mcp-setup.md#for-claude-desktop) - Windows/WSL setup, Python requirements
348
+ - [For Warp Terminal](docs/mcp-setup.md#for-warp-terminal) - Warp configuration
349
+ - [For Claude Code](docs/mcp-setup.md#for-claude-code) - Project-specific setup
350
+
351
+ ### Core Features
352
+ - [🎤 Commands Reference](#-commands-reference) - All available commands
353
+ - [🎙️ Verbosity Control](#%EF%B8%8F-verbosity-control) - Control how much Claude speaks (low/medium/high)
354
+ - [🎭 Personalities vs Sentiments](#-personalities-vs-sentiments) - Two systems explained
355
+ - [🗣️ Voice Library](#%EF%B8%8F-voice-library) - 914 voices with friendly names
356
+ - [🔌 BMAD Plugin](#-bmad-plugin) - Auto voice switching for BMAD agents
357
+ - [🎙️ AgentVibes Receiver - NEW!](#%EF%B8%8F-agentvibes-receiver-remote-audio-streaming-from-voiceless-servers) - Remote audio streaming from voiceless servers
358
+
359
+ ### Integrations & Platforms
360
+ - [🤖 OpenClaw Integration](#-openclaw-integration) - Use AgentVibes with OpenClaw messaging platform
361
+ - [🎙️ AgentVibes Skill for OpenClaw](#-agentvibes-skill-for-openclaw---what-you-get) - 50+ voices, effects, personalities for OpenClaw
362
+ - [📱 AgentVibes Receiver](#-agentvibes-receiver-local-phone-) - Remote audio on phones/local machines
363
+
364
+ ### Advanced Topics
365
+ - [📦 Installation Structure](#-installation-structure) - What gets installed
366
+ - [💡 Common Workflows](#-common-workflows) - Quick examples
367
+ - [🔧 Advanced Features](#-advanced-features) - Custom voices & personalities
368
+ - [🔊 Remote Audio Setup](#-remote-audio-setup) - Play TTS from remote servers
369
+ - [🛠️ Technical Documentation](#️-technical-documentation) - Audio architecture, cross-platform support, voice resolution
370
+ - [🚨 Security Hardening Guide](docs/security-hardening-guide.md) - **REQUIRED if running OpenClaw on remote server**: SSH hardening, Fail2Ban, Tailscale, UFW, AIDE
371
+ - [🔬 Technical Deep Dive](docs/technical-deep-dive.md) - How AgentVibes works under the hood
372
+ - [❓ Troubleshooting](#-troubleshooting) - Common issues & fixes
373
+
374
+ ### Additional Resources
375
+ - [🔗 Useful Links](#-useful-links) - Voice typing & AI tools
376
+ - [🔄 Updating](#-updating) - Keep AgentVibes current
377
+ - [🗑️ Uninstalling](#️-uninstalling) - Remove AgentVibes cleanly
378
+ - [❓ FAQ](#-frequently-asked-questions-faq) - **NEW!** Common questions answered (git-lfs, MCP tokens, installation)
379
+ - [🍎 macOS Testing](docs/macos-testing.md) - Automated testing on macOS with GitHub Actions
380
+ - [🤗 Hugging Face Voice Models](docs/hugging-face-models.md) - Technical details on AI voice models
381
+ - [🙏 Credits](#-credits) - Acknowledgments
382
+ - [🤝 Contributing](#-contributing) - Show support
383
+
384
+ ---
385
+
386
+ ## 📰 Latest Release
387
+
388
+ **[v4.3 - "Windows Parity" Release](https://github.com/paulpreibisch/AgentVibes/releases/tag/v4.3)** 🎉
389
+
390
+ This is the biggest AgentVibes release since the TUI launched in v4.0. Two headline features: **BMAD Party Mode** gives every agent their own voice and music, and the **SSH Receiver** lets you hear your headless server speak on your local machine.
391
+
392
+ ### 🎭 BMAD Party Mode Multi-Agent Voice Conversations
393
+
394
+ The BMad Method (Build More Architect Dreams) is an AI-driven development framework module that helps you build software from ideation through agentic implementation with specialized AI agents, guided workflows, and intelligent planning.
395
+
396
+ Every agent in a BMAD discussion now speaks with their own individually configured voice, music, reverb, and personality — making the Architect, PM, Developer, QA, and Analyst immediately recognizable the moment they speak.
397
+
398
+ **Auto-enabled** party mode activates automatically when BMAD is detected. Configure agents visually:
399
+
400
+ ```bash
401
+ npx agentvibes # Press B for BMad Tab
402
+ ```
403
+
404
+ **Each agent gets:**
405
+ - 🎙️ **Their own voice** — 914 to choose from, or auto-assign gender-aware
406
+ - 🎵 **Their own music track** cinematic for the Architect, lo-fi for the Dev
407
+ - 🎚️ **Their own volume** — fine-tune per-agent, or bulk-set all at once
408
+ - 🎛️ **Their own reverb** — studio, hall, cathedral, room, or none
409
+ - 💬 **Their own pretext** — "Winston says:..." before every line
410
+ - 🎭 **Their own personality** — sarcastic, dramatic, pirate, cheerful...
411
+ - 🔇 **No overlap** — agents wait for full audio before the next one speaks
412
+ - **Markdown stripped** no "asterisk asterisk" in TTS output
413
+
414
+ ### 🎛️ BMad Tab — Full Visual Agent Configurator
415
+
416
+ Manage every agent from an interactive table — same polish as the Voices tab:
417
+
418
+ | Key | Action |
419
+ |-----|--------|
420
+ | `Space` | Preview agent with full profile (animated spinner while playing) |
421
+ | `Enter` | Configure voice, music, volume, reverb, personality, pretext |
422
+ | `A` | Auto-assign unique voices (gender-aware, no repeats) |
423
+ | `B` | Bulk Edit — set music / volume / pretext / reverb for all agents |
424
+ | `X` | Reset agent to defaults |
425
+
426
+ The table shows **Voice, Gender, Provider, Reverb, Music, Vol, Pretext** columns. Voice names are automatically beautified: `16Speakers::Rose_Ibex` → `Rose Ibex`.
427
+
428
+ ### 🖥️ SSH Receiver Hear Your Headless Server
429
+
430
+ Stream TTS from a cloud box, WSL2, or any voiceless server directly to your local machine over TCP:
431
+
432
+ ```bash
433
+ # Local: open TUI → Receiver tab → Start
434
+ npx agentvibes
435
+
436
+ # Remote: AgentVibes auto-detects the receiver and streams audio to you
437
+ ```
438
+
439
+ ### ~1 Second Faster TTS
440
+
441
+ - 6 Node.js profile reads collapsed into 1 (~900ms saved per speech)
442
+ - `inotifywait` queue worker no polling delay
443
+ - Cache cleanup runs off the critical path
444
+
445
+ ### 🎨 ANSI Colors Restored + Banner Toggle
446
+
447
+ Full color in the TTS banner. Silence it without muting audio:
448
+ ```bash
449
+ touch ~/.agentvibes/banner-disabled # or: "turn off the TTS banner" via MCP
450
+ ```
451
+
452
+ ### Quick Install
453
+
454
+ ```bash
455
+ npx agentvibes install
456
+ ```
457
+
458
+ 💡 **Tip:** If `npx agentvibes` shows an older version: `npm cache clean --force && npx agentvibes@latest`
459
+
460
+ 🐛 **Found a bug?** [GitHub Issues](https://github.com/paulpreibisch/AgentVibes/issues)
461
+
462
+ [→ View Complete Release Notes](RELEASE_NOTES.md) | [→ View Previous Release (v4.0.1)](https://github.com/paulpreibisch/AgentVibes/releases/tag/v4.0.1) | [→ View All Releases](https://github.com/paulpreibisch/AgentVibes/releases)
463
+
464
+ [↑ Back to top](#-table-of-contents)
465
+
466
+ ---
467
+
468
+ ## 🎙️ AgentVibes MCP
469
+
470
+ Agent Vibes was originally created to give the Claude Code assistant a voice! Simply install it with an npx command in your terminal, and Claude Code can talk back to you.
471
+
472
+ We've now enhanced this capability by adding an MCP (Model Context Protocol) server. This integration exposes Agent Vibes' functionality directly to your AI assistant, allowing you to configure and control Agent Vibes using natural language instead of typing "/" slash commands.
473
+
474
+ Setting it up is straightforward: just add the MCP server to your Claude Code configuration files.
475
+
476
+ But the convenience doesn't stop there. With the MCP server in place, Claude Desktop can now use Agent Vibes too! We've even tested it successfully with Warp, an AI assistant that helps you navigate Windows and other operating systems.
477
+
478
+ We're thrilled about this expansion because it means Claude Desktop and Warp can finally talk back as well!
479
+
480
+ If you decide to use the MCP server on Claude Desktop, after configuration, give Claude Desktop this command: "every time i give you a command, speak the acknowledgement using agentvibes and the confirmation about what you completed, when done"—and watch the magic happen!
481
+
482
+ **🎯 Control AgentVibes with natural language - no slash commands to remember!**
483
+
484
+ Just say "Switch to Aria voice" or "Speak in Spanish" instead of typing commands.
485
+
486
+ **Works in:** Claude Desktop, Claude Code, Warp Terminal
487
+
488
+ **[→ View Complete MCP Setup Guide](docs/mcp-setup.md)** - Full setup for all platforms, configuration examples, available tools, and MCP vs slash commands comparison
489
+
490
+ [↑ Back to top](#-table-of-contents)
491
+
492
+ ---
493
+
494
+ ## 🚀 Quick Start - Get Voice in 30 Seconds
495
+
496
+ **3 Simple Steps:**
497
+
498
+ ### 1️⃣ Install
499
+ ```bash
500
+ npx agentvibes install
501
+ ```
502
+
503
+ ### 2️⃣ Choose Provider (Auto-Detected)
504
+ - **macOS**: Native `say` provider (100+ voices) ✨
505
+ - **Linux/WSL**: Piper TTS (50+ free voices) 🎙️
506
+ - **Windows Native**: Soprano, Piper, or SAPI 🪟
507
+ - **Android**: Termux with auto-setup 📱
508
+
509
+ ### 3️⃣ Use in Claude Code
510
+ Just code normally - AgentVibes automatically speaks task acknowledgments and completions! 🔊
511
+
512
+ ---
513
+
514
+ ### TUI Console Commands
515
+
516
+ AgentVibes includes a full **Text User Interface (TUI)** built with blessed.js for managing voices, music, settings, and installation — all from a single interactive console.
517
+
518
+ | Command | Description |
519
+ |---------|-------------|
520
+ | `npx agentvibes` | Smart detection — opens Settings if installed, Install if not |
521
+ | `npx agentvibes install` | Open the Install tab directly |
522
+ | `npx agentvibes config` | Open the Settings tab directly |
523
+
524
+ Once inside, use **Tab** / **Shift+Tab** to switch between tabs: **Voices**, **Music**, **BMad**, **Settings**, **Receiver**, and **Install**. Use **[** / **]** to page through voice and music catalogs.
525
+
526
+ ---
527
+
528
+ **🍎 macOS Users (One-Time Setup):**
529
+ ```bash
530
+ brew install bash # Required for bash 5.x features
531
+ ```
532
+ macOS ships with bash 3.2 (from 2007). After this, everything works perfectly!
533
+
534
+ ---
535
+
536
+ **[→ Full Setup Guide](docs/quick-start.md)** - Advanced options, provider switching, and detailed setup
537
+
538
+ [↑ Back to top](#-table-of-contents)
539
+
540
+ [↑ Back to top](#-table-of-contents)
541
+
542
+ ---
543
+
544
+ ## 📋 Prerequisites - What You Actually Need
545
+
546
+ ### Minimum (Core Features)
547
+ **✅ REQUIRED:**
548
+ - **Node.js** ≥16.0 - Check with: `node --version`
549
+
550
+ ### Required for Full Features
551
+ **✅ STRONGLY RECOMMENDED:**
552
+ - **Python** 3.10+ - Needed for Piper TTS voice engine
553
+ - **bash** 5.0+ - macOS only (macOS ships with 3.2 from 2007)
554
+
555
+ ### Optional but Recommended
556
+ **⭕ OPTIONAL (TTS still works without them):**
557
+ - **sox** - Audio effects (reverb, EQ, pitch shifting)
558
+ - **ffmpeg** - Background music, audio padding, RDP compression
559
+
560
+ ### NOT Required (Despite What You've Heard)
561
+ **❌ DEFINITELY NOT NEEDED:**
562
+ - Git or git-lfs (npm handles everything)
563
+ - ❌ Repository cloning (unless you're contributing code)
564
+ - ❌ Build tools or C++ compilers (pre-built package ready to use)
565
+
566
+ ### Installation Methods
567
+
568
+ | Method | Command | Use Case |
569
+ |--------|---------|----------|
570
+ | **✅ RECOMMENDED: NPX (via npm)** | `npx agentvibes install` | **All platforms** - Just want to use AgentVibes |
571
+ | **🪟 Windows PowerShell** | `.\setup-windows.ps1` | **Windows** - Standalone installer (no Node.js needed) |
572
+ | **⚠️ Git Clone** | `git clone ...` | **Developers Only** - Contributing code |
573
+
574
+ **Why npx?** Zero git operations, no build steps, just 30 seconds to voice!
575
+
576
+ ### For Developers (Contributing Code)
577
+
578
+ If you want to contribute to AgentVibes:
579
+ ```bash
580
+ git clone https://github.com/paulpreibisch/AgentVibes.git
581
+ cd AgentVibes
582
+ npm install
583
+ npm link
584
+ ```
585
+
586
+ Requires: Node.js 16+, Git (no git-lfs), and `npm link` familiarity.
587
+
588
+ [↑ Back to top](#-table-of-contents)
589
+
590
+ ---
591
+
592
+ ---
593
+
594
+ ## 📱 Quick Setup: Android & Termux (Claude Code on Your Phone!)
595
+
596
+ **Want to run Claude Code on your Android phone with professional voices?**
597
+
598
+ Simply install Termux from F-Droid (NOT Google Play) and run:
599
+ ```bash
600
+ pkg update && pkg upgrade
601
+ pkg install nodejs-lts
602
+ npx agentvibes install
603
+ ```
604
+
605
+ Termux auto-detects and installs everything needed (proot-distro for compatibility, Piper TTS, audio playback).
606
+
607
+ **[→ Full Android/Termux Setup Guide](#-android--termux)** - Detailed troubleshooting and verification steps
608
+
609
+ [↑ Back to top](#-table-of-contents)
610
+
611
+ ---
612
+
613
+ ## 📋 System Requirements
614
+
615
+ AgentVibes requires certain system dependencies for optimal audio processing and playback. Requirements vary by operating system and TTS provider.
616
+
617
+ ### Core Requirements (All Platforms)
618
+
619
+ | Tool | Required For | Why It's Needed |
620
+ |------|-------------|-----------------|
621
+ | **Node.js** ≥16.0 | All platforms | Runtime for AgentVibes installer and MCP server |
622
+ | **Bash** ≥5.0 | macOS | Modern bash features (macOS ships with 3.2 from 2007) |
623
+ | **Python** 3.10+ | Piper TTS, MCP server | Runs Piper voice engine and MCP server |
624
+
625
+ ### Audio Processing Tools (Recommended)
626
+
627
+ | Tool | Status | Purpose | Impact if Missing |
628
+ |------|--------|---------|------------------|
629
+ | **sox** | Recommended | Audio effects (reverb, EQ, pitch, compression) | No audio effects, still works |
630
+ | **ffmpeg** | Recommended | Background music mixing, audio padding, RDP compression | No background music or RDP optimization |
631
+
632
+ ### Platform-Specific Requirements
633
+
634
+ #### 🐧 Linux / WSL
635
+
636
+ ```bash
637
+ # Ubuntu/Debian
638
+ sudo apt-get update
639
+ sudo apt-get install -y sox ffmpeg python3-pip pipx
640
+
641
+ # Fedora/RHEL
642
+ sudo dnf install -y sox ffmpeg python3-pip pipx
643
+
644
+ # Arch Linux
645
+ sudo pacman -S sox ffmpeg python-pip python-pipx
646
+ ```
647
+
648
+ **Audio Playback** (one of the following):
649
+ - `paplay` (PulseAudio - usually pre-installed)
650
+ - `aplay` (ALSA - fallback)
651
+ - `mpg123` (fallback)
652
+ - `mpv` (fallback)
653
+
654
+ **Why these tools?**
655
+ - **sox**: Applies audio effects defined in `.claude/config/audio-effects.cfg` (reverb, pitch shifting, EQ, compression)
656
+ - **ffmpeg**: Mixes background music tracks, adds silence padding to prevent audio cutoff, compresses audio for RDP/SSH sessions
657
+ - **paplay/aplay**: Plays generated TTS audio files
658
+ - **pipx**: Isolated Python environment manager for Piper TTS installation
659
+
660
+ #### 🍎 macOS
661
+
662
+ ```bash
663
+ # Install Homebrew if not already installed
664
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
665
+
666
+ # Required: Modern bash
667
+ brew install bash
668
+
669
+ # Recommended: Audio processing tools
670
+ brew install sox ffmpeg pipx
671
+ ```
672
+
673
+ **Audio Playback**:
674
+ - `afplay` (built-in - always available)
675
+ - `say` (built-in - for macOS TTS provider)
676
+
677
+ **Why these tools?**
678
+ - **bash 5.x**: macOS ships with bash 3.2 which lacks associative arrays and other modern features AgentVibes uses
679
+ - **sox**: Same audio effects processing as Linux
680
+ - **ffmpeg**: Same background music and padding as Linux
681
+ - **afplay**: Built-in macOS audio player
682
+ - **say**: Built-in macOS text-to-speech (alternative to Piper)
683
+
684
+ #### 🪟 Windows
685
+
686
+ **Option A: Native Windows (Recommended)**
687
+
688
+ AgentVibes now supports native Windows with three TTS providers. No WSL required!
689
+
690
+ ```powershell
691
+ # Interactive Node.js installer (recommended)
692
+ npx agentvibes install
693
+
694
+ # Or use the standalone PowerShell installer
695
+ .\setup-windows.ps1
696
+ ```
697
+
698
+ **Providers available natively:**
699
+ - **Soprano** - Ultra-fast neural TTS (best quality, requires `pip install soprano-tts`)
700
+ - **Windows Piper** - High quality offline neural voices (auto-downloaded)
701
+ - **Windows SAPI** - Built-in Windows voices (zero setup)
702
+
703
+ **Requirements:** Node.js 16+, PowerShell 5.1+, ffmpeg (optional, for background music & reverb)
704
+
705
+ See [Windows Native Setup Guide](WINDOWS-SETUP.md) for full instructions.
706
+
707
+ **Option B: WSL (Legacy)**
708
+
709
+ For Claude Desktop or WSL-based workflows, follow the [Windows WSL Guide](mcp-server/WINDOWS_SETUP.md).
710
+
711
+ ```powershell
712
+ # Install WSL from PowerShell (Administrator)
713
+ wsl --install -d Ubuntu
714
+ ```
715
+
716
+ Then follow Linux requirements above inside WSL.
717
+
718
+ #### 🤖 Android / Termux
719
+
720
+ **Running Claude Code on Your Android Using Termux**
721
+
722
+ AgentVibes fully supports Android devices through the [Termux app](https://termux.dev/). This enables you to run Claude Code with professional TTS voices directly on your Android phone or tablet!
723
+
724
+ **Quick Setup:**
725
+
726
+ ```bash
727
+ # 1. Install Termux from F-Droid (NOT Google Play - it's outdated)
728
+ # Download: https://f-droid.org/en/packages/com.termux/
729
+
730
+ # 2. Install Node.js in Termux
731
+ pkg update && pkg upgrade
732
+ pkg install nodejs-lts
733
+
734
+ # 3. Install AgentVibes (auto-detects Android and runs Termux installer)
735
+ npx agentvibes install
736
+ ```
737
+
738
+ **What Gets Installed?**
739
+
740
+ The Termux installer automatically sets up:
741
+ - **proot-distro** with Debian (for glibc compatibility)
742
+ - **Piper TTS** via proot wrapper (Android uses bionic libc, not glibc)
743
+ - **termux-media-player** for audio playback (`paplay` doesn't work on Android)
744
+ - **Audio dependencies**: ffmpeg, sox, bc for processing
745
+ - **termux-api** for Android-specific audio routing
746
+
747
+ **Why Termux Instead of Standard Installation?**
748
+
749
+ Android's architecture requires special handling:
750
+ - Standard pip/pipx fails (missing wheels for bionic libc)
751
+ - ❌ Linux binaries require glibc (Android uses bionic)
752
+ - ❌ `/tmp` directory is not accessible on Android
753
+ - Standard audio tools like `paplay` don't exist
754
+
755
+ Termux installer solves all these issues with proot-distro and Android-native audio playback!
756
+
757
+ **Requirements:**
758
+ - [Termux app](https://f-droid.org/en/packages/com.termux/) (from F-Droid, NOT Google Play)
759
+ - [Termux:API](https://f-droid.org/en/packages/com.termux.api/) (for audio playback)
760
+ - Android 7.0+ (recommended: Android 10+)
761
+ - ~500MB free storage (for Piper TTS + voice models)
762
+
763
+ **Audio Playback:**
764
+ - Uses `termux-media-player` instead of `paplay`
765
+ - Audio automatically routes through Android's media system
766
+ - Supports all Piper TTS voices (50+ languages)
767
+
768
+ **Verifying Your Setup:**
769
+
770
+ ```bash
771
+ # Check Termux environment
772
+ echo $PREFIX # Should show /data/data/com.termux/files/usr
773
+
774
+ # Check Node.js
775
+ node --version # Should be ≥16.0
776
+
777
+ # Check if Piper is installed
778
+ which piper # Should return /data/data/com.termux/files/usr/bin/piper
779
+
780
+ # Test audio playback
781
+ termux-media-player play /path/to/audio.wav
782
+ ```
783
+
784
+ **Troubleshooting:**
785
+
786
+ | Issue | Solution |
787
+ |-------|----------|
788
+ | "piper: not found" | Run `npx agentvibes install` - auto-detects Termux |
789
+ | No audio playback | Install Termux:API from F-Droid |
790
+ | Permission denied | Run `termux-setup-storage` to grant storage access |
791
+ | Slow installation | Use WiFi, not mobile data (~300MB download) |
792
+
793
+ **Why F-Droid and Not Google Play?**
794
+
795
+ Google Play's Termux version is outdated and unsupported. Always use the [F-Droid version](https://f-droid.org/en/packages/com.termux/) for the latest security updates and compatibility.
796
+
797
+ ### TTS Provider Requirements
798
+
799
+ #### Piper TTS (Free, Offline)
800
+ - **Python** 3.10+
801
+ - **pipx** (for isolated installation)
802
+ - **Disk Space**: ~50MB per voice model
803
+ - **Internet**: Only for initial voice downloads
804
+
805
+ ```bash
806
+ # Installed automatically by AgentVibes
807
+ pipx install piper-tts
808
+ ```
809
+
810
+ #### macOS Say (Built-in, macOS Only)
811
+ - No additional requirements
812
+ - 100+ voices pre-installed on macOS
813
+ - Use: `/agent-vibes:provider switch macos`
814
+
815
+ ### Verifying Your Setup
816
+
817
+ ```bash
818
+ # Check all dependencies
819
+ node --version # Should be ≥16.0
820
+ python3 --version # Should be ≥3.10
821
+ bash --version # Should be ≥5.0 (macOS users!)
822
+ sox --version # Optional but recommended
823
+ ffmpeg -version # Optional but recommended
824
+ pipx --version # Required for Piper TTS
825
+
826
+ # Check audio playback (Linux/WSL)
827
+ paplay --version || aplay --version
828
+
829
+ # Check audio playback (macOS)
830
+ which afplay # Should return /usr/bin/afplay
831
+ ```
832
+
833
+ ### What Happens Without Optional Dependencies?
834
+
835
+ | Missing Tool | Impact | Workaround |
836
+ |-------------|--------|------------|
837
+ | sox | No audio effects (reverb, EQ, pitch) | TTS still works, just no effects |
838
+ | ffmpeg | No background music, no audio padding | TTS still works, audio may cut off slightly early |
839
+ | paplay/aplay | No audio playback on Linux | Install at least one audio player |
840
+
841
+ **All TTS generation still works** - optional tools only enhance the experience!
842
+
843
+ [↑ Back to top](#-table-of-contents)
844
+
845
+ ---
846
+
847
+ ## 🎭 Choose Your Voice Provider
848
+
849
+ **Piper TTS** (free, works offline on Linux/WSL) or **macOS Say** (free, built-in on Mac) - pick one and switch anytime.
850
+
851
+ | Provider | Platform | Cost | Quality | Setup |
852
+ |----------|----------|------|---------|-------|
853
+ | **macOS Say** | macOS only | Free (built-in) | ⭐⭐⭐⭐ | Zero config |
854
+ | **Piper** | Linux/WSL/Windows | Free | ⭐⭐⭐⭐ | Auto-downloads |
855
+ | **Soprano** | Linux/WSL/Windows | Free | ⭐⭐⭐⭐⭐ | `pip install soprano-tts` |
856
+ | **Windows SAPI** | Windows | Free (built-in) | ⭐⭐⭐ | Zero config |
857
+
858
+ On macOS, the native `say` provider is automatically detected and recommended!
859
+
860
+ **[→ Provider Comparison Guide](docs/providers.md)**
861
+
862
+ [↑ Back to top](#-table-of-contents)
863
+
864
+ ---
865
+
866
+ ## 🎤 Commands Reference
867
+
868
+ AgentVibes provides **50+ slash commands** and **natural language MCP equivalents**.
869
+
870
+ **Quick Examples:**
871
+ ```bash
872
+ # Voice control
873
+ /agent-vibes:switch Aria # Or: "Switch to Aria voice"
874
+ /agent-vibes:list # Or: "List all voices"
875
+
876
+ # Personality & sentiment
877
+ /agent-vibes:personality pirate # Or: "Set personality to pirate"
878
+ /agent-vibes:sentiment sarcastic # Or: "Apply sarcastic sentiment"
879
+
880
+ # Language & learning
881
+ /agent-vibes:set-language spanish # Or: "Speak in Spanish"
882
+ /agent-vibes:learn # Or: "Enable learning mode"
883
+ ```
884
+
885
+ **[→ View Complete Command Reference](docs/commands.md)** - All voice, system, personality, sentiment, language, and BMAD commands with MCP equivalents
886
+
887
+ ### Intro Text Commands
888
+
889
+ ```bash
890
+ # Configure intro text — open Settings tab
891
+ npx agentvibes
892
+
893
+ # View current intro text
894
+ cat ~/.claude/config/intro-text.txt
895
+ ```
896
+
897
+ **MCP Equivalent:**
898
+ ```
899
+ "Set my intro text to 'FireBot: '"
900
+ "What's my current intro text?"
901
+ "Clear my intro text"
902
+ ```
903
+
904
+ ### Custom Music Commands
905
+
906
+ ```bash
907
+ # Configure background music — open Music tab
908
+ npx agentvibes
909
+ ```
910
+
911
+ **MCP Equivalent:**
912
+ ```
913
+ "Configure my background music"
914
+ "Add custom background music"
915
+ "Remove custom music"
916
+ "Preview my background music"
917
+ ```
918
+
919
+ ### Friendly Voice Name Commands
920
+
921
+ ```bash
922
+ # Switch using friendly name
923
+ /agent-vibes:switch Ryan
924
+ /agent-vibes:switch Sarah
925
+
926
+ # List all voices with friendly names
927
+ /agent-vibes:list
928
+
929
+ # Get current voice (shows friendly name if available)
930
+ /agent-vibes:whoami
931
+ ```
932
+
933
+ **MCP Equivalent:**
934
+ ```
935
+ "Switch to Ryan voice"
936
+ "Use the Sarah voice"
937
+ "List all available voices"
938
+ ```
939
+
940
+ [↑ Back to top](#-table-of-contents)
941
+
942
+ ---
943
+
944
+ ## 🎙️ Verbosity Control
945
+
946
+ **Control how much Claude speaks while working!** 🔊
947
+
948
+ Choose from three verbosity levels:
949
+
950
+ ### LOW (Minimal) 🔇
951
+ - Acknowledgments only (start of task)
952
+ - Completions only (end of task)
953
+ - Perfect for quiet work sessions
954
+
955
+ ### MEDIUM (Balanced) 🤔
956
+ - Acknowledgments + completions
957
+ - Major decisions ("I'll use grep to search")
958
+ - Key findings ("Found 12 instances")
959
+ - Perfect for understanding decisions without full narration
960
+
961
+ ### HIGH (Maximum Transparency) 💭
962
+ - All reasoning ("Let me search for all instances")
963
+ - All decisions ("I'll use grep for this")
964
+ - All findings ("Found it at line 1323")
965
+ - Perfect for learning mode, debugging complex tasks
966
+
967
+ **Quick Commands:**
968
+ ```bash
969
+ /agent-vibes:verbosity # Show current level
970
+ /agent-vibes:verbosity high # Maximum transparency
971
+ /agent-vibes:verbosity medium # Balanced
972
+ /agent-vibes:verbosity low # Minimal (default)
973
+ ```
974
+
975
+ **MCP Equivalent:**
976
+ ```
977
+ "Set verbosity to high"
978
+ "What's my current verbosity level?"
979
+ ```
980
+
981
+ 💡 **How it works:** Claude uses emoji markers (💭 🤔 ✓) in its text, and AgentVibes automatically detects and speaks them based on your verbosity level. No manual TTS calls needed!
982
+
983
+ ⚠️ **Note:** Changes take effect on next Claude Code session restart.
984
+
985
+ [↑ Back to top](#-table-of-contents)
986
+
987
+ ---
988
+
989
+ ## 📚 Language Learning Mode
990
+
991
+ **🎯 Learn Spanish (or 30+ languages) while you program!** 🌍
992
+
993
+ Every task acknowledgment plays **twice** - first in English, then in your target language. Context-based learning while you code!
994
+
995
+ **[→ View Complete Learning Mode Guide](docs/language-learning-mode.md)** - Full tutorial, quick start, commands, speech rate control, supported languages, and pro tips
996
+
997
+ [↑ Back to top](#-table-of-contents)
998
+
999
+ ---
1000
+
1001
+ ## 🎭 Personalities vs Sentiments
1002
+
1003
+ **Two ways to add personality:**
1004
+
1005
+ - **🎪 Personalities** - Changes BOTH voice AND speaking style (e.g., `pirate` personality = Pirate Marshal voice + pirate speak)
1006
+ - **💭 Sentiments** - Keeps your current voice, only changes speaking style (e.g., Aria voice + sarcastic sentiment)
1007
+
1008
+ **[→ Complete Personalities Guide](docs/personalities.md)** - All 19 personalities, create custom ones
1009
+
1010
+ [↑ Back to top](#-table-of-contents)
1011
+
1012
+ ---
1013
+
1014
+ ## 🗣️ Voice Library
1015
+
1016
+ Use the **AgentVibes TUI installer** (`/audio-browser`) to browse, sample, and install from 914 voices interactively.
1017
+
1018
+ ### Friendly Voice Names
1019
+
1020
+ All voices now have memorable names! Instead of technical IDs like `en_US-libritts_r-medium-speaker-123`, just use friendly names like **Ryan**, **Joe**, or **Sarah**.
1021
+
1022
+ **Voice Metadata Includes:**
1023
+ - Display name and technical ID
1024
+ - Gender, accent, and region
1025
+ - Personality traits (professional, warm, friendly, etc.)
1026
+ - Recommended use cases
1027
+ - Quality rating and sample rate
1028
+
1029
+ ### Voice Categories
1030
+
1031
+ **Curated Voices** (10 personalities):
1032
+ These hand-picked voices cover common use cases with clear characteristics.
1033
+
1034
+ **Speaker Variations** (904 voices):
1035
+ High-quality Piper TTS voices from the libritts-high model. Each speaker has unique vocal characteristics, accents, and tones.
1036
+
1037
+ ### Popular Voices
1038
+
1039
+ AgentVibes includes professional AI voices from Piper TTS and macOS Say with multilingual support.
1040
+
1041
+ 🎧 **Try in Claude Code:** `/agent-vibes:preview` to hear all voices
1042
+ 🌍 **Multilingual:** Use Antoni, Rachel, Domi, or Bella for automatic language detection
1043
+
1044
+ **[→ View Complete Voice Library](docs/voice-library.md)** - All voices with clickable samples, descriptions, and best use cases
1045
+
1046
+ [↑ Back to top](#-table-of-contents)
1047
+
1048
+ ---
1049
+
1050
+ ## 🔌 BMAD Plugin
1051
+
1052
+ **Automatically switch voices when using BMAD agents!**
1053
+
1054
+ The BMAD plugin detects when you activate a BMAD agent (e.g., `/BMad:agents:pm`) and automatically uses the assigned voice for that role.
1055
+
1056
+ **Version Support**: AgentVibes supports both BMAD v4 and v6-alpha installations. Version detection is automatic - just install BMAD and AgentVibes will detect and configure itself correctly!
1057
+
1058
+ ### 🔊 TTS Injection: How It Works
1059
+
1060
+ BMAD uses a **loosely-coupled injection system** for voice integration. BMAD source files contain placeholder markers that AgentVibes replaces with speaking instructions during installation:
1061
+
1062
+ **Before Installation (BMAD Source):**
1063
+ ```xml
1064
+ <rules>
1065
+ <r>ALWAYS communicate in {communication_language}...</r>
1066
+ <!-- TTS_INJECTION:agent-tts -->
1067
+ <r>Stay in character until exit selected</r>
1068
+ </rules>
1069
+ ```
1070
+
1071
+ **After Installation (with AgentVibes enabled):**
1072
+ ```xml
1073
+ <rules>
1074
+ <r>ALWAYS communicate in {communication_language}...</r>
1075
+ - When responding to user messages, speak your responses using TTS:
1076
+ Call: `.claude/hooks/bmad-speak.sh '{agent-id}' '{response-text}'`
1077
+ Where {agent-id} is your agent type (pm, architect, dev, etc.)
1078
+
1079
+ - Auto Voice Switching: AgentVibes automatically switches to the voice
1080
+ assigned for your agent role when activated
1081
+ <r>Stay in character until exit selected</r>
1082
+ </rules>
1083
+ ```
1084
+
1085
+ **After Installation (with TTS disabled):**
1086
+ ```xml
1087
+ <rules>
1088
+ <r>ALWAYS communicate in {communication_language}...</r>
1089
+ <r>Stay in character until exit selected</r>
1090
+ </rules>
1091
+ ```
1092
+
1093
+ This design means **any TTS provider** can integrate with BMAD by replacing these markers with their own instructions!
1094
+
1095
+ **[→ View Complete BMAD Documentation](docs/bmad-plugin.md)** - All agent mappings, language support, TTS injection details, plugin management, and customization
1096
+
1097
+ [↑ Back to top](#-table-of-contents)
1098
+
1099
+ ---
1100
+
1101
+ ## 🤖 OpenClaw Integration
1102
+
1103
+ **Use AgentVibes TTS with OpenClaw - the revolutionary AI assistant you can access via any instant messenger!**
1104
+
1105
+ **What is OpenClaw?** [OpenClaw](https://openclaw.ai/) is a revolutionary AI assistant that brings Claude AI to your favorite messaging platforms - WhatsApp, Telegram, Discord, and more. No apps to install, no websites to visit - just message your AI assistant like you would a friend.
1106
+
1107
+ 🌐 **Website**: https://openclaw.ai/
1108
+
1109
+ AgentVibes seamlessly integrates with OpenClaw, providing professional text-to-speech for AI assistants running on messaging platforms and remote servers.
1110
+
1111
+ ### 🚨 CRITICAL: Security Before Running OpenClaw on Any Remote Server
1112
+
1113
+ ⚠️ **SECURITY IS NOT OPTIONAL** - Running OpenClaw on a remote server exposes your infrastructure to attack vectors including SSH compromise, credential theft, and lateral movement.
1114
+
1115
+ **👉 READ THIS FIRST:** [Security Hardening Guide](docs/security-hardening-guide.md) - **Required reading** covering:
1116
+ - SSH hardening (key-only auth, port 2222, fail2ban)
1117
+ - ✅ Firewall configuration (UFW/iptables)
1118
+ - ✅ Intrusion detection (AIDE, Wazuh)
1119
+ - VPN tunneling (Tailscale alternative to direct SSH)
1120
+
1121
+ **Do not expose your OpenClaw server to the internet without reading this guide.**
1122
+
1123
+ ### 🎯 Key Benefits
1124
+
1125
+ - **Free & Offline**: No API costs, works without internet
1126
+ - **Remote SSH Audio**: Audio tunnels from server to local machine via PulseAudio
1127
+ - **50+ Voices**: Professional AI voices in 30+ languages
1128
+ - **Zero Config**: Automatic when AgentVibes is installed
1129
+
1130
+ ### 🚀 Installation
1131
+
1132
+ AgentVibes includes a ready-to-use OpenClaw skill that enables TTS on messaging platforms. The setup involves two components:
1133
+
1134
+ #### Component 1: OpenClaw Server (Remote)
1135
+
1136
+ Install AgentVibes on your OpenClaw server:
1137
+
1138
+ ```bash
1139
+ # On your remote server where OpenClaw is running
1140
+ npx agentvibes install
1141
+ ```
1142
+
1143
+ The OpenClaw skill is **automatically included** in the AgentVibes npm package at `.clawdbot/skill/SKILL.md`.
1144
+
1145
+ **How to activate the skill in OpenClaw:**
1146
+
1147
+ 1. **Locate the skill** - After installing AgentVibes, the skill is at:
1148
+ ```
1149
+ node_modules/agentvibes/.clawdbot/skill/SKILL.md
1150
+ ```
1151
+
1152
+ 2. **Link to OpenClaw skills directory** (if OpenClaw uses skills):
1153
+ ```bash
1154
+ # Example - adjust path based on your OpenClaw installation
1155
+ ln -s $(npm root -g)/agentvibes/.clawdbot/skill/SKILL.md ~/.openclaw/skills/agentvibes.md
1156
+ ```
1157
+
1158
+ 3. **OpenClaw auto-detection** - Many OpenClaw setups automatically detect AgentVibes when it's installed. Check your OpenClaw logs for:
1159
+ ```
1160
+ ✓ AgentVibes skill detected and loaded
1161
+ ```
1162
+
1163
+ ---
1164
+
1165
+ #### 🎙️ AgentVibes Voice Management Skill for OpenClaw
1166
+
1167
+ Manage your text-to-speech voices across multiple providers with the AgentVibes Voice Management Skill:
1168
+
1169
+ **Voice Management Features:**
1170
+ - 🎤 **50+ Professional Voices** - Across Piper TTS, Piper (free offline), and macOS Say providers
1171
+ - 🔀 **Multi-Provider Support** - Switch between Piper TTS (premium), Piper (free), and macOS Say
1172
+ - 👂 **Voice Preview** - Listen to voices before selecting them
1173
+ - 🎚️ **Voice Customization** - Add custom voices, set pretext, control speech rate
1174
+ - 📋 **Voice Management** - List, switch, replay, and manage your voice library
1175
+ - 🔇 **Mute Control** - Mute/unmute TTS output with persistent settings
1176
+ - 🌍 **Multilingual Support** - Voices in 30+ languages across all providers
1177
+
1178
+ **Installation Confirmation:**
1179
+ The skill is **automatically included** in the AgentVibes npm package at:
1180
+ ```
1181
+ node_modules/agentvibes/.clawdbot/skill/SKILL.md
1182
+ ```
1183
+
1184
+ No extra setup needed - when you run `npx agentvibes install` on your OpenClaw server, the skill is ready to use!
1185
+
1186
+ **Full Skill Documentation:**
1187
+ **[→ View Complete AgentVibes Skill Guide](.clawdbot/skill/SKILL.md)** - 430+ lines covering:
1188
+ - Quick start with 50+ voice options
1189
+ - Background music & effects management
1190
+ - Personality system (19+ styles)
1191
+ - Voice effects (reverb, reverb, EQ)
1192
+ - Speed & verbosity control
1193
+ - Remote SSH audio setup
1194
+ - Troubleshooting & complete reference
1195
+
1196
+ **Popular Voice Examples:**
1197
+ ```bash
1198
+ # Female voices
1199
+ npx agentvibes speak "Hello" --voice en_US-amy-medium
1200
+ npx agentvibes speak "Bonjour" --voice fr_FR-siwis-medium
1201
+
1202
+ # Male voices
1203
+ npx agentvibes speak "Hello" --voice en_US-lessac-medium
1204
+ npx agentvibes speak "Good day" --voice en_GB-alan-medium
1205
+
1206
+ # Add personality!
1207
+ bash ~/.claude/hooks/personality-manager.sh set sarcastic
1208
+ bash ~/.claude/hooks/play-tts.sh "Oh wonderful, another request"
1209
+ ```
1210
+
1211
+ ---
1212
+
1213
+ #### Component 2: AgentVibes Receiver (Local/Phone) ⚠️ REQUIRED
1214
+
1215
+ **CRITICAL: You MUST install AgentVibes on your phone (or local machine) to receive and play audio!**
1216
+
1217
+ Without this, audio cannot be heard - the server generates TTS but needs a receiver to play it.
1218
+
1219
+ **Install on Android Phone (Termux):**
1220
+
1221
+ 1. **Install Termux from F-Droid** (NOT Google Play):
1222
+ - Download: https://f-droid.org/en/packages/com.termux/
1223
+
1224
+ 2. **Install Node.js in Termux:**
1225
+ ```bash
1226
+ pkg update && pkg upgrade
1227
+ pkg install nodejs-lts
1228
+ ```
1229
+
1230
+ 3. **Install AgentVibes in Termux:**
1231
+ ```bash
1232
+ npx agentvibes install
1233
+ ```
1234
+
1235
+ 4. **Install Termux:API** (for audio playback):
1236
+ - Download: https://f-droid.org/en/packages/com.termux.api/
1237
+ - Then in Termux: `pkg install termux-api`
1238
+
1239
+ **Install on Local Mac/Linux:**
1240
+
1241
+ ```bash
1242
+ npx agentvibes install
1243
+ ```
1244
+
1245
+ **Why is this needed?**
1246
+ - The **server generates TTS** but has no speakers (headless)
1247
+ - AgentVibes on your **phone acts as the audio receiver** via SSH tunnel
1248
+ - Audio tunnels from server → SSH → phone → speakers 🔊
1249
+
1250
+ Without AgentVibes installed on the receiving device, you'll generate audio but hear nothing!
1251
+
1252
+ #### How It Works: Server → SSH Tunnel → Local Playback
1253
+
1254
+ ```
1255
+ ┌─────────────────────────────────────────────────────────┐
1256
+ │ 1. User messages OpenClaw via Telegram/WhatsApp │
1257
+ │ "Tell me about the weather" │
1258
+ └─────────────────────────────────────────────────────────┘
1259
+
1260
+ ┌─────────────────────────────────────────────────────────┐
1261
+ │ 2. OpenClaw (Server) processes request with Claude │
1262
+ │ AgentVibes skill generates TTS audio
1263
+ └─────────────────────────────────────────────────────────┘
1264
+
1265
+ ┌─────────────────────────────────────────────────────────┐
1266
+ │ 3. Audio tunnels through SSH → PulseAudio (port 14713)│
1267
+ │ Server: PULSE_SERVER=tcp:localhost:14713 │
1268
+ └─────────────────────────────────────────────────────────┘
1269
+
1270
+ ┌─────────────────────────────────────────────────────────┐
1271
+ │ 4. Local AgentVibes receives and plays audio │
1272
+ │ Phone speakers, laptop speakers, etc. │
1273
+ │ 🔊 "The weather is sunny and 72 degrees" │
1274
+ └─────────────────────────────────────────────────────────┘
1275
+ ```
1276
+
1277
+ **Architecture:**
1278
+ - **Server (OpenClaw)**: Generates TTS, sends via PulseAudio
1279
+ - **SSH Tunnel**: RemoteForward port 14713 (encrypted transport)
1280
+ - **Local (Termux/Desktop)**: AgentVibes receives audio, plays on speakers
1281
+
1282
+ This creates a **Siri-like experience** - message from anywhere, hear responses on your phone! 📱🎤
1283
+
1284
+ ### 📝 Usage
1285
+
1286
+ #### Basic TTS Commands
1287
+
1288
+ ```bash
1289
+ # Basic TTS
1290
+ npx agentvibes speak "Hello from OpenClaw"
1291
+
1292
+ # With different voices
1293
+ npx agentvibes speak "Hello" --voice en_US-amy-medium
1294
+ npx agentvibes speak "Bonjour" --voice fr_FR-siwis-medium
1295
+
1296
+ # List available voices
1297
+ npx agentvibes voices
1298
+ ```
1299
+
1300
+ #### Advanced: Direct Hook Usage with Voice Override
1301
+
1302
+ For programmatic control, use the TTS hook directly:
1303
+
1304
+ ```bash
1305
+ # Basic: Use default voice
1306
+ bash ~/.claude/hooks/play-tts.sh "Hello from OpenClaw"
1307
+
1308
+ # Advanced: Override voice per message
1309
+ bash ~/.claude/hooks/play-tts.sh "Welcome message" "en_US-amy-medium"
1310
+ bash ~/.claude/hooks/play-tts.sh "Bonjour!" "fr_FR-siwis-medium"
1311
+ bash ~/.claude/hooks/play-tts.sh "British greeting" "en_GB-alan-medium"
1312
+ ```
1313
+
1314
+ **Parameters:**
1315
+ - `$1` - **TEXT** (required): Message to speak
1316
+ - `$2` - **VOICE** (optional): Voice name to override default
1317
+
1318
+ #### Audio Effects Configuration for OpenClaw
1319
+
1320
+ **File**: `.claude/config/audio-effects.cfg`
1321
+
1322
+ Customize audio effects, background music, and voice processing per agent or use default settings:
1323
+
1324
+ **Format:**
1325
+ ```
1326
+ AGENT_NAME|SOX_EFFECTS|BACKGROUND_FILE|BACKGROUND_VOLUME
1327
+ ```
1328
+
1329
+ **Example Configuration:**
1330
+
1331
+ ```bash
1332
+ # Default - subtle background music
1333
+ default||agentvibes_soft_flamenco_loop.mp3|0.30
1334
+
1335
+ # Custom agent with reverb + background
1336
+ MyAgent|reverb 40 50 90 gain -2|agentvibes_soft_flamenco_loop.mp3|0.20
1337
+
1338
+ # Agent with pitch shift and EQ
1339
+ Assistant|pitch -100 equalizer 3000 1q +2|agentvibes_dark_chill_step_loop.mp3|0.15
1340
+ ```
1341
+
1342
+ **Available SOX Effects:**
1343
+
1344
+ | Effect | Syntax | Example | Description |
1345
+ |--------|--------|---------|-------------|
1346
+ | **Reverb** | `reverb <reverberance> <HF-damping> <room-scale>` | `reverb 40 50 90` | Adds room ambiance (light: 30 40 70, heavy: 50 60 100) |
1347
+ | **Pitch** | `pitch <cents>` | `pitch -100` | Shift pitch (100 cents = 1 semitone, negative = lower) |
1348
+ | **Equalizer** | `equalizer <freq> <width>q <gain-dB>` | `equalizer 3000 1q +2` | Boost/cut frequencies (bass: 200Hz, treble: 4000Hz) |
1349
+ | **Gain** | `gain <dB>` | `gain -2` | Adjust volume (negative = quieter, positive = louder) |
1350
+ | **Compand** | `compand <attack,decay> <threshold:in,out>` | `compand 0.3,1 6:-70,-60,-20` | Dynamic range compression (makes quiet parts louder) |
1351
+
1352
+ **Background Music Tracks:**
1353
+
1354
+ Built-in tracks available in `.claude/audio/tracks/`:
1355
+ - `agentvibes_soft_flamenco_loop.mp3` - Warm, rhythmic flamenco
1356
+ - `agentvibes_dark_chill_step_loop.mp3` - Modern chill electronic
1357
+ - (50+ additional tracks available)
1358
+
1359
+ **Background Volume:**
1360
+ - `0.10` - Very subtle (10%)
1361
+ - `0.20` - Subtle (20%)
1362
+ - `0.30` - Moderate (30%, recommended default)
1363
+ - `0.40` - Noticeable (40%, party mode)
1364
+
1365
+ **Example: OpenClaw Custom Configuration**
1366
+
1367
+ Create `.claude/config/audio-effects.cfg` on your OpenClaw server:
1368
+
1369
+ ```bash
1370
+ # OpenClaw assistant - warm voice with subtle reverb
1371
+ OpenClaw|reverb 30 40 70 gain -1|agentvibes_soft_flamenco_loop.mp3|0.25
1372
+
1373
+ # Help desk agent - clear, bright voice
1374
+ HelpDesk|equalizer 4000 1q +3 compand 0.2,0.5 6:-70,-60,-20|agentvibes_dark_chill_step_loop.mp3|0.15
1375
+
1376
+ # Default fallback
1377
+ default||agentvibes_soft_flamenco_loop.mp3|0.30
1378
+ ```
1379
+
1380
+ **How AgentVibes Applies Effects:**
1381
+
1382
+ 1. **Generate TTS** - Create base audio with Piper TTS
1383
+ 2. **Apply SOX effects** - Process audio (reverb, EQ, pitch, etc.)
1384
+ 3. **Mix background** - Blend background music at specified volume
1385
+ 4. **Tunnel via SSH** - Send processed audio to local receiver
1386
+ 5. **Play on device** - Output to phone/laptop speakers
1387
+
1388
+ This allows **per-message customization** or **consistent agent branding** with unique audio signatures!
1389
+
1390
+ ### 🔊 Remote SSH Audio
1391
+
1392
+ Perfect for running OpenClaw on a remote server with audio on your local machine:
1393
+
1394
+ **Quick Setup:**
1395
+
1396
+ 1. **Remote server** - Configure PulseAudio:
1397
+ ```bash
1398
+ echo 'export PULSE_SERVER=tcp:localhost:14713' >> ~/.bashrc
1399
+ source ~/.bashrc
1400
+ ```
1401
+
1402
+ 2. **Local machine** - Add SSH tunnel (`~/.ssh/config`):
1403
+ ```
1404
+ Host your-server
1405
+ RemoteForward 14713 localhost:14713
1406
+ ```
1407
+
1408
+ 3. **Connect and test**:
1409
+ ```bash
1410
+ ssh your-server
1411
+ agentvibes speak "Testing remote audio from OpenClaw"
1412
+ ```
1413
+
1414
+ Audio plays on your local speakers! 🔊
1415
+
1416
+ ### 📚 Documentation
1417
+
1418
+ - **OpenClaw Skill**: [.clawdbot/README.md](.clawdbot/README.md)
1419
+ - **OpenClaw Website**: https://openclaw.ai/
1420
+ - **Remote Audio Setup**: [docs/remote-audio-setup.md](docs/remote-audio-setup.md)
1421
+ - **Security Hardening**: [docs/security-hardening-guide.md](docs/security-hardening-guide.md) ⚠️
1422
+
1423
+ [↑ Back to top](#-table-of-contents)
1424
+
1425
+ ---
1426
+
1427
+ ## 🎙️ AgentVibes Receiver: Remote Audio Streaming from Voiceless Servers
1428
+
1429
+ **Receive and play TTS audio from servers that have no audio output!**
1430
+
1431
+ AgentVibes Receiver is a lightweight audio client that runs on your phone, tablet, or personal computer, which receives TTS audio from remote voiceless servers, where your OpenClaw Personal Assistant or your Claude Code project is installed.
1432
+
1433
+ ### 🎯 What AgentVibes Receiver Solves
1434
+
1435
+ You have OpenClaw running on a Mac mini or remote server with **no audio output**:
1436
+ - 🖥️ Mac mini (silent)
1437
+ - 🖥️ Ubuntu server (headless)
1438
+ - ☁️ AWS/DigitalOcean instance
1439
+ - 📦 Docker container
1440
+ - 🪟 WSL (Windows Subsystem for Linux)
1441
+
1442
+ Users message you via WhatsApp, Telegram, Discord but only get text responses:
1443
+ - No voice = Less engaging experience
1444
+ - ❌ No personality = Feels robotic
1445
+ - No audio cues = Miss important context
1446
+
1447
+ **AgentVibes Receiver transforms this:**
1448
+ - ✅ OpenClaw speaks with voice (Siri-like experience)
1449
+ - Audio streams to your device automatically
1450
+ - ✅ You hear responses on your speakers
1451
+ - Users get a conversational AI experience
1452
+
1453
+ ### 🔧 How It Works
1454
+
1455
+ **One-time setup:**
1456
+ 1. Install AgentVibes on your voiceless server with OpenClaw
1457
+ 2. Install AgentVibes Receiver on your personal device (phone/tablet/laptop)
1458
+ 3. Connect via SSH tunnel (or Tailscale VPN)
1459
+ 4. Done - automatic from then on
1460
+
1461
+ **Flow diagram:**
1462
+ ```
1463
+ ┌──────────────────────────────────────────┐
1464
+ │ Your Mac mini / Server │
1465
+ (OpenClaw + AgentVibes)
1466
+ │ • Generates TTS audio │
1467
+ Sends via SSH tunnel │
1468
+ └──────────────────────────────────────────┘
1469
+ ↓ Encrypted SSH tunnel
1470
+ ┌──────────────────────────────────────────┐
1471
+ Your Phone / Laptop │
1472
+ │ (AgentVibes Receiver) │
1473
+ Receives audio stream (or text stream) │
1474
+ │ • Auto-plays on device speakers │
1475
+ └──────────────────────────────────────────┘
1476
+ ```
1477
+
1478
+ **Real-world example:**
1479
+ ```
1480
+ 📱 WhatsApp: "Tell me about quantum computing"
1481
+
1482
+ 🖥️ Mac mini: OpenClaw processes + generates TTS
1483
+ ↓ SSH tunnel (audio or text stream)
1484
+ 📱 Your phone (Agent Vibes Receiver): Plays audio 🔊
1485
+
1486
+ You hear on your device speakers: "Quantum computing uses quantum bits..."
1487
+
1488
+ 💬 Conversation feels alive!
1489
+ ```
1490
+
1491
+ ### Key Features
1492
+
1493
+ | Feature | Benefit |
1494
+ |---------|---------|
1495
+ | **One-Time Pairing** | SSH key setup, automatic reconnect |
1496
+ | **Real-Time Streaming** | Low-latency audio playback |
1497
+ | **SSH Encryption** | Secure audio tunnel |
1498
+ | **Tailscale Support** | Easy VPN for remote servers |
1499
+ | **Voice Selection** | Configure server-side voice |
1500
+ | **Audio Effects** | Reverb, echo, pitch on server |
1501
+ | **Cache Tracking** | Monitor audio generation |
1502
+ | **Multiple Servers** | Connect to different OpenClaw instances |
1503
+
1504
+ ### 🚀 Perfect For
1505
+
1506
+ - 🖥️ **Mac mini + OpenClaw** - Home server with professional voices
1507
+ - ☁️ **Remote Servers** - OpenClaw on AWS/GCP/DigitalOcean
1508
+ - 📱 **WhatsApp/Telegram** - Users message, hear responses
1509
+ - 🎓 **Discord Bots** - Bot speaks with voices
1510
+ - 🏗️ **Docker/Containers** - Containerized OpenClaw with audio
1511
+ - 🔧 **WSL Development** - Windows developers using voiceless WSL
1512
+
1513
+ ### 📝 Setup
1514
+
1515
+ ```bash
1516
+ # On your server (Mac mini, Ubuntu, AWS, etc.)
1517
+ npx agentvibes install
1518
+ # Selects OpenClaw option
1519
+ # AgentVibes installs with SSH-Remote provider
1520
+
1521
+ # On your personal device (phone, laptop, tablet)
1522
+ npx agentvibes receiver setup
1523
+ # Pairing prompt with server SSH key
1524
+ # Done!
1525
+ ```
1526
+
1527
+ ### 📚 Documentation
1528
+
1529
+ **[→ View AgentVibes Receiver Setup Guide](docs/agentvibes-receiver.md)** - Pairing, SSH configuration, Tailscale setup, troubleshooting
1530
+
1531
+ **[→ View OpenClaw Integration Guide](docs/openclaw-integration.md)** - Server setup, voice configuration, audio effects, and best practices
1532
+
1533
+ [↑ Back to top](#-table-of-contents)
1534
+
1535
+ ---
1536
+
1537
+ ## 📦 Installation Structure
1538
+
1539
+ **What gets installed:** Commands, hooks, personalities, and plugins in `.claude/` directory.
1540
+
1541
+ **[→ View Complete Installation Structure](docs/installation-structure.md)** - Full directory tree, file descriptions, and settings storage
1542
+
1543
+ [↑ Back to top](#-table-of-contents)
1544
+
1545
+ ---
1546
+
1547
+ ## 💡 Common Workflows
1548
+
1549
+ ```bash
1550
+ # Switch voices
1551
+ /agent-vibes:list # See all voices
1552
+ /agent-vibes:switch Aria # Change voice
1553
+
1554
+ # Try personalities
1555
+ /agent-vibes:personality pirate # Pirate voice + style
1556
+ /agent-vibes:personality list # See all 19 personalities
1557
+
1558
+ # Speak in other languages
1559
+ /agent-vibes:set-language spanish # Speak in Spanish
1560
+ /agent-vibes:set-language list # See 30+ languages
1561
+
1562
+ # Replay audio
1563
+ /agent-vibes:replay # Replay last message
1564
+ ```
1565
+
1566
+ **💡 Tip:** Using MCP? Just say "Switch to Aria voice" or "Speak in Spanish" instead of typing commands.
1567
+
1568
+ [↑ Back to top](#-table-of-contents)
1569
+
1570
+ ---
1571
+
1572
+ ## 🔧 Advanced Features
1573
+
1574
+ AgentVibes supports **custom personalities** and **custom voices**.
1575
+
1576
+ **Quick Examples:**
1577
+ ```bash
1578
+ # Create custom personality
1579
+ /agent-vibes:personality add mycustom
1580
+
1581
+ # Add custom Piper voice
1582
+ /agent-vibes:add "My Voice" abc123xyz789
1583
+
1584
+ # Use in custom output styles
1585
+ [Bash: .claude/hooks/play-tts.sh "Starting" "Aria"]
1586
+ ```
1587
+
1588
+ **[→ View Advanced Features Guide](docs/advanced-features.md)** - Custom personalities, custom voices, and more
1589
+
1590
+ [↑ Back to top](#-table-of-contents)
1591
+
1592
+ ---
1593
+
1594
+ ## 🔊 Remote Audio Setup
1595
+
1596
+ **Running AgentVibes on a remote server?** No problem!
1597
+
1598
+ **Auto-detects SSH sessions** - Works with VS Code Remote SSH, regular SSH, cloud dev environments
1599
+ ✅ **Zero configuration** - Audio optimizes automatically
1600
+ ✅ **No static/clicking** - Clean playback through SSH tunnels
1601
+
1602
+ **[→ Remote Audio Setup Guide](docs/remote-audio-setup.md)** - Full PulseAudio configuration details
1603
+
1604
+ [↑ Back to top](#-table-of-contents)
1605
+
1606
+ ---
1607
+
1608
+ ## 🛠️ Technical Documentation
1609
+
1610
+ ### Audio Architecture
1611
+
1612
+ AgentVibes uses a cross-platform audio module (`src/console/audio-env.js`) that handles player detection and environment configuration for all supported platforms.
1613
+
1614
+ #### Platform Audio Support Matrix
1615
+
1616
+ | Platform | PulseAudio Config | MP3 Players (preference order) | WAV Players (preference order) |
1617
+ |----------|-------------------|-------------------------------|-------------------------------|
1618
+ | **Native Linux** | System default (not overridden) | ffplay → play (sox) → mpg123 → cvlc → mpv | aplay → paplay → play → ffplay |
1619
+ | **WSL2** | Auto-detects `/mnt/wslg/PulseServer` | Same as Linux | Same as Linux |
1620
+ | **macOS** | Not applicable | ffplay → play → mpg123 → cvlc → mpv → afplay | aplay → paplay → play → ffplay → afplay |
1621
+ | **Windows** | Not applicable | ffplay → mpv (if installed) | ffplay → mpv → PowerShell SoundPlayer (built-in) |
1622
+
1623
+ #### Key Design Decisions
1624
+
1625
+ - **Direct spawn, not shell chains**: Audio players are spawned directly via Node's `spawn()` instead of `sh -c 'cmd1 || cmd2'` chains. VLC/cvlc crashes when stderr is redirected inside shell wrappers.
1626
+ - **Player detection at startup**: The available player is detected once using `which` and cached. No runtime fallback chains.
1627
+ - **PULSE_SERVER safety**: The WSL2 PulseServer path (`/mnt/wslg/PulseServer`) is only set when the socket file actually exists. Hardcoding it on native Linux silently breaks audio output.
1628
+ - **Windows WAV fallback**: PowerShell's `System.Media.SoundPlayer` is used as a built-in fallback when no cross-platform player is installed.
1629
+
1630
+ #### Multi-Speaker Voice Models
1631
+
1632
+ Piper supports multi-speaker ONNX models (e.g., `16Speakers.onnx`) that contain multiple voices in a single file. AgentVibes expands these automatically:
1633
+
1634
+ - The `.onnx.json` metadata file contains `num_speakers` and `speaker_id_map`
1635
+ - `scanInstalledVoices()` expands multi-speaker models into individual selectable entries (e.g., `16Speakers::Cori_Samuel`)
1636
+ - When selected, the system writes `tts-piper-model.txt` and `tts-piper-speaker-id.txt` to `.claude/`
1637
+ - `play-tts-piper.sh` reads these files and passes `--speaker <id>` to the piper binary
1638
+
1639
+ #### Voice Directory Resolution
1640
+
1641
+ Voice storage follows the same precedence chain in both JavaScript and shell:
1642
+
1643
+ 1. `PIPER_VOICES_DIR` environment variable
1644
+ 2. Project-local `.claude/piper-voices-dir.txt` (walks up directory tree)
1645
+ 3. Global `~/.claude/piper-voices-dir.txt`
1646
+ 4. Default `~/.claude/piper-voices`
1647
+
1648
+ #### Voice Catalog System
1649
+
1650
+ AgentVibes includes a 914-voice catalog (`voice-assignments.json`) that lets users browse, preview, and install voices directly from the Voices tab:
1651
+
1652
+ - **10 Curated Voices** — Hand-picked high-quality voices installed by default
1653
+ - **904 LibriTTS Speakers** Automatically extracted from the `16Speakers` multi-speaker model's `speaker_id_map`, plus the full LibriTTS catalog from Hugging Face
1654
+ - **Download on Demand** — Uninstalled voices appear greyed-out in the list; pressing Enter opens a download modal that fetches the voice via `piper-voice-manager.sh`
1655
+ - **Catalog Metadata** — Each entry includes `voiceId`, `displayName`, `gender`, `type` (curated/libritts), and download URL
1656
+ - **LibriTTS Speaker Names** — Raw numeric IDs are patched at load time using `patchLibriTTSSpeakerNames()` which maps speaker IDs to human-readable names from the registry
1657
+
1658
+ The catalog is loaded once at tab initialization by `loadCatalog()`. Installed voices (from disk scan) are shown with full color; catalog-only voices are dimmed until downloaded.
1659
+
1660
+ #### Required System Dependencies for Background Music
1661
+
1662
+ Background music requires an MP3-capable audio player. The installer detects missing players and offers to install `ffmpeg` automatically. If no player is found, the Music tab displays a clear error message.
1663
+
1664
+ ```bash
1665
+ # Install ffmpeg (recommended — provides ffplay)
1666
+ # Ubuntu/Debian/WSL2:
1667
+ sudo apt install ffmpeg
1668
+
1669
+ # macOS:
1670
+ brew install ffmpeg
1671
+
1672
+ # Arch Linux:
1673
+ sudo pacman -S ffmpeg
1674
+ ```
1675
+
1676
+ [↑ Back to top](#-table-of-contents)
1677
+
1678
+ ---
1679
+
1680
+ ## 🔗 Useful Links
1681
+
1682
+ ### Voice & AI Tools
1683
+
1684
+ - 🎤 **[WhisperTyping](https://whispertyping.com/)** - Fast voice-to-text typing for developers
1685
+ - 🗣️ **[OpenWhisper (Azure)](https://learn.microsoft.com/en-us/azure/ai-services/speech-service/whisper-overview)** - Microsoft's speech-to-text service
1686
+ - 🆓 **[Piper TTS](https://github.com/rhasspy/piper)** - Free offline neural TTS
1687
+ - 🤖 **[Claude Code](https://claude.com/claude-code)** - AI coding assistant
1688
+ - 🎭 **[BMAD METHOD](https://github.com/bmad-code-org/BMAD-METHOD)** - Multi-agent framework
1689
+
1690
+ ### AgentVibes Resources
1691
+
1692
+ - 🐛 **[Issues](https://github.com/paulpreibisch/AgentVibes/issues)** - Report bugs
1693
+ - 📝 **[Changelog](https://github.com/paulpreibisch/AgentVibes/releases)** - Version history
1694
+ - 📰 **[Technical Deep Dive - LinkedIn Article](https://www.linkedin.com/pulse/agent-vibes-add-voice-claude-code-deep-dive-npx-paul-preibisch-8zrcc/)** - How AgentVibes works under the hood
1695
+
1696
+ [↑ Back to top](#-table-of-contents)
1697
+
1698
+ ---
1699
+
1700
+ ## ❓ Troubleshooting
1701
+
1702
+ **Common Issues:**
1703
+
1704
+ **❌ Error: "git-lfs is not installed"**
1705
+
1706
+ **AgentVibes does NOT require git-lfs.** This error suggests:
1707
+
1708
+ 1. **Wrong installation method** - Use npm, not git clone:
1709
+ ```bash
1710
+ # CORRECT - Use this:
1711
+ npx agentvibes install
1712
+
1713
+ # ❌ WRONG - Don't clone unless contributing:
1714
+ git clone https://github.com/paulpreibisch/AgentVibes.git
1715
+ ```
1716
+
1717
+ 2. **Different project** - You may be in a BMAD-METHOD or other repo that uses git-lfs
1718
+
1719
+ 3. **Global git config** - Your git may have lfs enabled globally:
1720
+ ```bash
1721
+ git config --global --list | grep lfs
1722
+ ```
1723
+
1724
+ **Solution:** Use `npx agentvibes install` - no git operations needed!
1725
+
1726
+ ---
1727
+
1728
+ **No Audio Playing?**
1729
+ 1. Verify hook is installed: `ls -la .claude/hooks/session-start-tts.sh`
1730
+ 2. Test: `/agent-vibes:sample Aria`
1731
+
1732
+ **Commands Not Found?**
1733
+ ```bash
1734
+ npx agentvibes install --yes
1735
+ ```
1736
+
1737
+ **[→ View Complete Troubleshooting Guide](docs/troubleshooting.md)** - Solutions for audio issues, command problems, MCP errors, voice issues, and more
1738
+
1739
+ [↑ Back to top](#-table-of-contents)
1740
+
1741
+ ---
1742
+
1743
+ ## 🔄 Updating
1744
+
1745
+ **Quick Update (From Claude Code):**
1746
+ ```bash
1747
+ /agent-vibes:update
1748
+ ```
1749
+
1750
+ **Alternative Methods:**
1751
+ ```bash
1752
+ # Via npx
1753
+ npx agentvibes update --yes
1754
+
1755
+ # Via npm (if installed globally)
1756
+ npm update -g agentvibes && agentvibes update --yes
1757
+ ```
1758
+
1759
+ **Check Version:** `/agent-vibes:version`
1760
+
1761
+ **[→ View Complete Update Guide](docs/updating.md)** - All update methods, version checking, what gets updated, and troubleshooting
1762
+
1763
+ [↑ Back to top](#-table-of-contents)
1764
+
1765
+ ---
1766
+
1767
+ ## 🗑️ Uninstalling
1768
+
1769
+ **Quick Uninstall (Project Only):**
1770
+ ```bash
1771
+ npx agentvibes uninstall
1772
+ ```
1773
+
1774
+ **Uninstall Options:**
1775
+ ```bash
1776
+ # Interactive uninstall (confirms before removing)
1777
+ npx agentvibes uninstall
1778
+
1779
+ # Auto-confirm (skip confirmation prompt)
1780
+ npx agentvibes uninstall --yes
1781
+
1782
+ # Also remove global configuration
1783
+ npx agentvibes uninstall --global
1784
+
1785
+ # Complete uninstall including Piper TTS
1786
+ npx agentvibes uninstall --global --with-piper
1787
+ ```
1788
+
1789
+ **What Gets Removed:**
1790
+
1791
+ **Project-level (default):**
1792
+ - `.claude/commands/agent-vibes/` - Slash commands
1793
+ - `.claude/hooks/` - TTS scripts
1794
+ - `.claude/personalities/` - Personality templates
1795
+ - `.claude/output-styles/` - Output styles
1796
+ - `.claude/audio/` - Audio cache
1797
+ - `.claude/tts-*.txt` - TTS configuration files
1798
+ - `.agentvibes/` - BMAD integration files
1799
+
1800
+ **Global (with `--global` flag):**
1801
+ - `~/.claude/` - Global configuration
1802
+ - `~/.agentvibes/` - Global cache
1803
+
1804
+ **Piper TTS (with `--with-piper` flag):**
1805
+ - `~/piper/` - Piper TTS installation
1806
+
1807
+ **To Reinstall:**
1808
+ ```bash
1809
+ npx agentvibes install
1810
+ ```
1811
+
1812
+ **💡 Tips:**
1813
+ - Default uninstall only removes project-level files
1814
+ - Use `--global` if you want to completely reset AgentVibes
1815
+ - Use `--with-piper` if you also want to remove the Piper TTS engine
1816
+ - Run `npx agentvibes status` to check installation status
1817
+
1818
+ [↑ Back to top](#-table-of-contents)
1819
+
1820
+ ---
1821
+
1822
+ ## Frequently Asked Questions (FAQ)
1823
+
1824
+ ### Installation & Setup
1825
+
1826
+ **Q: Does AgentVibes require git-lfs?**
1827
+ **A:** **NO.** AgentVibes has zero git-lfs requirement. Use `npx agentvibes install` - no git operations needed.
1828
+
1829
+ **Q: Do I need to clone the GitHub repository?**
1830
+ **A:** **NO** (unless you're contributing code). Normal users should use `npx agentvibes install`. Repository cloning is only for developers who want to contribute to the project.
1831
+
1832
+ **Q: Why is the GitHub repo so large?**
1833
+ **A:** The repo includes demo files and development dependencies (node_modules). The actual npm package you download is **< 50MB** and optimized for users.
1834
+
1835
+ **Q: What's the difference between npm install and git clone?**
1836
+ **A:**
1837
+ - `npx agentvibes install` → **For users** - Downloads pre-built package, zero git operations, instant setup
1838
+ - `git clone ...` → **For developers only** - Full source code, development setup, contributing code
1839
+
1840
+ **Q: I saw an error about git-lfs, is something wrong?**
1841
+ **A:** You're likely:
1842
+ 1. Using wrong installation method (use `npx` not `git clone`)
1843
+ 2. In a different project directory that uses git-lfs
1844
+ 3. Have global git config with lfs enabled
1845
+
1846
+ AgentVibes itself does NOT use or require git-lfs.
1847
+
1848
+ ### Features & Usage
1849
+
1850
+ **Q: Does MCP consume tokens from my context window?**
1851
+ **A:** **YES.** Every MCP tool schema adds to the context window. AgentVibes MCP is designed to be minimal (~1500-2000 tokens), but if you're concerned about token usage, you can use slash commands instead of MCP.
1852
+
1853
+ **Q: What's the difference between using MCP vs slash commands?**
1854
+ **A:**
1855
+ - **MCP**: Natural language ("Switch to Aria voice"), uses ~1500-2000 context tokens
1856
+ - **Slash commands**: Explicit commands (`/agent-vibes:switch Aria`), zero token overhead
1857
+
1858
+ Both do the exact same thing - MCP is more convenient, slash commands are more token-efficient.
1859
+
1860
+ **Q: Is AgentVibes just a bash script?**
1861
+ **A:** No. AgentVibes includes:
1862
+ - Multi-provider TTS abstraction (Piper TTS, macOS Say)
1863
+ - Voice management system with 50+ voices
1864
+ - Personality & sentiment system
1865
+ - Language learning mode with bilingual playback
1866
+ - Audio effects processing (reverb, EQ, compression)
1867
+ - MCP server for natural language control
1868
+ - BMAD integration for multi-agent voice switching
1869
+ - Remote audio optimization for SSH/RDP sessions
1870
+
1871
+ **Q: Can I use AgentVibes without BMAD?**
1872
+ **A:** **YES.** AgentVibes works standalone. BMAD integration is optional - only activates if you install BMAD separately.
1873
+
1874
+ **Q: What are the audio dependencies?**
1875
+ **A:**
1876
+ - **Required**: Node.js 16+, Python 3.10+ (for Piper TTS)
1877
+ - **Optional**: sox (audio effects), ffmpeg (background music, padding)
1878
+ - All TTS generation works without optional dependencies - they just enhance the experience
1879
+
1880
+ ### Voice Features
1881
+
1882
+ **Q: How do I browse and install voices?**
1883
+ **A:** Use the built-in TUI installer by running `/audio-browser` in Claude Code. Navigate with arrow keys, press ENTER to sample voices, and select one to install. AgentVibes switches to the chosen voice automatically.
1884
+
1885
+ **Q: What are friendly voice names?**
1886
+ **A:** Instead of technical IDs like `en_US-ryan-high`, you can now use simple names like "Ryan" when switching voices. All 904+ voices have friendly names matched to their characteristics.
1887
+
1888
+ **Q: How do I set up custom intro text?**
1889
+ **A:** During installation you'll be prompted for intro text. You can also configure it anytime via `npx agentvibes` → Settings tab. Enter text like "FireBot: " and it will prefix all TTS announcements.
1890
+
1891
+ **Q: Can I use my own background music?**
1892
+ **A:** Yes! Run `npx agentvibes` and open the Music tab. Select "Change music" and provide the path to your audio file (.mp3, .wav, .ogg, or .m4a). Files are validated for security and must be under 50MB.
1893
+
1894
+ **Q: What's the recommended duration for custom music?**
1895
+ **A:** Between 30-90 seconds is ideal for smooth looping. The system supports up to 300 seconds (5 minutes) but will warn you if the duration is non-optimal.
1896
+
1897
+ **Q: Are friendly voice names case-sensitive?**
1898
+ **A:** No! You can type "ryan", "Ryan", or "RYAN" - they all work. The voice resolution is case-insensitive.
1899
+
1900
+ **Q: Does custom music work with all TTS providers?**
1901
+ **A:** Yes! Custom background music works with Piper TTS, Soprano, macOS Say, and Windows SAPI.
1902
+
1903
+ **Q: Can I preview music before setting it as my background?**
1904
+ **A:** Yes! In `npx agentvibes` → Music tab, select "Preview current" to hear your music. During installation, you can also sample all built-in tracks.
1905
+
1906
+ **Q: What security measures protect custom music uploads?**
1907
+ **A:** AgentVibes implements **defense-in-depth security with 7 validation layers**, tested against 180+ attack variations:
1908
+
1909
+ 1. **Path Validation** - `path.resolve()` prevents traversal attacks (../, encoded, Unicode)
1910
+ 2. **Home Directory Boundary** - Files must be within your home directory
1911
+ 3. **File Existence Check** - Verifies file actually exists
1912
+ 4. **File Type Verification** - Must be a regular file (not device, socket, etc.)
1913
+ 5. **Ownership Verification** - File must be owned by you (UID check)
1914
+ 6. **Format Validation** - Magic number checking ensures real audio files
1915
+ 7. **Secure Storage** - Files copied to restricted directory with 600 permissions
1916
+
1917
+ **Security Certification:**
1918
+ - ✅ 100% attack rejection rate (107/107 tests passed)
1919
+ - ✅ OWASP CWE-22 compliant (path traversal prevention)
1920
+ - ✅ No information disclosure in error messages
1921
+ - ✅ Production-ready and certified secure
1922
+
1923
+ See full security audit: `docs/security/SECURITY-AUDIT.md`
1924
+
1925
+ **Q: Has the security been independently verified?**
1926
+ **A:** Yes! AgentVibes v3.6.0 includes a comprehensive security audit with 180+ attack variations tested. All path traversal, symlink, Unicode, null byte, and edge case attacks were successfully blocked (100% rejection rate). The system is OWASP CWE-22 compliant and includes a detailed security audit report at `docs/security/SECURITY-AUDIT.md`.
1927
+
1928
+ **Q: What attack patterns were tested?**
1929
+ **A:** The security test suite covers:
1930
+ - **Path Traversal:** 100 variations (basic, URL-encoded, Unicode, null bytes, mixed)
1931
+ - **Symlink Attacks:** 10 variations (sensitive files, chains, traversal targets)
1932
+ - **Hard Link Attacks:** 5 variations (ownership verification)
1933
+ - **Edge Cases:** 65+ variations (CRLF, whitespace, Unicode normalization, platform-specific)
1934
+
1935
+ Every attack was correctly rejected with no information disclosure.
1936
+
1937
+ ### Troubleshooting
1938
+
1939
+ **Q: Why isn't Claude speaking?**
1940
+ **A:** Common causes:
1941
+ 1. Hook not installed - Run `npx agentvibes install --yes`
1942
+ 2. Audio player missing - Install `sox` and `ffmpeg`
1943
+ 3. TTS protocol not enabled in settings
1944
+ 4. Test with `/agent-vibes:sample Aria`
1945
+
1946
+ **Q: Can I use this on Windows?**
1947
+ **A:** Yes! AgentVibes supports **native Windows** with PowerShell scripts (Soprano, Piper, SAPI providers). See [Windows Native Setup](WINDOWS-SETUP.md). WSL is also supported for legacy workflows - see [Windows WSL Guide](mcp-server/WINDOWS_SETUP.md).
1948
+
1949
+ **Q: How do I reduce token usage?**
1950
+ **A:**
1951
+ 1. Use slash commands instead of MCP (zero context token overhead)
1952
+ 2. Set verbosity to LOW (`/agent-vibes:verbosity low`)
1953
+ 3. Disable BMAD integration if not using it
1954
+
1955
+ [↑ Back to top](#-table-of-contents)
1956
+
1957
+ ---
1958
+
1959
+ ## ⚠️ Important Disclaimers
1960
+
1961
+ **API Costs & Usage:**
1962
+ - Usage is completely free with Piper TTS and Mac Say (no API costs)
1963
+ - Users are solely responsible for their own API costs and usage
1964
+
1965
+
1966
+ **Third-Party Services:**
1967
+ - This project integrates with Piper TTS (local processing) and macOS Say (system built-in)
1968
+ - We are **not affiliated with, endorsed by, or officially connected** to Anthropic, Apple, or Claude
1969
+ - Piper TTS is subject to its terms of service
1970
+
1971
+ **Privacy & Data:**
1972
+ - **Piper TTS**: All processing happens locally on your machine, no external data transmission
1973
+ - **macOS Say**: All processing happens locally using Apple's built-in speech synthesis
1974
+
1975
+ **Software License:**
1976
+ - Provided "as-is" under Apache 2.0 License without warranty of any kind
1977
+ - See [LICENSE](LICENSE) file for full terms
1978
+ - No liability for data loss, bugs, service interruptions, or any damages
1979
+
1980
+ **Use at Your Own Risk:**
1981
+ - This is open-source software maintained by the community
1982
+ - Always test in development before production use
1983
+ - Monitor your API usage and costs regularly
1984
+
1985
+ [↑ Back to top](#-table-of-contents)
1986
+
1987
+ ---
1988
+
1989
+ ## 🙏 Credits
1990
+
1991
+ **Built with ❤️ by [Paul Preibisch](https://github.com/paulpreibisch)**
1992
+
1993
+ - 🐦 Twitter: [@997Fire](https://x.com/997Fire)
1994
+ - 💼 LinkedIn: [paul-preibisch](https://www.linkedin.com/in/paul-preibisch/)
1995
+ - 🌐 GitHub: [paulpreibisch](https://github.com/paulpreibisch)
1996
+
1997
+ **Powered by:**
1998
+ - [Piper TTS](https://github.com/rhasspy/piper) - Free neural voices
1999
+ - [Soprano TTS](https://github.com/suno-ai/bark) - Ultra-fast neural TTS
2000
+ - **Windows SAPI** - Native Windows text-to-speech
2001
+ - **macOS Say** - Native macOS text-to-speech
2002
+ - [Claude Code](https://claude.com/claude-code) - AI coding assistant
2003
+ - Licensed under Apache 2.0
2004
+
2005
+ **Contributors:**
2006
+ - 🎤 [@nathanchase](https://github.com/nathanchase) - Soprano TTS Provider integration (PR #95) - Ultra-fast neural TTS with GPU acceleration
2007
+
2008
+ **Special Thanks:**
2009
+ - 💡 [Claude Code Hooks Mastery](https://github.com/disler/claude-code-hooks-mastery) by [@disler](https://github.com/disler) - Hooks inspiration
2010
+ - 🤖 [BMAD METHOD](https://github.com/bmad-code-org/BMAD-METHOD) - Multi-agent framework with auto voice switching integration
2011
+
2012
+ [↑ Back to top](#-table-of-contents)
2013
+
2014
+ ---
2015
+
2016
+ ## 🤝 Contributing
2017
+
2018
+ If AgentVibes makes your coding more fun:
2019
+ - ⭐ **Star this repo** on GitHub
2020
+ - 🐦 **Tweet** and tag [@997Fire](https://x.com/997Fire)
2021
+ - 🎥 **Share videos** of Claude with personality
2022
+ - 💬 **Tell dev friends** about voice-powered AI
2023
+
2024
+ ---
2025
+
2026
+ **Ready to give Claude a voice? Install now and code with personality! 🎤✨**
2027
+
2028
+ [↑ Back to top](#-table-of-contents)
2029
+