openclaw/extensions/microsoft
stain lu 6ea3cddf0d
fix: register bundled TTS providers and route overrides correctly (#62846) (thanks @stainlu)
* fix(microsoft,elevenlabs): add enabledByDefault so speech providers register at runtime

* fix(tts): route generic directive tokens to the explicitly declared provider

Addresses the P2 Codex review on #62846 that flagged auto-enabling
ElevenLabs as a product regression for MiniMax users. Both providers
claim the generic `speed` token, and parseTtsDirectives walked
providers in autoSelectOrder with first-match-wins, so inputs like
`[[tts:provider=minimax speed=1.2]]` silently routed speed to
providerOverrides.elevenlabs once elevenlabs participated in every
parse pass.

The parser now pre-scans for `provider=` (honoring legacy last-wins
semantics) and routes generic tokens with the declared provider tried
first, falling back to autoSelectOrder when it doesn't handle the key.
Token order inside the directive no longer matters: `speed=1.2` before
or after `provider=minimax` both resolve to MiniMax.

Adds a regression test suite covering the exact ElevenLabs/MiniMax
speed collision plus fallback, mixed-token, last-wins, and
allowProvider-disabled cases. parseTtsDirectives had no prior test
coverage.

* fix(tts): prefer active provider for generic directives

* fix: register bundled TTS providers safely (#62846) (thanks @stainlu)

* fix: use exported TTS SDK seam (#62846) (thanks @stainlu)

---------

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-04-16 15:26:38 +05:30
..
index.ts feat(qwen): add qwen provider and video generation 2026-04-04 19:34:56 +01:00
openclaw.plugin.json fix: register bundled TTS providers and route overrides correctly (#62846) (thanks @stainlu) 2026-04-16 15:26:38 +05:30
package.json build(extensions): bump bundled plugin versions to 2026.4.15-beta.1 2026-04-15 15:06:13 +01:00
speech-provider.test.ts feat(msteams): add federated credential support (certificate + managed identity) (#53615) 2026-04-11 13:29:22 -05:00
speech-provider.ts feat(msteams): add federated credential support (certificate + managed identity) (#53615) 2026-04-11 13:29:22 -05:00
test-api.ts
tsconfig.json chore(plugins): bulk add package boundary tsconfig rollout 2026-04-07 08:48:23 +01:00
tts.test.ts
tts.ts refactor: dedupe provider lowercase helpers 2026-04-07 22:24:32 +01:00