How to correctly send a batch transcription job with several URIs?

Rafa Torres 46 Reputation points
2023-08-23T09:10:55.2033333+00:00

I´m trying to send a batch transcription job with URIs through the Azure speech-to-text API, when I send just one audio URI my contentUrls is contentUrls: [stringUri] and everything goes correctly, but when sending multiple audioURIs (contentUrls: [stringUri01, stringUri01]) I received the following error: "The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object"

Each array item is a string, so what could be going wrong?

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

Accepted answer
  1. romungi-MSFT 48,911 Reputation points Microsoft Employee Moderator
    2023-08-23T14:59:16.9066667+00:00

    @Rafa Torres I tried the scenario with the sample given in the documentation with two URLs and it seems to work fine. I think it could be a formating issue with your contentUrls parameter in the body. Could you check if your request body is similarly formed?

    User's image

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

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.