Updating
This commit is contained in:
+5
-2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user