agentvibes 4.6.2 → 4.6.3

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.
@@ -128,7 +128,22 @@ try {
128
128
  if ($raw -match '::') {
129
129
  $parts = $raw -split '::'
130
130
  $AgentVoiceName = $parts[0]
131
- if ($parts[1] -match '-(\d+)$') { $SpeakerId = $Matches[1] }
131
+ $SpeakerName = if ($parts.Length -ge 2) { $parts[1] } else { "" }
132
+ # NOTE: The suffix number (e.g. "14" in "Yara-14") is a display disambiguator,
133
+ # NOT the piper speaker index. Must look up real index from speaker_id_map.
134
+ if ($SpeakerName) {
135
+ $VoicesDir = "$env:USERPROFILE\.claude\piper-voices"
136
+ $OnnxJsonPath = "$VoicesDir\$AgentVoiceName.onnx.json"
137
+ if (Test-Path $OnnxJsonPath) {
138
+ try {
139
+ $onnxData = Get-Content $OnnxJsonPath -Raw -Encoding UTF8 | ConvertFrom-Json
140
+ $speakerIdMap = $onnxData.speaker_id_map
141
+ if ($speakerIdMap -and $speakerIdMap.PSObject.Properties[$SpeakerName]) {
142
+ $SpeakerId = [string]$speakerIdMap.PSObject.Properties[$SpeakerName].Value
143
+ }
144
+ } catch { }
145
+ }
146
+ }
132
147
  } else {
133
148
  $AgentVoiceName = $raw
134
149
  }
package/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # AgentVibes Release Notes
2
2
 
3
+ ## 🐛 v4.6.3 — Patch Release
4
+
5
+ **Release Date:** April 2026
6
+
7
+ ### Bug Fixes
8
+
9
+ - **Party mode pre-synthesis uses wrong speaker for every agent** — `bmad-party-speak.ps1` extracted the trailing number from the display name suffix (e.g. `14` from `Yara-14`) and passed it directly as the piper `--speaker` index. The display suffix is a human-readable disambiguator, not the model index. `Yara-14` is speaker 860, but the bug caused piper to speak as speaker 14 ("Ivy") instead. Every configured agent was silently playing a completely different voice. The fix looks up the full speaker name in `speaker_id_map` from the `.onnx.json` file, matching what `play-tts-piper.ps1` already does correctly. Fixes [#165](https://github.com/paulpreibisch/AgentVibes/issues/165).
10
+
11
+ ### Testing
12
+
13
+ - **New cross-platform test: `bmad-party-speak-speaker-id.test.js`** — 15 tests covering correct `speaker_id_map` lookup for all 8 configured agents, plain names without suffixes (e.g. `Evan`), missing model graceful degradation, and a regression suite that verifies the correct index disagrees with the naive suffix extraction for every agent.
14
+
15
+ ### User Impact
16
+
17
+ - Party mode agents now speak with their correct configured voices (the voices shown in the BMAD Agents tab)
18
+ - No configuration changes needed — the fix is automatic
19
+
20
+ ---
21
+
3
22
  ## 🐛 v4.6.2 — Patch Release
4
23
 
5
24
  **Release Date:** April 2026
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": "4.6.2",
4
+ "version": "4.6.3",
5
5
  "description": "Now your AI Agents can finally talk back! Professional TTS voice for Claude Code, Claude Desktop (via MCP), and Clawdbot with multi-provider support.",
6
6
  "homepage": "https://agentvibes.org",
7
7
  "keywords": [
@@ -1 +0,0 @@
1
- AgentVibes