question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Batch transcription API Cognitive Services not supported

See original GitHub issue

Describe the bug I cannot run my batch transcription scripts on a newly created Cognitive Services resource. Using the base model and storing files in a storage account.

A previously created Cognitive Services resource is able to perform batch transcription with no problems. Both are configured in the same region and the same pricing plan S0.

Steps to reproduce the behavior:

  1. Create a new Cognitive Services Resource
  2. Store mp3 files in a blob storage resource
  3. Use Python to run a transcription job through cris.ai

Expected behavior Audio files from blob storage are transcribed

Version of the Cognitive Services Speech SDK Using the REST endpoint through swagger-client

Platform, Operating System, and Programming Language

  • OS: Ubuntu Linux
  • Hardware: x64
  • Programming language: Python

Additional context

If I run the same code through my Cognitive Service resource created on the 7th of October 2019 it works as expected. I can see in the azure portal that the features in S0 pricing plan seem to have changed.

Starting transcription client... Deleting all existing completed transcriptions. Traceback (most recent call last): File "azure_batch_transcribe.py", line 185, in <module> transcribe(blob.name, channel) File "azure_batch_transcribe.py", line 122, in transcribe data, status, headers = transcription_api.create_transcription_with_http_info(transcription_definition) File "/home/ubuntu/.venv/lib/python3.6/site-packages/swagger_client/api/custom_speech_transcriptions_api.py", line 127, in create_transcription_with_http_info collection_formats=collection_formats) File "/home/ubuntu/.venv/lib/python3.6/site-packages/swagger_client/api_client.py", line 330, in call_api _preload_content, _request_timeout) File "/home/ubuntu/.venv/lib/python3.6/site-packages/swagger_client/api_client.py", line 161, in __call_api _request_timeout=_request_timeout) File "/home/ubuntu/.venv/lib/python3.6/site-packages/swagger_client/api_client.py", line 373, in request body=body) File "/home/ubuntu/.venv/lib/python3.6/site-packages/swagger_client/rest.py", line 275, in POST body=body) File "/home/ubuntu/.venv/lib/python3.6/site-packages/swagger_client/rest.py", line 228, in request raise ApiException(http_resp=r) swagger_client.rest.ApiException: (400) Reason: Bad Request HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache', 'Pragma': 'no-cache', 'Content-Length': '128', 'Content-Type': 'text/plain; charset=utf-8', 'Expires': '-1', 'Server': 'Microsoft-IIS/10.0', 'api-supported-versions': '2.0, 2.1, 3.0-beta1', 'X-RateLimit-Limit': '50', 'X-RateLimit-Remaining': '48', 'X-RateLimit-Reset': '2019-10-17T11:05:43Z', 'X-Powered-By': 'ASP.NET', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'SAMEORIGIN', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'Set-Cookie': 'ARRAffinity=3647c19a7a3981b48c692477c36543b2a9d277c03e3b2a27224fbc9739009fde;Path=/;HttpOnly;Domain=centralus.cris.ai', 'Date': 'Thu, 17 Oct 2019 11:05:38 GMT'}) HTTP response body: {"code":"InvalidProductId","message":"The subscription SKU \"CognitiveServices.S0\" is not supported in this service instance."}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

7reactions
chrisbasoglucommented, Nov 3, 2019

He means, that from the Azure Portal, when creating a new resource, one should choose the “Speech” resource and not the one called “Cognitive Service”. This can be confusing at first, because Speech is a type of Cognitive Service. S0 refers to the paid version. See screen shot below (chose the black and not the red).

image

2reactions
andrewginnscommented, Oct 21, 2019

Provisioning the ‘Speech’ S0 resource instead of the base ‘Cognitive Services’ S0 resource fixed this error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Cognitive Services - Batch Transcription API ...
Azure Cognitive Services - Batch Transcription API responds with error message "The recording URI is invalid." · I created a speech services ...
Read more >
Azure Batch Speech-to-text - Connectors
Accurately transcribe audio to text in more than 100 languages and variants. As part of Azure AI Speech service, Batch Transcription enables you...
Read more >
Getting started with Microsoft Speech-to-text
Batch transcription is a set of REST API operations that enables transcription of a large amount of audio in storage. Azure blob storage...
Read more >
Azure Cognitive Services Batch Transcription with ... - YouTube
The Prerequisites: Azure Cognitive Services Batch Transcription with Power Automate. 2.7K views · 3 years ago ...more ...
Read more >
Azure Cognitive Services – Speech – Set-AzWebApp
Here a nice write-up from Abhishek about Azure Logic Apps and batch transcript from Blob. First You want to download Azure Speech SDK...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found