I've created an instance of Azure Speech Service and I'm trying to retrieve information using both "regional" url of the service and custom domain name (in the Azure portal I create a custom domain name but I leave "All networks" in the Networking blade).
I've tried to retrieve the list of available voices (from my local machine using postman):
Call Azure Speech Service API using custom domain name
According to this MS-Document, Speech Services use custom subdomains with private endpoints only.
I followed this MS-Document , Created Speech service with custom domain and private endpoint.
I created private endpoint and Virtual Machine
within the same VNet and subnet with cognitive service(speech)
public access disabled.
Now, Inside Virtual machine I can able to retrieve the list of available voices using Custom domain.
Virtual machine: