test: tighten azure speech config assertions · openclaw/openclaw@0445078
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -98,21 +98,28 @@ describe("buildAzureSpeechProvider", () => {
|
98 | 98 | }, |
99 | 99 | }); |
100 | 100 | |
101 | | -expect(canonical).toEqual( |
102 | | -expect.objectContaining({ |
103 | | -apiKey: "key", |
104 | | -region: "eastus", |
105 | | -baseUrl: "https://eastus.tts.speech.microsoft.com", |
106 | | -voice: "en-US-AriaNeural", |
107 | | -}), |
108 | | -); |
109 | | -expect(alias).toEqual( |
110 | | -expect.objectContaining({ |
111 | | -apiKey: "alias-key", |
112 | | -endpoint: "https://westus.tts.speech.microsoft.com/cognitiveservices/v1", |
113 | | -baseUrl: "https://westus.tts.speech.microsoft.com", |
114 | | -}), |
115 | | -); |
| 101 | +expect(canonical).toEqual({ |
| 102 | +apiKey: "key", |
| 103 | +region: "eastus", |
| 104 | +endpoint: undefined, |
| 105 | +baseUrl: "https://eastus.tts.speech.microsoft.com", |
| 106 | +voice: "en-US-AriaNeural", |
| 107 | +lang: "en-US", |
| 108 | +outputFormat: "audio-24khz-48kbitrate-mono-mp3", |
| 109 | +voiceNoteOutputFormat: "ogg-24khz-16bit-mono-opus", |
| 110 | +timeoutMs: undefined, |
| 111 | +}); |
| 112 | +expect(alias).toEqual({ |
| 113 | +apiKey: "alias-key", |
| 114 | +region: undefined, |
| 115 | +endpoint: "https://westus.tts.speech.microsoft.com/cognitiveservices/v1", |
| 116 | +baseUrl: "https://westus.tts.speech.microsoft.com", |
| 117 | +voice: "en-US-JennyNeural", |
| 118 | +lang: "en-US", |
| 119 | +outputFormat: "audio-24khz-48kbitrate-mono-mp3", |
| 120 | +voiceNoteOutputFormat: "ogg-24khz-16bit-mono-opus", |
| 121 | +timeoutMs: undefined, |
| 122 | +}); |
116 | 123 | }); |
117 | 124 | |
118 | 125 | it("parses provider-specific TTS directives", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。