Skip to content

Commit

Permalink
fix: add new API locations for Microsoft Azure
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Sep 25, 2021
1 parent da8266b commit bce1cbb
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
},

"optionValue_microsoftSpeechApiLoc_centralIn": {
"message": "India Central",
"message": "Central India",
"description": "Value of the option."
},

Expand All @@ -119,11 +119,26 @@
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_westJp": {
"message": "Japan West",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_southBr": {
"message": "Brazil South",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_centralKr": {
"message": "Korea Central",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_northCh": {
"message": "Switzerland North",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_northCentralUs": {
"message": "North Central US",
"description": "Value of the option."
Expand All @@ -134,6 +149,11 @@
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_westCentralUs": {
"message": "West Central US",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_southUk": {
"message": "UK South",
"description": "Value of the option."
Expand Down
4 changes: 4 additions & 0 deletions src/options/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,13 @@ export default {
'centralFr',
'centralIn',
'eastJp',
'westJp',
'southBr',
'centralKr',
'northCh',
'northCentralUs',
'southCentralUs',
'westCentralUs',
'southUk',
'eastUs',
'eastUs2',
Expand Down
8 changes: 8 additions & 0 deletions src/utils/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,20 @@ const microsoftSpeechApiUrls = {
'https://centralindia.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1',
eastJp:
'https://japaneast.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1',
westJp:
'https://japanwest.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1',
southBr:
'https://brazilsouth.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1',
centralKr:
'https://koreacentral.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1',
northCh:
'https://switzerlandnorth.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1',
northCentralUs:
'https://northcentralus.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1',
southCentralUs:
'https://southcentralus.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1',
westCentralUs:
'https://westcentralus.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1',
southUk:
'https://uksouth.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1',
eastUs:
Expand Down

0 comments on commit bce1cbb

Please sign in to comment.