This commit is contained in:
Zeeshaun
2026-04-23 14:59:00 +00:00
parent 39e0c65671
commit 76eea5d2f6
@@ -44,11 +44,14 @@ namespace LCU.Webapps.Marketing.SPIT.Model
return null; return null;
} }
return new UriBuilder(endpoint) var websocketPath = string.IsNullOrWhiteSpace(WebsocketUrl)
? "/tts/cognitiveservices/websocket/v1"
: WebsocketUrl.Trim();
return new UriBuilder(new Uri(endpoint, websocketPath))
{ {
Scheme = "wss", Scheme = "wss",
Port = -1, Port = -1,
Path = string.Empty,
Query = string.Empty Query = string.Empty
}.Uri; }.Uri;
} }