Azure Speech To Text Java Client SDK problem

Tomasz Markiewicz 21 Reputation points
2021-09-08T09:07:45.603+00:00

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 AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,762 questions
0 comments No comments
{count} votes

Accepted answer
  1. romungi-MSFT 46,746 Reputation points Microsoft Employee
    2021-09-08T11:49:20.21+00:00

    @Tomasz Markiewicz 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://video2.skills-academy.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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.