I am using Global MS Azure cognitive services SDK in WEB application (JavaScript) using websocket connection Speech-to-Text. How can I use Speech-to-Text with credentials for MS Azure China? It has different region at least and different link for websocket? Does exist another SDK for China?
Due to some impacts of policy in China, Azure China and Azure Global are two independent systems. If you want to use Azure Speech-to-Text service in China, you should have an Azure China subscription and create a speech-service.
It does have different regions and endpoints in speech-service. If you are using JS SDK to do your development work, there are two things of Azure China Speech service that you need to know :
chinaeast2
chinaeast2.stt.speech.azure.cn
If you are using JS SDK to call Azure Speech-to-Text services, you can still use this SDK here but you should change the endpoint in sdk source code, for instance, in microsoft.cognitiveservices.speech.sdk.bundle.js
you should go to line 6293 to change its host from Azure Global to Azure China:
I also did some test on my side for you ,this is my speech service in Azure China :
Official samle html gets from here .
It works me perfectly on speech to text service.
Hope it helps !