speech to text batch API + python exception

Omkar 6 Reputation points
2021-03-05T17:34:40.217+00:00

Hi,

Im trying to use Speech to text Batch API. Currently im getting the error below.

Also, the audio file content URI provided is publicly accessible.

HTTP response body: {
"code": "InvalidRequest",
"message": "A valid value is required for transcription.dataset. OR A valid value is required for transcription.contentUrls. OR Only absolute URIs containing a valid scheme, authority and path are allowed for transcription.contentContainerUrl.",
"innerError": {
"code": "InvalidPayload",
"message": "A valid value is required for transcription.dataset. OR A valid value is required for transcription.contentUrls. OR Only absolute URIs containing a valid scheme, authority and path are allowed for transcription.contentContainerUrl."
}
}

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,411 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,414 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 46,991 Reputation points
    2021-03-23T09:06:29.72+00:00

    Hello @Omkar

    As the document says, .ogg file should work.
    80582-image.png

    One possible reason is I am not sure is this address is accessible for public. If the address is private and need authentication, you may have trouble to use it. Since the url is not valid now, I can not reproduce using your file again. But a quick way to do it is trying with public file to see if this works or not.

    Another possible reason is: there was an issue may cause this issue but it has been solved now. Please try again and let us know if you still have issue for this.

    Sorry for the delay. Hope this hopes.

    Regards,
    Yutong

    0 comments No comments