Updating
This commit is contained in:
+1
-3
@@ -44,9 +44,7 @@ namespace LCU.Webapps.Marketing.SPIT.Model
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
var websocketPath = string.IsNullOrWhiteSpace(WebsocketUrl)
|
var websocketPath = WebsocketUrl.Trim();
|
||||||
? "/tts/cognitiveservices/websocket/v1"
|
|
||||||
: WebsocketUrl.Trim();
|
|
||||||
|
|
||||||
return new UriBuilder(new Uri(endpoint, websocketPath))
|
return new UriBuilder(new Uri(endpoint, websocketPath))
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -218,7 +218,7 @@
|
|||||||
"synthesizeSpeech",
|
"synthesizeSpeech",
|
||||||
spitConfiguration.SpeechApiKey,
|
spitConfiguration.SpeechApiKey,
|
||||||
spitConfiguration.Region,
|
spitConfiguration.Region,
|
||||||
spitConfiguration.SpeechEndpoint + spitConfiguration.WebsocketUrl,
|
spitConfiguration.ResolveSpeechSdkEndpointUri()?.ToString(),
|
||||||
_textToSpeech.Ssml);
|
_textToSpeech.Ssml);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -109,7 +109,7 @@ namespace LCU.Webapps.Marketing.SPIT.Services
|
|||||||
if (sdkEndpoint != null)
|
if (sdkEndpoint != null)
|
||||||
{
|
{
|
||||||
Log.Information(
|
Log.Information(
|
||||||
"Using speech SDK endpoint {SpeechSdkEndpoint} for file generation.",
|
"Using speech SDK endpoint for file generation.",
|
||||||
sdkEndpoint);
|
sdkEndpoint);
|
||||||
|
|
||||||
return SpeechConfig.FromEndpoint(
|
return SpeechConfig.FromEndpoint(
|
||||||
@@ -118,7 +118,7 @@ namespace LCU.Webapps.Marketing.SPIT.Services
|
|||||||
}
|
}
|
||||||
|
|
||||||
Log.Information(
|
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);
|
_spitConfiguration.Region);
|
||||||
|
|
||||||
return SpeechConfig.FromSubscription(
|
return SpeechConfig.FromSubscription(
|
||||||
|
|||||||
+4
-4
@@ -4,8 +4,8 @@
|
|||||||
"AppName": "Speech Production Interface Tool",
|
"AppName": "Speech Production Interface Tool",
|
||||||
"SeqApiKey": "VALUE-IN-KEYVAULT",
|
"SeqApiKey": "VALUE-IN-KEYVAULT",
|
||||||
"SeqUrl": "https://qa-seq.lcu-internal.com",
|
"SeqUrl": "https://qa-seq.lcu-internal.com",
|
||||||
"SpeechApiKey": "ce503e1ea0d94720b4a1f6b66007a2ea",
|
"SpeechApiKey": "VALUE-IN-KEYVAULT",
|
||||||
"SpeechEndpoint": "https://speech-qa-uscz.cognitiveservices.azure.com",
|
"SpeechEndpoint": "VALUE-IN-KEYVAULT",
|
||||||
"FetchTokenUri": "/sts/v1.0/issueToken",
|
"FetchTokenUri": "/sts/v1.0/issueToken",
|
||||||
"VoicesUrl": "/tts/cognitiveservices/voices/list",
|
"VoicesUrl": "/tts/cognitiveservices/voices/list",
|
||||||
"WebsocketUrl": "/tts/cognitiveservices/websocket/v1",
|
"WebsocketUrl": "/tts/cognitiveservices/websocket/v1",
|
||||||
@@ -23,8 +23,8 @@
|
|||||||
},
|
},
|
||||||
"AzureAd": {
|
"AzureAd": {
|
||||||
"TenantId": "63cd1554-2783-4a86-ae50-b9e6c21c9499",
|
"TenantId": "63cd1554-2783-4a86-ae50-b9e6c21c9499",
|
||||||
"ClientId": "b756f2d1-8f23-4bbe-b183-c98f6931091c",
|
"ClientId": "VALUE-IN-KEYVAULT",
|
||||||
"ClientSecret": "HnS8Q~uHMa-hGMEn6tzpTml1AtNow9G.SVBTZaiW",
|
"ClientSecret": "VALUE-IN-KEYVAULT",
|
||||||
"Instance": "https://login.microsoftonline.com/",
|
"Instance": "https://login.microsoftonline.com/",
|
||||||
"Domain": "landmarkcu.onmicrosoft.com",
|
"Domain": "landmarkcu.onmicrosoft.com",
|
||||||
"CallbackPath": "/signin-oidc",
|
"CallbackPath": "/signin-oidc",
|
||||||
|
|||||||
Reference in New Issue
Block a user