@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.
curl command fails for Whisper Service in Azure OpenAI
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".
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.
2 answers
Sort by: Most helpful
-
-
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.