question

OmkarNS-9637 avatar image
0 Votes"
OmkarNS-9637 asked YutongTie-MSFT edited

speech to text batch API + python exception

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-cognitive-servicesazure-speech
· 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.

Hello,

Could you please share the audio file url if it's not confidential? I just tried from my end and not seen any issue.


Regards,
Yutong

0 Votes 0 ·

Sure, I made this one for testing, Please refer to link below
https://auricle-recording.s3.us-east-2.amazonaws.com/test-ogg.ogg

In case its the problem with audio format/audio parameters, Can you suggest any tools/libs to convert it programmatically?

Thanks

0 Votes 0 ·

1 Answer

YutongTie-MSFT avatar image
0 Votes"
YutongTie-MSFT answered YutongTie-MSFT edited

Hello @OmkarNS-9637

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



image.png (27.5 KiB)
image.png (27.5 KiB)
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.