Implement #107
This commit is contained in:
parent
25fd924bf9
commit
2399487e45
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue