From b708890788cfa8f3911f3ca641ff1e50ba033679 Mon Sep 17 00:00:00 2001 From: Quentin Fuxa Date: Fri, 11 Apr 2025 12:14:14 +0200 Subject: [PATCH] protocol default to ws --- README.md | 2 ++ whisperlivekit/web/live_transcription.html | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ffbacc..97bd9d8 100644 --- a/README.md +++ b/README.md @@ -209,6 +209,8 @@ WhisperLiveKit offers extensive configuration options: | `--no-vad` | Disable Voice Activity Detection | `False` | | `--buffer_trimming` | Buffer trimming strategy (`sentence` or `segment`) | `segment` | | `--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 diff --git a/whisperlivekit/web/live_transcription.html b/whisperlivekit/web/live_transcription.html index 6c81c72..d75dddd 100644 --- a/whisperlivekit/web/live_transcription.html +++ b/whisperlivekit/web/live_transcription.html @@ -321,7 +321,8 @@ const host = window.location.hostname || "localhost"; 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; websocketUrl = defaultWebSocketUrl;