qfuxa commited on
Commit
37f1896
·
1 Parent(s): 1f080e4

protocol default to ws

Browse files
README.md CHANGED
@@ -209,6 +209,8 @@ WhisperLiveKit offers extensive configuration options:
209
  | `--no-vad` | Disable Voice Activity Detection | `False` |
210
  | `--buffer_trimming` | Buffer trimming strategy (`sentence` or `segment`) | `segment` |
211
  | `--warmup-file` | Audio file path for model warmup | `jfk.wav` |
 
 
212
 
213
  ## 🔧 How It Works
214
 
 
209
  | `--no-vad` | Disable Voice Activity Detection | `False` |
210
  | `--buffer_trimming` | Buffer trimming strategy (`sentence` or `segment`) | `segment` |
211
  | `--warmup-file` | Audio file path for model warmup | `jfk.wav` |
212
+ | `--ssl-certfile` | Path to the SSL certificate file (for HTTPS support) | `None` |
213
+ | `--ssl-keyfile` | Path to the SSL private key file (for HTTPS support) | `None` |
214
 
215
  ## 🔧 How It Works
216
 
whisperlivekit/web/live_transcription.html CHANGED
@@ -321,7 +321,8 @@
321
 
322
  const host = window.location.hostname || "localhost";
323
  const port = window.location.port || "8000";
324
- const defaultWebSocketUrl = `${window.location.protocol === "https:" ? "wss" : "ws"}://${host}:${port}/asr`;
 
325
  websocketInput.value = defaultWebSocketUrl;
326
  websocketUrl = defaultWebSocketUrl;
327
 
 
321
 
322
  const host = window.location.hostname || "localhost";
323
  const port = window.location.port || "8000";
324
+ const protocol = window.location.protocol === "https:" ? "wss" : "ws";
325
+ const defaultWebSocketUrl = `${protocol}://${host}:${port}/asr`;
326
  websocketInput.value = defaultWebSocketUrl;
327
  websocketUrl = defaultWebSocketUrl;
328