Implement #107
Browse files
whisperlivekit/web/live_transcription.html
CHANGED
@@ -279,7 +279,7 @@
|
|
279 |
</div>
|
280 |
<div>
|
281 |
<label for="websocketInput">WebSocket URL:</label>
|
282 |
-
<input id="websocketInput" type="text"
|
283 |
</div>
|
284 |
</div>
|
285 |
</div>
|
@@ -315,6 +315,10 @@
|
|
315 |
const linesTranscriptDiv = document.getElementById("linesTranscript");
|
316 |
const timerElement = document.querySelector(".timer");
|
317 |
|
|
|
|
|
|
|
|
|
318 |
chunkSelector.addEventListener("change", () => {
|
319 |
chunkDuration = parseInt(chunkSelector.value);
|
320 |
});
|
|
|
279 |
</div>
|
280 |
<div>
|
281 |
<label for="websocketInput">WebSocket URL:</label>
|
282 |
+
<input id="websocketInput" type="text" />
|
283 |
</div>
|
284 |
</div>
|
285 |
</div>
|
|
|
315 |
const linesTranscriptDiv = document.getElementById("linesTranscript");
|
316 |
const timerElement = document.querySelector(".timer");
|
317 |
|
318 |
+
const defaultWebSocketUrl = `ws://${window.location.hostname}:${window.location.port}/asr`;
|
319 |
+
websocketInput.value = defaultWebSocketUrl;
|
320 |
+
websocketUrl = defaultWebSocketUrl;
|
321 |
+
|
322 |
chunkSelector.addEventListener("change", () => {
|
323 |
chunkDuration = parseInt(chunkSelector.value);
|
324 |
});
|