agentvibes 2.0.17-beta.4 → 2.0.17-beta.5
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.
|
@@ -209,6 +209,47 @@ provider_switch() {
|
|
|
209
209
|
# Perform switch
|
|
210
210
|
set_active_provider "$new_provider"
|
|
211
211
|
|
|
212
|
+
# Update target voice if language learning mode is active
|
|
213
|
+
local target_lang_file=""
|
|
214
|
+
local target_voice_file=""
|
|
215
|
+
|
|
216
|
+
# Check project-local first, then global
|
|
217
|
+
if [[ -d "$SCRIPT_DIR/../.." ]]; then
|
|
218
|
+
local project_dir="$SCRIPT_DIR/../.."
|
|
219
|
+
if [[ -f "$project_dir/.claude/tts-target-language.txt" ]]; then
|
|
220
|
+
target_lang_file="$project_dir/.claude/tts-target-language.txt"
|
|
221
|
+
target_voice_file="$project_dir/.claude/tts-target-voice.txt"
|
|
222
|
+
fi
|
|
223
|
+
fi
|
|
224
|
+
|
|
225
|
+
# Fallback to global
|
|
226
|
+
if [[ -z "$target_lang_file" ]]; then
|
|
227
|
+
if [[ -f "$HOME/.claude/tts-target-language.txt" ]]; then
|
|
228
|
+
target_lang_file="$HOME/.claude/tts-target-language.txt"
|
|
229
|
+
target_voice_file="$HOME/.claude/tts-target-voice.txt"
|
|
230
|
+
fi
|
|
231
|
+
fi
|
|
232
|
+
|
|
233
|
+
# If target language is set, update voice for new provider
|
|
234
|
+
if [[ -n "$target_lang_file" ]] && [[ -f "$target_lang_file" ]]; then
|
|
235
|
+
local target_lang
|
|
236
|
+
target_lang=$(cat "$target_lang_file")
|
|
237
|
+
|
|
238
|
+
if [[ -n "$target_lang" ]]; then
|
|
239
|
+
# Get the recommended voice for this language with new provider
|
|
240
|
+
local new_target_voice
|
|
241
|
+
new_target_voice=$(get_voice_for_language "$target_lang" "$new_provider")
|
|
242
|
+
|
|
243
|
+
if [[ -n "$new_target_voice" ]]; then
|
|
244
|
+
echo "$new_target_voice" > "$target_voice_file"
|
|
245
|
+
echo ""
|
|
246
|
+
echo "🔄 Updated target language voice:"
|
|
247
|
+
echo " Language: $target_lang"
|
|
248
|
+
echo " Voice: $new_target_voice (for $new_provider)"
|
|
249
|
+
fi
|
|
250
|
+
fi
|
|
251
|
+
fi
|
|
252
|
+
|
|
212
253
|
# Test new provider
|
|
213
254
|
echo ""
|
|
214
255
|
echo "🔊 Testing provider..."
|
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.5",
|
|
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": [
|