Skip to content

Add complete MiniMax TTS support - #1081

Closed
octo-patch wants to merge 1 commit into
openclaw:mainfrom
octo-patch:octo/20260801-tts-tool-recvqe6RycKVmW
Closed

octo-patch wants to merge 1 commit into
openclaw:mainfrom
octo-patch:octo/20260801-tts-tool-recvqe6RycKVmW

Conversation

@octo-patch

Copy link
Copy Markdown
Contributor

Reason: Add complete MiniMax TTS support for the Windows node, including both regional HTTP endpoints and the current speech model catalog.

Changes:

  • Add MiniMax to the TTS capability catalog, MCP tool descriptions, settings model, readiness handling, dispatch, and settings UI.
  • Implement authenticated MiniMax HTTP T2A synthesis with global and China endpoint selection, voice/model settings, MP3 output, response decoding, and bounded error handling.
  • Add focused coverage for capability resolution, endpoint selection, request shape, response decoding, validation, and the current TTS catalog.

Checks:

  • dotnet test tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --filter FullyQualifiedName~TtsCapabilityTests --no-restore
  • dotnet test tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --filter FullyQualifiedName~MiniMaxTextToSpeechClientTests --no-restore
  • git diff --check
  • Secret scan

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 2:44 AM ET / 06:44 UTC.

ClawSweeper review

What this changes

The branch adds MiniMax as a configurable cloud text-to-speech provider across provider selection, persisted settings, MCP descriptions, the WinUI settings page, HTTP synthesis, and focused tests.

Merge readiness

⛔ Blocked until real behavior proof is added - 7 items remain

Keep this PR open. It adds a first-party cloud provider but currently breaks the MiniMax Settings preview path, leaves the Windows-node skill contract stale, and has no current-head UI or MCP real-behavior proof.

Priority: P2
Reviewed head: 798aee788eebf22d6c989209540d379153d7aceb
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The provider implementation has useful focused coverage, but two correctness gaps and absent real behavior proof leave it below merge-ready quality.
Proof confidence 🧂 unranked krab (1/6) Needs real behavior proof before merge: The PR body lists focused test commands but provides no after-fix Windows Settings view, winnode or raw MCP invocation, or redacted live MiniMax synthesis output from the current head. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR body lists focused test commands but provides no after-fix Windows Settings view, winnode or raw MCP invocation, or redacted live MiniMax synthesis output from the current head. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 5 items MiniMax provider integration: The PR adds MiniMax selection, settings, readiness handling, dispatch, and an HTTP client, so this is new feature work rather than behavior already present on current main.
Preview override defect: The newly visible MiniMax settings panel still reaches the existing preview call that explicitly passes the selected Windows voice, which overrides the configured MiniMax voice when tts.speak is dispatched.
Agent-facing contract is stale: The branch changes the MCP description to advertise minimax, but the checked-in Windows-node skill still says there are three providers and excludes MiniMax from the request schema.
Findings 2 actionable findings [P1] Pass the MiniMax voice to Preview
[P2] Synchronize the Windows-node skill contract
Security None None.

How this fits together

The Windows node exposes tts.speak through local MCP and gateway calls, resolves a configured TTS provider, synthesizes audio, and plays it on the Windows host. Voice Settings supplies the provider credentials, voice, model, and region that this flow consumes.

flowchart LR
  A[Voice Settings] --> B[Persisted TTS settings]
  C[MCP tts.speak request] --> D[Provider resolution]
  B --> D
  D --> E[MiniMax HTTP synthesis]
  E --> F[Audio playback]
  D --> G[Readiness and fallback status]
Loading

Decision needed

Question Recommendation
Should the Windows node support MiniMax as a first-party cloud TTS provider alongside ElevenLabs? Sponsor first-party MiniMax support: Keep the feature in core after the preview, documentation, and real-behavior blockers are resolved.

Why: This introduces a persisted API key, regional outbound provider selection, and a new user-visible provider/configuration surface; existing core-provider patterns make it technically feasible, but they do not establish product acceptance for this specific service.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR body lists focused test commands but provides no after-fix Windows Settings view, winnode or raw MCP invocation, or redacted live MiniMax synthesis output from the current head. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Pass the MiniMax voice to Preview (P1) - When the new MiniMax panel is active, Preview still passes WindowsVoiceCombo as an explicit voiceId. That takes precedence over TtsMiniMaxVoiceId, so a normal Windows voice selection is sent to MiniMax and the preview fails instead of exercising the configured MiniMax voice. Select the voice by active provider, or omit voiceId for cloud providers so their saved setting is used.
  • Synchronize the Windows-node skill contract (P2) - This changed MCP description now advertises minimax, but src/OpenClaw.WinNode.Cli/skill.md:317 still says there are three providers, omits MiniMax from provider, and calls model ElevenLabs-only. Update the checked-in agent contract and its focused CLI coverage so winnode users can discover and invoke the newly supported provider correctly.
  • Resolve merge risk (P1) - Merging adds a new cloud credential and outbound text-to-speech route; maintainer sponsorship should explicitly accept that product and regional-service boundary.
  • Resolve merge risk (P1) - The PR body lists focused test commands only. It does not show current-head MiniMax settings, MCP discovery/invocation, or a redacted live synthesis result.
  • Complete next step (P2) - A maintainer must first sponsor the new first-party cloud-provider scope, and the contributor must provide real environment proof that automation cannot credibly synthesize on their behalf.

