Failed to run Speech service APIs locally.

sam 201 Reputation points
2021-06-22T07:01:47.227+00:00

Hi Team, I am trying to run Speech service APIs locally. below is my command.

docker run --rm -it -p 5003:5003 --memory 1g --cpus 1 mcr.microsoft.com/azure-cognitive-services/speechservices/language-detection Eula=accept Billing=https://**********.cognitiveservices.azure.com/ ApiKey=0******2

After running am getting below error

Container is not in a valid state. Subscription validation failed with status 'Invalid'. Api Key is invalid. You must provide an valid API key to run the container. Find your API key and service region under Keys and Endpoint at your Azure Cognitive Services resource blade in the Azure Portal. For more information please visit https://aka.ms/cscontainers-faq.

Note: I am passing correct ApiKey and Endpoint url and my cognitive service is in westeurope region.

TIA.

Azure Speech
Azure Speech
An Azure service that integrates speech processing into apps and services.
816 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
477 questions
Azure Language Understanding (LUIS)
Azure Language Understanding (LUIS)
A feature of Azure Cognitive Service for Language that uses natural language understanding to enable people to interact with apps, bots, and internet of things devices.
100 questions
No comments
{count} votes

Accepted answer
  1. sam 201 Reputation points
    2021-06-23T07:21:09.517+00:00

    Thanks.

    Somehow I am able to run the Speech service APIs locally without filling above form.
    earlier I was facing above issue because I have not given http_proxy to bypass org. level network policy.


1 additional answer

Sort by: Most helpful
  1. romungi-MSFT 29,711 Reputation points Microsoft Employee
    2021-06-22T11:48:51.167+00:00

    @sanyamkulshrestha-7576 Is your gating request approved to use the speech container with a valid resource?
    If not, you need to answer the questionnaire in this form and submit the request before creating a speech resource in the subscription mentioned in the form.