diff --git a/whisperlivekit/web/live_transcription.html b/whisperlivekit/web/live_transcription.html index bdb8803..50f981a 100644 --- a/whisperlivekit/web/live_transcription.html +++ b/whisperlivekit/web/live_transcription.html @@ -282,7 +282,7 @@
- +
@@ -319,6 +319,12 @@ const linesTranscriptDiv = document.getElementById("linesTranscript"); const timerElement = document.querySelector(".timer"); + const host = window.location.hostname || "localhost"; + const port = window.location.port || "8000"; + const defaultWebSocketUrl = `ws://${host}:${port}/asr`; + websocketInput.value = defaultWebSocketUrl; + websocketUrl = defaultWebSocketUrl; + chunkSelector.addEventListener("change", () => { chunkDuration = parseInt(chunkSelector.value); });