question

TomaszMarkiewicz-2789 avatar image
0 Votes"
TomaszMarkiewicz-2789 asked romungi-MSFT edited

Azure Speech To Text Java Client SDK problem

Hello,

I have problems running samples from client-sdk (https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/quickstart/java/jre, https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/) on my corporate network. On my private network everything works fine so I suspect that websocket port might be blocked. What is default port used by websocket connection in Java SDK? In sdk log file I could only find url (port not mentioned at all): 'wss://westeurope.stt.speech.microsoft.com/speech/recognition/interactive/cognitiveservices/v1?language=en-us'

I assume that it does not use 80/443 as my admin claims those port should work without any problems. Thanks in advance!

Regards,
Tom

azure-speech
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered romungi-MSFT edited

@TomaszMarkiewicz-2789 The SDK is designed to actually create a HTTPS connection and then upgrade to a websocket connection to *.speech.microsoft.com
Please refer to this thread for more details on this implementation.

Since you are using a corporate network do you have to set a proxy connection? You can do this using the SpeechConfig.setProxy() method.

Also, The client SDK will need access to the Azure CRL / OCSP distribution points.

The location of these is listed here: https://docs.microsoft.com/en-us/azure/security/fundamentals/tls-certificate-changes#will-this-change-affect-me


Please don't forgot to click on accept it as answer button 130236-image.png wherever the information provided helps you. This can be beneficial to other community members as well.



image.png (7.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.