question

sanm-7576 avatar image
0 Votes"
sanm-7576 asked romungi-MSFT commented

Failed to run Speech service APIs locally.

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-speechazure-container-instancesazure-language-understanding
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

sanm-7576 avatar image
0 Votes"
sanm-7576 answered romungi-MSFT commented

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Interesting, please go ahead and accept your answer so others with similar errors can find this useful. Thanks.

0 Votes 0 ·
romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered romungi-MSFT commented

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


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for response but I believe we need to fill out above form for Preview services only.

0 Votes 0 ·

For speech containers the form needs to be filled out before using them. For example, I have tried the same container for a subscription that is approved to use and another that does not.

Approved Subscription:

108437-image.png


Subscription which is not approved.

108395-image.png


1 Vote 1 ·
image.png (38.9 KiB)
image.png (42.4 KiB)