Unable to connect to speech services private endpoint from vm

Nick Taylor 6 Reputation points
2022-11-01T14:36:04.977+00:00

I'm trying to use Speech to text (realtime) and Text to speech services on a private endpoint from a vm running Nodejs (so javascript) all on the same vnet but they are not connecting and failing with a timeout. I am constructing my SpeechConfigs as follows:

STT: SDK.SpeechConfig.fromEndpoint(new URL('https://xxxxxx.privatelink.cognitiveservices.azure.com/stt/speech/recognition/conversation/cognitiveservices/v1?language=en-GB'), 'MS_SUBSCRIPTION_KEY')  
TTS: SDK.SpeechConfig.fromEndpoint(new URL('https://xxxxxx.privatelink.cognitiveservices.azure.com/tts/cognitiveservices/websocket/v1'), 'MS_SUBSCRIPTION_KEY')  

Am I using the correct URLs?

When I use SDK.SpeechConfig.fromSubsciption outside the vnet the TTS and STT work ok so I know the speech services are working.

Thanks in advance

Azure Speech
Azure Speech
An Azure service that integrates speech processing into apps and services.
910 questions
Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
331 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nick Taylor 6 Reputation points
    2022-11-10T14:31:39.64+00:00

    I had already created a custom domain, my issue was a mis-configured speech config

    1 person found this answer helpful.
    0 comments No comments