From 5f6f132ea2a0fb3deecdd653c664d69d4b13f09f Mon Sep 17 00:00:00 2001 From: Zeeshaun Date: Mon, 27 Apr 2026 09:21:25 -0500 Subject: [PATCH] Updating --- .../LCU.Webapps.Marketing.SPIT/Model/SpitConfiguration.cs | 4 +--- .../LCU.Webapps.Marketing.SPIT/Pages/Index.razor | 2 +- .../Services/TextToSpeechService.cs | 4 ++-- .../LCU.Webapps.Marketing.SPIT/appsettings.json | 8 ++++---- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/Model/SpitConfiguration.cs b/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/Model/SpitConfiguration.cs index a810b11..6769f16 100644 --- a/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/Model/SpitConfiguration.cs +++ b/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/Model/SpitConfiguration.cs @@ -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)) { diff --git a/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/Pages/Index.razor b/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/Pages/Index.razor index 3e670a4..d763781 100644 --- a/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/Pages/Index.razor +++ b/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/Pages/Index.razor @@ -218,7 +218,7 @@ "synthesizeSpeech", spitConfiguration.SpeechApiKey, spitConfiguration.Region, - spitConfiguration.SpeechEndpoint + spitConfiguration.WebsocketUrl, + spitConfiguration.ResolveSpeechSdkEndpointUri()?.ToString(), _textToSpeech.Ssml); } diff --git a/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/Services/TextToSpeechService.cs b/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/Services/TextToSpeechService.cs index e8040ab..36a6277 100644 --- a/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/Services/TextToSpeechService.cs +++ b/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/Services/TextToSpeechService.cs @@ -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( diff --git a/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/appsettings.json b/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/appsettings.json index 1ecb4da..ec3f771 100644 --- a/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/appsettings.json +++ b/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/LCU.Webapps.Marketing.SPIT/appsettings.json @@ -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",