agentvibes 2.0.17-beta.6 → 2.0.17-beta.7
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.
|
@@ -100,10 +100,12 @@ Make each response unique, creative, and naturally incorporate the personality's
|
|
|
100
100
|
|
|
101
101
|
**Check if learning mode is enabled:**
|
|
102
102
|
```bash
|
|
103
|
-
|
|
103
|
+
LEARN_MODE=$(cat .claude/tts-learn-mode.txt 2>/dev/null || cat ~/.claude/tts-learn-mode.txt 2>/dev/null || echo "OFF")
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
Learning mode is enabled if `$LEARN_MODE` equals "ON".
|
|
107
|
+
|
|
108
|
+
**If learning mode is ENABLED ($LEARN_MODE == "ON"):**
|
|
107
109
|
1. Get target language and voice:
|
|
108
110
|
```bash
|
|
109
111
|
TARGET_LANG=$(cat .claude/tts-target-language.txt 2>/dev/null || cat ~/.claude/tts-target-language.txt 2>/dev/null)
|
|
@@ -111,29 +113,55 @@ LEARN_ENABLED=$(cat .claude/tts-learn-enabled.txt 2>/dev/null || cat ~/.claude/t
|
|
|
111
113
|
```
|
|
112
114
|
|
|
113
115
|
2. **Make TWO TTS calls** for each acknowledgment/completion:
|
|
114
|
-
- **First**: Play in main language (English)
|
|
115
|
-
- **Second**: Translate to target language and play
|
|
116
|
+
- **First**: Play in main language (English) - NO voice override (uses configured main voice)
|
|
117
|
+
- **Second**: Translate to target language and play - PASS $TARGET_VOICE as second parameter
|
|
116
118
|
|
|
117
119
|
3. **Translation**: Use AI to translate the English message to the target language naturally
|
|
118
120
|
|
|
119
121
|
**Example with learning mode enabled (Spanish):**
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
```bash
|
|
123
|
+
# First get the target voice
|
|
124
|
+
TARGET_VOICE=$(cat .claude/tts-target-voice.txt 2>/dev/null || cat ~/.claude/tts-target-voice.txt 2>/dev/null)
|
|
125
|
+
|
|
126
|
+
# Acknowledgment in English (no voice parameter - uses main/configured voice)
|
|
123
127
|
.claude/hooks/play-tts.sh "Hey there! Great to hear from you!"
|
|
124
|
-
|
|
125
|
-
|
|
128
|
+
|
|
129
|
+
# Wait briefly between calls
|
|
130
|
+
sleep 0.5
|
|
131
|
+
|
|
132
|
+
# Acknowledgment in Spanish (pass target voice explicitly)
|
|
133
|
+
.claude/hooks/play-tts.sh "¡Hola! ¡Qué bueno saber de ti!" "$TARGET_VOICE"
|
|
126
134
|
```
|
|
127
135
|
|
|
136
|
+
**CRITICAL:**
|
|
137
|
+
- First call: NO voice parameter (uses main voice from config)
|
|
138
|
+
- Second call: MUST pass $TARGET_VOICE (the target voice supports the target language)
|
|
139
|
+
|
|
128
140
|
**If learning mode is DISABLED:**
|
|
129
141
|
- Make normal single TTS call as usual
|
|
130
142
|
|
|
131
143
|
## Voice Selection
|
|
132
144
|
|
|
133
|
-
|
|
134
|
-
|
|
145
|
+
**CRITICAL: Let the system choose the voice automatically based on provider!**
|
|
146
|
+
|
|
147
|
+
- **Default behavior**: ALWAYS omit the second parameter (voice name) unless explicitly requested by user
|
|
148
|
+
- This allows play-tts.sh to automatically select the correct voice for the active provider
|
|
149
|
+
- The system will use the configured voice from `.claude/tts-voice.txt` or `~/.claude/tts-voice.txt`
|
|
150
|
+
- **Only** pass a voice name as second parameter if user explicitly requests it (e.g., "use Aria voice")
|
|
135
151
|
- Use same voice for both acknowledgment and completion
|
|
136
|
-
- For learning mode, use target voice for second TTS call
|
|
152
|
+
- For learning mode, use target voice for second TTS call (system handles this automatically)
|
|
153
|
+
|
|
154
|
+
**Examples:**
|
|
155
|
+
```bash
|
|
156
|
+
# CORRECT - Let system choose voice
|
|
157
|
+
.claude/hooks/play-tts.sh "I'll handle that for you"
|
|
158
|
+
|
|
159
|
+
# CORRECT - User requested specific voice
|
|
160
|
+
.claude/hooks/play-tts.sh "I'll handle that for you" "Aria"
|
|
161
|
+
|
|
162
|
+
# WRONG - Don't hardcode voice names
|
|
163
|
+
.claude/hooks/play-tts.sh "I'll handle that for you" "Michael"
|
|
164
|
+
```
|
|
137
165
|
|
|
138
166
|
## Example Usage
|
|
139
167
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "agentvibes",
|
|
4
|
-
"version": "2.0.17-beta.
|
|
4
|
+
"version": "2.0.17-beta.7",
|
|
5
5
|
"description": "Now your AI Agents can finally talk back! Professional TTS voice for Claude Code and Claude Desktop (via MCP) with multi-provider support.",
|
|
6
6
|
"homepage": "https://agentvibes.org",
|
|
7
7
|
"keywords": [
|