protocol default to ws
This commit is contained in:
parent
3c58bfcfa2
commit
b708890788
2 changed files with 4 additions and 1 deletions
|
|
@ -209,6 +209,8 @@ WhisperLiveKit offers extensive configuration options:
|
||||||
| `--no-vad` | Disable Voice Activity Detection | `False` |
|
| `--no-vad` | Disable Voice Activity Detection | `False` |
|
||||||
| `--buffer_trimming` | Buffer trimming strategy (`sentence` or `segment`) | `segment` |
|
| `--buffer_trimming` | Buffer trimming strategy (`sentence` or `segment`) | `segment` |
|
||||||
| `--warmup-file` | Audio file path for model warmup | `jfk.wav` |
|
| `--warmup-file` | Audio file path for model warmup | `jfk.wav` |
|
||||||
|
| `--ssl-certfile` | Path to the SSL certificate file (for HTTPS support) | `None` |
|
||||||
|
| `--ssl-keyfile` | Path to the SSL private key file (for HTTPS support) | `None` |
|
||||||
|
|
||||||
## 🔧 How It Works
|
## 🔧 How It Works
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -321,7 +321,8 @@
|
||||||
|
|
||||||
const host = window.location.hostname || "localhost";
|
const host = window.location.hostname || "localhost";
|
||||||
const port = window.location.port || "8000";
|
const port = window.location.port || "8000";
|
||||||
const defaultWebSocketUrl = `${window.location.protocol === "https:" ? "wss" : "ws"}://${host}:${port}/asr`;
|
const protocol = window.location.protocol === "https:" ? "wss" : "ws";
|
||||||
|
const defaultWebSocketUrl = `${protocol}://${host}:${port}/asr`;
|
||||||
websocketInput.value = defaultWebSocketUrl;
|
websocketInput.value = defaultWebSocketUrl;
|
||||||
websocketUrl = defaultWebSocketUrl;
|
websocketUrl = defaultWebSocketUrl;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue