Azure Batch Transcription Rest API with ENTRA ID and managed identities is not working

Lakshmi Siva Kumar Viswanadula 65 Reputation points
2024-10-02T19:32:15.18+00:00

I am tried Azure Speech to Text Batch Trancription API with Entra ID. However, Entra ID seems not supported. Can someone help me with an example for rest api with ENTRA ID and managed identities using Python

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,765 questions
{count} votes

Accepted answer
  1. romungi-MSFT 46,751 Reputation points Microsoft Employee
    2024-10-03T07:41:30.1+00:00

    @Lakshmi Siva Kumar Viswanadula For entra, i think you need to create a custom domain. As per this documentation.

    To configure your Speech resource for Microsoft Entra authentication, create a custom domain name and assign roles.

    Since creating a sub domain is irreversible, you might want to create a new resource and try the scenario with custom domain creation, disabling local authentication on the resource and assigning the required roles as mentioned in the above document.

    To get a token for REST API, try the following for authorization request.

    Then calling the STS url({endpoint}/speechtotext/v3.2-preview.2/transcriptions) with additional scope for transcriptions API.

    Additional scope:

    Provide an access token from the JWT returned by the STS of this region. Make sure to add the management scope to the token by adding the following query string to the STS URL: ?scope=speechservicesmanagement

    I hope this helps!!


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.