Why Speech CLI tool fails to get SAS token URL of audio ?

Anonymous
2023-10-11T04:28:54.2066667+00:00

Hello Speech SPX tool team,

Following doc https://learn.microsoft.com/en-us/azure/ai-services/speech-service/batch-transcription-create?pivots=speech-cli, i'm sending one audio file SAS token URL in Azure Storage Account for batch transcription in below way:

spx batch transcription create --name "test" --content "https://<storage_account_name>.blob.core.windows.net/<container_name>/<file_name_1>?SAS_TOKEN_1" --wait

but get below error message of auth failure:

"errorMessage": "Reason DownloadRecordingsUrisAuthenticationError, Details: Authentication failure when downloading the recording URI. StatusCode: Forbidden. (JobId ad1ea781-6c45-4417-b2db-7d9dcd7447ce).",         "errorKind": "DownloadRecordingsUrisAuthenticationError"

This audio URL is accessible via browsers like Edge and other speech client tool like Speech SDK in python/c# but only fails in SPX.

Any other SPX config i missed here ?

Thanks.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
2,061 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. navba-MSFT 27,540 Reputation points Microsoft Employee Moderator
    2023-10-11T09:15:24.8566667+00:00

    @Anonymous Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I understand that you are facing an issue with the Speech CLI tool while trying to get the SAS token URL of an audio file for batch transcription and encountering error "errorMessage": "Reason DownloadRecordingsUrisAuthenticationError, Details: Authentication failure when downloading the recording URI. StatusCode: Forbidden. (JobId ad1ea781-6c45-4417-b2db-7d9dcd7447ce).", "errorKind": "DownloadRecordingsUrisAuthenticationError"

    While I checked internally at our end for the past issues related to the above error, it was related to invalid SAS token uri.

    Thanks for your time on the call. We regenerated the SAS token and tried to check the transcription url. It was accessible and we were able to get the right transcription text from the audio file stored in storage Account.

    If you encounter the same issue in future, please do let me know. I would be happy to help.

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

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.