This commit is contained in:
Zeeshaun
2026-04-27 09:21:25 -05:00
parent ecd687d973
commit 5f6f132ea2
4 changed files with 8 additions and 10 deletions
@@ -44,9 +44,7 @@ namespace LCU.Webapps.Marketing.SPIT.Model
return null;
}
var websocketPath = string.IsNullOrWhiteSpace(WebsocketUrl)
? "/tts/cognitiveservices/websocket/v1"
: WebsocketUrl.Trim();
var websocketPath = WebsocketUrl.Trim();
return new UriBuilder(new Uri(endpoint, websocketPath))
{
@@ -218,7 +218,7 @@
"synthesizeSpeech",
spitConfiguration.SpeechApiKey,
spitConfiguration.Region,
spitConfiguration.SpeechEndpoint + spitConfiguration.WebsocketUrl,
spitConfiguration.ResolveSpeechSdkEndpointUri()?.ToString(),
_textToSpeech.Ssml);
}
@@ -109,7 +109,7 @@ namespace LCU.Webapps.Marketing.SPIT.Services
if (sdkEndpoint != null)
{
Log.Information(
"Using speech SDK endpoint {SpeechSdkEndpoint} for file generation.",
"Using speech SDK endpoint for file generation.",
sdkEndpoint);
return SpeechConfig.FromEndpoint(
@@ -118,7 +118,7 @@ namespace LCU.Webapps.Marketing.SPIT.Services
}
Log.Information(
"SpeechEndpoint is not configured for file generation. Falling back to region {Region}.",
"SpeechEndpoint is not configured for file generation. Falling back to region.",
_spitConfiguration.Region);
return SpeechConfig.FromSubscription(
@@ -4,8 +4,8 @@
"AppName": "Speech Production Interface Tool",
"SeqApiKey": "VALUE-IN-KEYVAULT",
"SeqUrl": "https://qa-seq.lcu-internal.com",
"SpeechApiKey": "ce503e1ea0d94720b4a1f6b66007a2ea",
"SpeechEndpoint": "https://speech-qa-uscz.cognitiveservices.azure.com",
"SpeechApiKey": "VALUE-IN-KEYVAULT",
"SpeechEndpoint": "VALUE-IN-KEYVAULT",
"FetchTokenUri": "/sts/v1.0/issueToken",
"VoicesUrl": "/tts/cognitiveservices/voices/list",
"WebsocketUrl": "/tts/cognitiveservices/websocket/v1",
@@ -23,8 +23,8 @@
},
"AzureAd": {
"TenantId": "63cd1554-2783-4a86-ae50-b9e6c21c9499",
"ClientId": "b756f2d1-8f23-4bbe-b183-c98f6931091c",
"ClientSecret": "HnS8Q~uHMa-hGMEn6tzpTml1AtNow9G.SVBTZaiW",
"ClientId": "VALUE-IN-KEYVAULT",
"ClientSecret": "VALUE-IN-KEYVAULT",
"Instance": "https://login.microsoftonline.com/",
"Domain": "landmarkcu.onmicrosoft.com",
"CallbackPath": "/signin-oidc",