Compare commits
3 Commits
v2.0.18
...
sidecar-v1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e90d154b83 | ||
|
|
fa749b571d | ||
|
|
ef188e1f67 |
@@ -320,9 +320,13 @@ class DeepgramTranscriptionEngine:
|
||||
def _build_ws_url_and_headers(self):
|
||||
"""Return ``(url, headers)`` depending on the current mode."""
|
||||
if self.mode == "managed":
|
||||
# Ensure the server URL uses wss:// and append the path
|
||||
# Convert HTTP(S) URLs to WS(S) for WebSocket connection
|
||||
url = self.server_url.rstrip("/")
|
||||
if not url.startswith("ws://") and not url.startswith("wss://"):
|
||||
if url.startswith("https://"):
|
||||
url = "wss://" + url[len("https://"):]
|
||||
elif url.startswith("http://"):
|
||||
url = "ws://" + url[len("http://"):]
|
||||
elif not url.startswith("ws://") and not url.startswith("wss://"):
|
||||
url = f"wss://{url}"
|
||||
url = f"{url}/ws/transcribe"
|
||||
return url, {}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "local-transcription"
|
||||
version = "1.0.12"
|
||||
version = "1.0.13"
|
||||
description = "A standalone desktop application for real-time speech-to-text transcription using Whisper models"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.9"
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
let isCloudMode = $derived(remoteMode === "managed" || remoteMode === "byok");
|
||||
let isCloudOnly = $derived(
|
||||
computeDevices.length > 0 && computeDevices.every(d => d.id === "cloud")
|
||||
computeDevices.some(d => d.id === "cloud")
|
||||
);
|
||||
|
||||
// Room creation / join state
|
||||
|
||||
Reference in New Issue
Block a user