Failed to run Speech service APIs locally.

sam 201 Reputation points

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 Eula=accept Billing=https://********** 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

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


Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,065 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
555 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
1,700 questions
0 comments No comments
{count} votes

Accepted answer
  1. sam 201 Reputation points


    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 38,646 Reputation points Microsoft Employee

    @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.