From 2668c295880ee753ef7ca26a91dbc7e0901febff Mon Sep 17 00:00:00 2001 From: louistiti Date: Fri, 5 Mar 2021 17:42:24 +0800 Subject: [PATCH] BREAKING(server): use complete IBM Watson URL instead of location --- server/src/config/voice/watson-stt.sample.json | 2 +- server/src/config/voice/watson-tts.sample.json | 2 +- server/src/stt/watson-stt/parser.js | 2 +- server/src/tts/watson-tts/synthesizer.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/config/voice/watson-stt.sample.json b/server/src/config/voice/watson-stt.sample.json index ddf7daa35..12bf6c52e 100644 --- a/server/src/config/voice/watson-stt.sample.json +++ b/server/src/config/voice/watson-stt.sample.json @@ -1,4 +1,4 @@ { "apikey": "", - "location": "us-south" + "url": "" } diff --git a/server/src/config/voice/watson-tts.sample.json b/server/src/config/voice/watson-tts.sample.json index ddf7daa35..12bf6c52e 100644 --- a/server/src/config/voice/watson-tts.sample.json +++ b/server/src/config/voice/watson-tts.sample.json @@ -1,4 +1,4 @@ { "apikey": "", - "location": "us-south" + "url": "" } diff --git a/server/src/stt/watson-stt/parser.js b/server/src/stt/watson-stt/parser.js index 7fe2d4fd1..8c71de6aa 100644 --- a/server/src/stt/watson-stt/parser.js +++ b/server/src/stt/watson-stt/parser.js @@ -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') diff --git a/server/src/tts/watson-tts/synthesizer.js b/server/src/tts/watson-tts/synthesizer.js index 47380afd9..60a88851c 100644 --- a/server/src/tts/watson-tts/synthesizer.js +++ b/server/src/tts/watson-tts/synthesizer.js @@ -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')