From 978d73d771af67856ba6ce8af4c843f0b21e2d49 Mon Sep 17 00:00:00 2001 From: teahubxyz Date: Wed, 21 Oct 2026 19:15:39 +0000 Subject: [PATCH] havre: speak() takes a response format (Inworld, Orpheus, Chatterbox are wav-only) --- ventures/havre/venice.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ventures/havre/venice.js b/ventures/havre/venice.js index 654d7b9..d10723d 100644 --- a/ventures/havre/venice.js +++ b/ventures/havre/venice.js @@ -141,8 +141,9 @@ export class Venice { } /** a voice note: words read out by a voice model. mood goes to models that take a style prompt; the rest ignore it. */ - async speak({ model, voice, input, mood = "", speed = 1, signal } = {}) { + async speak({ model, voice, input, mood = "", speed = 1, format = "", signal } = {}) { const body = { input: String(input || "").slice(0, 4096), model, speed }; + if (format) body.response_format = format; if (voice) body.voice = voice; if (mood) body.prompt = String(mood).slice(0, 500); const res = await this.raw("/audio/speech", { body, signal });