惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
宝玉的分享
宝玉的分享
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
V
Visual Studio Blog
Last Week in AI
Last Week in AI
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
A
About on SuperTechFans
MyScale Blog
MyScale Blog
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
D
Docker
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
P
Proofpoint News Feed
L
LangChain Blog
Blog — PlanetScale
Blog — PlanetScale
The GitHub Blog
The GitHub Blog
博客园 - 【当耐特】
Martin Fowler
Martin Fowler

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(minimax): normalize tts pitch for api · openclaw/open...
steipete · 2026-04-25 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -91,6 +91,7 @@ Docs: https://docs.openclaw.ai

9191

- Plugins/OpenCode: strip unsupported disabled Responses reasoning payloads for OpenCode image understanding. Fixes #70252.

9292

- Plugins/OpenCode/OpenCode Go: register image understanding metadata so the image tool is available for OpenCode catalog models with vision support. Fixes #70482 and #61789.

9393

- Providers/ElevenLabs: omit the MP3-only `Accept` header for PCM telephony synthesis, so Voice Call requests for `pcm_22050` no longer receive MP3 audio. Fixes #67340. Thanks @marcchabot.

94+

- Providers/MiniMax TTS: truncate fractional pitch overrides before sending T2A requests, matching MiniMax's integer pitch contract while preserving fractional speed and volume. Fixes #62144.

9495

- Providers/MiniMax TTS: transcode voice-note targets to Opus so Feishu/Telegram receive native voice messages instead of MP3 file attachments. Fixes #63540, #64134, and #70445.

9596

- Providers/Microsoft TTS: keep allowlisted bundled speech providers discoverable even when another speech plugin has already registered, so Edge/Microsoft TTS is available alongside OpenAI. Fixes #62117 and #66850.

9697

- Providers/Microsoft TTS: honor legacy `messages.tts.providers.edge` voice settings after normalizing Edge TTS to the Microsoft provider. Fixes #64153.

Original file line numberDiff line numberDiff line change

@@ -255,12 +255,17 @@ The bundled `minimax` plugin registers MiniMax T2A v2 as a speech provider for

255255

- Voice-note targets such as Feishu and Telegram are transcoded from MiniMax

256256

MP3 to 48kHz Opus with `ffmpeg`, because the Feishu/Lark file API only

257257

accepts `file_type: "opus"` for native audio messages.

258+

- MiniMax T2A accepts fractional `speed` and `vol`, but `pitch` is sent as an

259+

integer; OpenClaw truncates fractional `pitch` values before the API request.

258260
259261

| Setting | Env var | Default | Description |

260262

| ---------------------------------------- | ---------------------- | ----------------------------- | -------------------------------- |

261263

| `messages.tts.providers.minimax.baseUrl` | `MINIMAX_API_HOST` | `https://api.minimax.io` | MiniMax T2A API host. |

262264

| `messages.tts.providers.minimax.model` | `MINIMAX_TTS_MODEL` | `speech-2.8-hd` | TTS model id. |

263265

| `messages.tts.providers.minimax.voiceId` | `MINIMAX_TTS_VOICE_ID` | `English_expressive_narrator` | Voice id used for speech output. |

266+

| `messages.tts.providers.minimax.speed` | | `1.0` | Playback speed, `0.5..2.0`. |

267+

| `messages.tts.providers.minimax.vol` | | `1.0` | Volume, `(0, 10]`. |

268+

| `messages.tts.providers.minimax.pitch` | | `0` | Integer pitch shift, `-12..12`. |

264269
265270

### Music generation

266271
Original file line numberDiff line numberDiff line change

@@ -374,7 +374,7 @@ Then run:

374374

- `providers.minimax.voiceId`: voice identifier (default `English_expressive_narrator`, env: `MINIMAX_TTS_VOICE_ID`).

375375

- `providers.minimax.speed`: playback speed `0.5..2.0` (default 1.0).

376376

- `providers.minimax.vol`: volume `(0, 10]` (default 1.0; must be greater than 0).

377-

- `providers.minimax.pitch`: pitch shift `-12..12` (default 0).

377+

- `providers.minimax.pitch`: integer pitch shift `-12..12` (default 0). Fractional values are truncated before calling MiniMax T2A because the API rejects non-integer pitch values.

378378

- `providers.google.model`: Gemini TTS model (default `gemini-3.1-flash-tts-preview`).

379379

- `providers.google.voiceName`: Gemini prebuilt voice name (default `Kore`; `voice` is also accepted).

380380

- `providers.google.baseUrl`: override the Gemini API base URL. Only `https://generativelanguage.googleapis.com` is accepted.

@@ -432,7 +432,7 @@ Available directive keys (when enabled):

432432

- `model` (OpenAI TTS model, ElevenLabs model id, or MiniMax model) or `google_model` (Google TTS model)

433433

- `stability`, `similarityBoost`, `style`, `speed`, `useSpeakerBoost`

434434

- `vol` / `volume` (MiniMax volume, 0-10)

435-

- `pitch` (MiniMax pitch, -12 to 12)

435+

- `pitch` (MiniMax integer pitch, -12 to 12; fractional values are truncated before the MiniMax request)

436436

- `applyTextNormalization` (`auto|on|off`)

437437

- `languageCode` (ISO 639-1)

438438

- `seed`

Original file line numberDiff line numberDiff line change

@@ -309,7 +309,13 @@ describe("buildMinimaxSpeechProvider", () => {

309309

text: "Test",

310310

cfg: {} as never,

311311

providerConfig: { apiKey: "sk-test" },

312-

providerOverrides: { model: "speech-01-240228", voiceId: "custom_voice", speed: 1.5 },

312+

providerOverrides: {

313+

model: "speech-01-240228",

314+

voiceId: "custom_voice",

315+

speed: 1.5,

316+

vol: 1.5,

317+

pitch: 0.5,

318+

},

313319

target: "audio-file",

314320

timeoutMs: 30000,

315321

});

@@ -318,6 +324,8 @@ describe("buildMinimaxSpeechProvider", () => {

318324

expect(body.model).toBe("speech-01-240228");

319325

expect(body.voice_setting.voice_id).toBe("custom_voice");

320326

expect(body.voice_setting.speed).toBe(1.5);

327+

expect(body.voice_setting.vol).toBe(1.5);

328+

expect(body.voice_setting.pitch).toBe(0);

321329

});

322330
323331

it("throws when API key is missing", async () => {

Original file line numberDiff line numberDiff line change

@@ -24,6 +24,10 @@ export function normalizeMinimaxTtsBaseUrl(baseUrl?: string): string {

2424

return trimmed.replace(/\/+$/, "");

2525

}

2626
27+

function normalizeMinimaxTtsPitch(pitch: number): number {

28+

return Math.trunc(pitch);

29+

}

30+
2731

export async function minimaxTTS(params: {

2832

text: string;

2933

apiKey: string;

@@ -70,7 +74,7 @@ export async function minimaxTTS(params: {

7074

voice_id: voiceId,

7175

speed,

7276

vol,

73-

pitch,

77+

pitch: normalizeMinimaxTtsPitch(pitch),

7478

},

7579

audio_setting: {

7680

format,