david
commited on
Commit
·
0ca36a2
1
Parent(s):
9bdac3d
add fastapi to host websocket
Browse files- frontend/index2.html +1 -1
frontend/index2.html
CHANGED
|
@@ -126,7 +126,7 @@ function addTranslation(result) {
|
|
| 126 |
const source = audioContext.createMediaStreamSource(stream);
|
| 127 |
const processor = audioContext.createScriptProcessor(4096, 1, 1);
|
| 128 |
|
| 129 |
-
const wsUrl = "ws://localhost:9090?from=zh&to=en";
|
| 130 |
ws = new WebSocket(wsUrl);
|
| 131 |
|
| 132 |
ws.binaryType = "arraybuffer";
|
|
|
|
| 126 |
const source = audioContext.createMediaStreamSource(stream);
|
| 127 |
const processor = audioContext.createScriptProcessor(4096, 1, 1);
|
| 128 |
|
| 129 |
+
const wsUrl = "ws://localhost:9090/ws?from=zh&to=en";
|
| 130 |
ws = new WebSocket(wsUrl);
|
| 131 |
|
| 132 |
ws.binaryType = "arraybuffer";
|