Skip to content

Commit 96c1e4b

Browse files
committed
feat(Text to Speech): Revised service to use the default US South URL if none is supplied
1 parent d6675e5 commit 96c1e4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Scripts/Services/TextToSpeech/v1/TextToSpeech.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ public TextToSpeech(Credentials credentials)
146146
if (credentials.HasCredentials() || credentials.HasWatsonAuthenticationToken() || credentials.HasIamTokenData())
147147
{
148148
Credentials = credentials;
149+
150+
if (string.IsNullOrEmpty(credentials.Url))
151+
{
152+
credentials.Url = Url;
153+
}
149154
}
150155
else
151156
{

0 commit comments

Comments
 (0)