Findings

  • [P1] Pass the MiniMax voice to Preview — src/OpenClaw.Tray.WinUI/Pages/VoiceSettingsPage.xaml.cs:844
  • [P2] Synchronize the Windows-node skill contract — src/OpenClaw.Shared/Mcp/McpToolBridge.cs:350-353
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Cross-surface change 14 files affected The feature spans persisted settings, the MCP contract, native Settings UI, provider dispatch, and tests.
Production versus tests production +318/-6, tests +175/-3 Most of the growth is the provider implementation and UI wiring, so direct runtime proof matters in addition to the focused test additions.

Merge-risk options

Maintainer options:

  1. Complete provider proof before merge (recommended)
    Fix the MiniMax preview override, update the agent-facing contract, and provide redacted current-head UI and MCP invocation evidence for the selected global or China route.
  2. Accept first-party cloud-provider scope
    A maintainer can explicitly sponsor the MiniMax credential and outbound regional-service boundary after reviewing the completed proof.
  3. Pause the core integration
    Close or defer this PR if the project does not want to own another cloud TTS provider and its ongoing API compatibility surface.

Technical review

Best possible solution:

If maintainers want MiniMax as a first-party provider, complete the established TTS-provider path: preview with the active provider's configured voice, synchronize the winnode skill contract, add regression coverage, and attach redacted Windows UI plus MCP proof from the PR head.

Do we have a high-confidence way to reproduce the issue?

Yes, source-reproducible: select MiniMax in Voice Settings, configure a MiniMax voice, then use Preview. The call explicitly supplies the selected Windows voice and therefore overrides the saved MiniMax voice.

Is this the best way to solve the issue?

No. The provider wiring follows the existing TTS architecture, but it must route Preview through the active provider’s voice and keep the Windows-node skill contract synchronized before it is a complete solution.

Full review comments:

  • [P1] Pass the MiniMax voice to Preview — src/OpenClaw.Tray.WinUI/Pages/VoiceSettingsPage.xaml.cs:844
    When the new MiniMax panel is active, Preview still passes WindowsVoiceCombo as an explicit voiceId. That takes precedence over TtsMiniMaxVoiceId, so a normal Windows voice selection is sent to MiniMax and the preview fails instead of exercising the configured MiniMax voice. Select the voice by active provider, or omit voiceId for cloud providers so their saved setting is used.
    Confidence: 0.99
  • [P2] Synchronize the Windows-node skill contract — src/OpenClaw.Shared/Mcp/McpToolBridge.cs:350-353
    This changed MCP description now advertises minimax, but src/OpenClaw.WinNode.Cli/skill.md:317 still says there are three providers, omits MiniMax from provider, and calls model ElevenLabs-only. Update the checked-in agent contract and its focused CLI coverage so winnode users can discover and invoke the newly supported provider correctly.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8ac00c5f4977.

Labels

Label changes:

  • add P2: The proposed MiniMax flow has a concrete Settings preview failure but affects only users who select the new provider.
  • add merge-risk: 🚨 security-boundary: The PR adds storage and use of a third-party cloud credential plus a region-selected outbound synthesis endpoint.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body lists focused test commands but provides no after-fix Windows Settings view, winnode or raw MCP invocation, or redacted live MiniMax synthesis output from the current head. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P2: The proposed MiniMax flow has a concrete Settings preview failure but affects only users who select the new provider.
  • merge-risk: 🚨 security-boundary: The PR adds storage and use of a third-party cloud credential plus a region-selected outbound synthesis endpoint.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body lists focused test commands but provides no after-fix Windows Settings view, winnode or raw MCP invocation, or redacted live MiniMax synthesis output from the current head. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

Likely related people:

  • Barbara Kudiess: Authored the prior resilient TTS fallback and readiness implementation that this provider extension follows. (role: introduced TTS fallback and readiness behavior; confidence: high; commits: ff5cafb52f52; files: src/OpenClaw.Tray.WinUI/Services/TextToSpeech/TextToSpeechService.cs, src/OpenClaw.Shared/Capabilities/TtsCapability.cs)
  • Régis Brid: Repository history identifies this contributor on the original MCP-callable Piper TTS capability work that established the broader node-command surface. (role: original TTS capability contributor; confidence: medium; commits: b0ba9affa25d; files: src/OpenClaw.Shared/Capabilities/TtsCapability.cs, src/OpenClaw.Shared/Mcp/McpToolBridge.cs)
  • Scott Hanselman: Recent history includes tray test and Windows-node documentation work adjacent to the affected settings and agent-facing contract. (role: recent adjacent tray and CLI contributor; confidence: medium; commits: 4166e0fd63f8; files: tests/OpenClaw.Tray.Tests, src/OpenClaw.WinNode.Cli/skill.md)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Fix the active-provider Preview voice selection and add a regression test.
  • Update src/OpenClaw.WinNode.Cli/skill.md and its applicable command-contract coverage.
  • Add redacted current-head UI and MCP proof, including a real MiniMax synthesis result; redact API keys, IPs, and non-public endpoints.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to inactivity.
Please update it or it will be closed.

@github-actions github-actions Bot added the stale label Aug 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Closing due to inactivity.
If this PR should be revived, reopen it with current context and a fresh validation plan.

@github-actions github-actions Bot closed this Aug 25, 2026
@karkarl karkarl added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Aug 26, 2026
@karkarl karkarl removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Aug 26, 2026
@karkarl

karkarl commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Maintainer edits are disabled on this cross-repository branch, so the reviewed rebase could not be pushed here. The current-main, hardened successor is #1233; this PR remains closed to avoid duplicate open review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P2 Normal priority bug or improvement with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. stale status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants