Skip to content

Commit

Permalink
BREAKING(server): use complete IBM Watson URL instead of location
Browse files Browse the repository at this point in the history
  • Loading branch information
louistiti committed Mar 5, 2021
1 parent f41ea0e commit 2668c29
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/src/config/voice/watson-stt.sample.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"apikey": "",
"location": "us-south"
"url": ""
}
2 changes: 1 addition & 1 deletion server/src/config/voice/watson-tts.sample.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"apikey": "",
"location": "us-south"
"url": ""
}
2 changes: 1 addition & 1 deletion server/src/stt/watson-stt/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ parser.init = () => {
try {
client = new Stt({
authenticator: new IamAuthenticator({ apikey: config.apikey }),
serviceUrl: `https://api.${config.location}.speech-to-text.watson.cloud.ibm.com`
serviceUrl: config.url
})

log.success('Parser initialized')
Expand Down
2 changes: 1 addition & 1 deletion server/src/tts/watson-tts/synthesizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ synthesizer.init = () => {
try {
client = new Tts({
authenticator: new IamAuthenticator({ apikey: config.apikey }),
serviceUrl: `https://api.${config.location}.text-to-speech.watson.cloud.ibm.com`
serviceUrl: config.url
})

log.success('Synthesizer initialized')
Expand Down

0 comments on commit 2668c29

Please sign in to comment.