diff --git a/services/frontend/src/shared/hooks/useAudioTransmit.ts b/services/frontend/src/shared/hooks/useAudioTransmit.ts index 9f62c05..91f839e 100644 --- a/services/frontend/src/shared/hooks/useAudioTransmit.ts +++ b/services/frontend/src/shared/hooks/useAudioTransmit.ts @@ -6,12 +6,13 @@ const SAMPLE_RATE = 24000; async function sendTransmitCommand(command: string): Promise { // Send via HTTP API - const resp = await fetch(`${getAPIURL()}/voice/command`, { + const resp = await fetch(`${getAPIURL()}/api/voice/command`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ command }), }); if (!resp.ok) { + console.warn("HTTP command response:", resp.status, resp.statusText); const text = await resp.text().catch(() => resp.statusText); console.warn("HTTP command failed:", text); throw new Error(`HTTP ${resp.status}: ${text}`);