mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-23 02:08:38 +00:00
fix(voice-call): add speed and instructions to OpenAI TTS config schema (#39226)
Merged via squash.
Prepared head SHA: 775e3063b5
Co-authored-by: ademczuk <5212682+ademczuk@users.noreply.github.com>
Co-authored-by: obviyus <22031114+obviyus@users.noreply.github.com>
Reviewed-by: @obviyus
This commit is contained in:
@@ -279,6 +279,31 @@ describe("config plugin validation", () => {
|
||||
expect(res.ok).toBe(true);
|
||||
});
|
||||
|
||||
it("accepts voice-call OpenAI TTS speed, instructions, and baseUrl config fields", async () => {
|
||||
const res = validateInSuite({
|
||||
agents: { list: [{ id: "pi" }] },
|
||||
plugins: {
|
||||
enabled: true,
|
||||
load: { paths: [voiceCallSchemaPluginDir] },
|
||||
entries: {
|
||||
"voice-call-schema-fixture": {
|
||||
config: {
|
||||
tts: {
|
||||
openai: {
|
||||
baseUrl: "http://localhost:8880/v1",
|
||||
voice: "alloy",
|
||||
speed: 1.5,
|
||||
instructions: "Speak in a cheerful tone",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
expect(res.ok).toBe(true);
|
||||
});
|
||||
|
||||
it("accepts known plugin ids and valid channel/heartbeat enums", async () => {
|
||||
const res = validateInSuite({
|
||||
agents: {
|
||||
|
||||
Reference in New Issue
Block a user