Spaces:
Sleeping
Sleeping
Update static/js/ws.js
Browse files- static/js/ws.js +1 -1
static/js/ws.js
CHANGED
@@ -63,7 +63,7 @@ startRecordingButton.addEventListener('click', async () => {
|
|
63 |
}
|
64 |
stream = await navigator.mediaDevices.getUserMedia({audio: true, video: false});
|
65 |
mediaRecorder = new MediaRecorder(stream);
|
66 |
-
ws = new WebSocket(`
|
67 |
ws.onclose = (event) => {
|
68 |
if (mediaRecorder && mediaRecorder.state !== 'inactive') {
|
69 |
mediaRecorder.stop();
|
|
|
63 |
}
|
64 |
stream = await navigator.mediaDevices.getUserMedia({audio: true, video: false});
|
65 |
mediaRecorder = new MediaRecorder(stream);
|
66 |
+
ws = new WebSocket(`wss://brestok-psycological-bot.hf.space/ws/${uuid}`);
|
67 |
ws.onclose = (event) => {
|
68 |
if (mediaRecorder && mediaRecorder.state !== 'inactive') {
|
69 |
mediaRecorder.stop();
|