fix: voice upload uses send() via server, not client-side sendToRVS_raw
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1249,7 +1249,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadXTTSVoices() {
|
function loadXTTSVoices() {
|
||||||
sendToRVS_raw({ type: 'xtts_list_voices', payload: {}, timestamp: Date.now() });
|
send({ action: 'xtts_list_voices' });
|
||||||
}
|
}
|
||||||
|
|
||||||
function arrayBufferToBase64(buffer) {
|
function arrayBufferToBase64(buffer) {
|
||||||
@@ -1284,11 +1284,7 @@
|
|||||||
const totalSize = samples.reduce((s, f) => s + f.size, 0);
|
const totalSize = samples.reduce((s, f) => s + f.size, 0);
|
||||||
status.textContent = `Sende ${samples.length} Sample(s) (${(totalSize / 1024).toFixed(0)}KB)...`;
|
status.textContent = `Sende ${samples.length} Sample(s) (${(totalSize / 1024).toFixed(0)}KB)...`;
|
||||||
|
|
||||||
sendToRVS_raw({
|
send({ action: 'voice_upload', name, samples });
|
||||||
type: 'voice_upload',
|
|
||||||
payload: { name, samples },
|
|
||||||
timestamp: Date.now(),
|
|
||||||
});
|
|
||||||
|
|
||||||
status.textContent = `Gesendet — warte auf Bestaetigung vom XTTS-Server...`;
|
status.textContent = `Gesendet — warte auf Bestaetigung vom XTTS-Server...`;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
@@ -1165,6 +1165,12 @@ wss.on("connection", (ws) => {
|
|||||||
if (pipelineActive) pipelineEnd(false, "Vom Benutzer abgebrochen");
|
if (pipelineActive) pipelineEnd(false, "Vom Benutzer abgebrochen");
|
||||||
broadcast({ type: "agent_activity", activity: "idle" });
|
broadcast({ type: "agent_activity", activity: "idle" });
|
||||||
dockerExec("aria-core", "openclaw doctor --fix 2>/dev/null || true").catch(() => {});
|
dockerExec("aria-core", "openclaw doctor --fix 2>/dev/null || true").catch(() => {});
|
||||||
|
} else if (msg.action === "voice_upload") {
|
||||||
|
// Voice-Samples an XTTS-Bridge via RVS weiterleiten
|
||||||
|
sendToRVS_raw({ type: "voice_upload", payload: { name: msg.name, samples: msg.samples }, timestamp: Date.now() });
|
||||||
|
log("info", "server", `Voice-Upload '${msg.name}' (${(msg.samples || []).length} Samples) an RVS gesendet`);
|
||||||
|
} else if (msg.action === "xtts_list_voices") {
|
||||||
|
sendToRVS_raw({ type: "xtts_list_voices", payload: {}, timestamp: Date.now() });
|
||||||
} else if (msg.action === "get_voice_config") {
|
} else if (msg.action === "get_voice_config") {
|
||||||
handleGetVoiceConfig(ws);
|
handleGetVoiceConfig(ws);
|
||||||
} else if (msg.action === "send_voice_config") {
|
} else if (msg.action === "send_voice_config") {
|
||||||
|
|||||||
Reference in New Issue
Block a user