Skip to content

Commit

Permalink
fix: add new API location for IBM Watson
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Sep 24, 2021
1 parent ead4292 commit da8266b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
"description": "Title of the option."
},

"optionValue_ibmSpeechApiLoc_seoul": {
"message": "Seoul",
"description": "Value of the option."
},

"optionValue_ibmSpeechApiLoc_london": {
"message": "London",
"description": "Value of the option."
Expand Down
1 change: 1 addition & 0 deletions src/options/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ export default {
'microsoftSpeechApi'
],
ibmSpeechApiLoc: [
'seoul',
'london',
'frankfurt',
'dallas',
Expand Down
1 change: 1 addition & 0 deletions src/utils/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ const captchaWitSpeechApiLangCodes = {

// https://cloud.ibm.com/apidocs/speech-to-text#service-endpoint
const ibmSpeechApiUrls = {
seoul: 'https://api.kr-seo.speech-to-text.watson.cloud.ibm.com/v1/recognize',
london: 'https://api.eu-gb.speech-to-text.watson.cloud.ibm.com/v1/recognize',
frankfurt:
'https://api.eu-de.speech-to-text.watson.cloud.ibm.com/v1/recognize',
Expand Down

0 comments on commit da8266b

Please sign in to comment.