diff --git a/diagnostic/index.html b/diagnostic/index.html
index 4307583..cbf9abc 100644
--- a/diagnostic/index.html
+++ b/diagnostic/index.html
@@ -380,7 +380,6 @@
-
@@ -400,27 +399,6 @@
-
-
TTS Diagnose (XTTS)
-
-
-
-
-
-
-
-
-
-
@@ -856,27 +834,6 @@
if (msg.type === 'state') { updateState(msg.state); return; }
if (msg.type === 'log') { addLog(msg.entry.level, msg.entry.source, msg.entry.message, msg.entry.ts); return; }
- if (msg.type === 'tts_result') {
- if (msg.ok) {
- ttsLog(`\u2705 ${msg.voice}: ${msg.duration}ms, ${msg.size} bytes`);
- document.getElementById('tts-status').textContent = 'OK';
- document.getElementById('tts-status').style.color = '#34C759';
- } else {
- ttsLog(`\u274C Fehler: ${msg.error}`);
- document.getElementById('tts-status').textContent = 'Fehler';
- document.getElementById('tts-status').style.color = '#FF3B30';
- document.getElementById('tts-last-error').textContent = msg.error;
- }
- return;
- }
- if (msg.type === 'tts_status') {
- document.getElementById('tts-status').textContent = msg.ok ? 'OK' : 'Fehler';
- document.getElementById('tts-status').style.color = msg.ok ? '#34C759' : '#FF3B30';
- if (msg.error) { document.getElementById('tts-last-error').textContent = msg.error; ttsLog(`Fehler: ${msg.error}`); }
- else { document.getElementById('tts-last-error').textContent = '-'; ttsLog('TTS OK'); }
- return;
- }
-
if (msg.type === 'agent_activity') {
updateThinkingIndicator(msg);
return;
@@ -2089,26 +2046,6 @@
send({ action: 'set_mode', mode });
}
- // ── TTS Diagnose ─────────────────────────────
- function ttsLog(msg) {
- const el = document.getElementById('tts-log');
- const time = new Date().toLocaleTimeString('de-DE');
- el.innerHTML += `[${time}] ${escapeHtml(msg)}
`;
- el.scrollTop = el.scrollHeight;
- }
-
- function testTTS(voice) {
- const text = document.getElementById('tts-test-text').value.trim();
- if (!text) return;
- ttsLog(`Teste ${voice}: "${text}"...`);
- send({ action: 'test_tts', voice, text });
- }
-
- function checkTTSStatus() {
- ttsLog('Pruefe TTS-Status...');
- send({ action: 'check_tts' });
- }
-
function openLightbox(mediaType, url) {
const lb = document.getElementById('lightbox');
if (mediaType === 'video') {
diff --git a/diagnostic/server.js b/diagnostic/server.js
index 85fcd6b..6998a1f 100644
--- a/diagnostic/server.js
+++ b/diagnostic/server.js
@@ -1571,12 +1571,8 @@ wss.on("connection", (ws) => {
} catch {}
sendToRVS_raw({ type: "config", payload: voiceConfig, timestamp: Date.now() });
log("info", "server", `Voice-Config gespeichert: xttsVoice=${voiceConfig.xttsVoice || "default"}, whisper=${voiceConfig.whisperModel || "-"}`);
- } else if (msg.action === "test_tts") {
- handleTestTTS(ws, msg.text || "Test");
} else if (msg.action === "preview_voice") {
handleVoicePreview(ws, msg.voice || "", msg.text || "Hallo.", msg.speed);
- } else if (msg.action === "check_tts") {
- handleCheckTTS(ws);
} else if (msg.action === "check_desktop") {
checkDesktopAvailable(ws);
} else if (msg.action === "load_chat_history") {
@@ -1814,36 +1810,6 @@ async function handleVoicePreview(clientWs, voice, text, speed) {
}
}
-async function handleTestTTS(clientWs, text) {
- try {
- log("info", "server", `TTS-Test via XTTS: "${text}"`);
- // Via RVS an die XTTS-Bridge: xtts_request mit Test-Text
- const requestId = crypto.randomUUID();
- sendToRVS_raw({
- type: "xtts_request",
- payload: { text, language: "de", requestId, voice: "" },
- timestamp: Date.now(),
- });
- clientWs.send(JSON.stringify({ type: "tts_result", ok: true, duration: "pending", size: "?" }));
- } catch (err) {
- clientWs.send(JSON.stringify({ type: "tts_result", ok: false, error: err.message }));
- }
-}
-
-async function handleCheckTTS(clientWs) {
- try {
- // XTTS-Status ueber RVS abfragen (xtts_list_voices)
- sendToRVS_raw({ type: "xtts_list_voices", payload: {}, timestamp: Date.now() });
- clientWs.send(JSON.stringify({
- type: "tts_status",
- ok: true,
- error: null,
- }));
- } catch (err) {
- clientWs.send(JSON.stringify({ type: "tts_status", ok: false, error: err.message }));
- }
-}
-
function checkDesktopAvailable(clientWs) {
// Pruefen ob VNC auf der VM laeuft (Port 5900/5901)
const checkSock = net.connect({ host: "host.docker.internal", port: 5901 }, () => {