I had already created a custom domain, my issue was a mis-configured speech config
Unable to connect to speech services private endpoint from vm

Nick Taylor
6
Reputation points
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