This commit is contained in:
Chris Margach
2025-04-04 10:54:15 +09:00
parent 25fd924bf9
commit 2399487e45

View File

@@ -279,7 +279,7 @@
</div>
<div>
<label for="websocketInput">WebSocket URL:</label>
<input id="websocketInput" type="text" value="ws://localhost:8000/asr" />
<input id="websocketInput" type="text" />
</div>
</div>
</div>
@@ -315,6 +315,10 @@
const linesTranscriptDiv = document.getElementById("linesTranscript");
const timerElement = document.querySelector(".timer");
const defaultWebSocketUrl = `ws://${window.location.hostname}:${window.location.port}/asr`;
websocketInput.value = defaultWebSocketUrl;
websocketUrl = defaultWebSocketUrl;
chunkSelector.addEventListener("change", () => {
chunkDuration = parseInt(chunkSelector.value);
});