fix(minimax): request hex TTS output explicitly · openclaw/openclaw@739e6cb
efe-arv
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -408,7 +408,7 @@ describe("buildMinimaxSpeechProvider", () => {
|
408 | 408 | return JSON.parse(init.body) as Record<string, unknown>; |
409 | 409 | } |
410 | 410 | |
411 | | -it("makes correct API call and decodes hex response", async () => { |
| 411 | +it("requests non-streaming hex audio and decodes the hex response", async () => { |
412 | 412 | const hexAudio = Buffer.from("fake-audio-data").toString("hex"); |
413 | 413 | const mockFetch = vi.mocked(globalThis.fetch); |
414 | 414 | mockFetch.mockResolvedValueOnce( |
@@ -437,6 +437,8 @@ describe("buildMinimaxSpeechProvider", () => {
|
437 | 437 | const body = firstFetchBody(); |
438 | 438 | expect(body.model).toBe("speech-2.8-hd"); |
439 | 439 | expect(body.text).toBe("Hello world"); |
| 440 | +expect(body.stream).toBe(false); |
| 441 | +expect(body.output_format).toBe("hex"); |
440 | 442 | expect((body.voice_setting as Record<string, unknown>).voice_id).toBe( |
441 | 443 | "English_expressive_narrator", |
442 | 444 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。