curl command fails for Whisper Service in Azure OpenAI

HM 0 Reputation points
2023-09-19T08:56:30.29+00:00

I am trying to call the whisper service with the curl command.

As you can see in the image below, I have set the deployment name as "whisper".

スクリーンショット 2023-09-19 17.51.50

So I am executing the curl command below,

!curl $AZURE_OPENAI_ENDPOINT/openai/deployments/whisper/audio/transcriptions?api-version=2023-09-01-preview \ -H "api-key: $AZURE_OPENAI_KEY" \ -H "Content-Type: multipart/form-data" \ -F file="@../data/sample.wav"

But, as shown below, no matches found.

zsh:1: no matches found: https://$AZURE_OPENAI_ENDPOINT//openai/deployments/whisper/audio/transcriptions?api-version=2023-09-01-preview

Since it is 404 and not 403, I am wondering if the URL I am specifying is incorrect, and if the deployment name is different, but I do not know the correct name.

I would appreciate any advice anyone can give me.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,915 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ramr-msft 17,736 Reputation points
    2023-09-20T10:54:40.55+00:00

    @HM Thanks for the question, please follow the document for calling whisper API, Can you try with the different delpoyment name as we are able to execute sucessfully.

    User's image

    User's image

    https://techcommunity.microsoft.com/t5/azure-ai-services-blog/announcing-the-preview-of-openai-whisper-in-azure-openai-service/ba-p/3928388

    0 comments No comments

  2. HM 0 Reputation points
    2023-09-25T05:30:34.5266667+00:00

    Self resolved.

    I think it was because I was using zsh, but curl went through by enclosing the url in double quotes as follows.

    "$AZURE_OPENAI_ENDPOINT/openai/deployments/MyDeploymentName/audio/transcriptions?api-version=2023-09-01-preview"

    Thank you for your cooperation.


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.