Azure OpenAI in Foundry Models
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
result": "Error processing audio: Transcription error: Transcription failed with status code 500: {\n \"error\": {\n \"message\": \"The server had an error processing your request. Sorry about that! You can retry your request, or contact us through an Azure support request at: https://go.microsoft.com/fwlink/?linkid=2213926 if you keep seeing this error. (Please include the request ID b32e155c-1817-4499-a383-47fb0ac55935 in your email.)\",\n \"type\": \"server_error\",\n \"param\": null,\n \"code\": null\n }\n}"
i can view this error when i am trying to call gpt-4o-mini-transcribe
2025-03-20
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Hi A Yaswanth,
Status code 500 indicates a server-side error. It can occur due to a temporary service outage, high system load, or other internal issues.
I tried using gpt-4o-mini-transcribe deployed in eastus2 and it worked fine for me.
Here is the code i used:
import requests
api_key = "<YOUR-API-KEY>"
endpoint = "<YOUR-ENDPOINT>"
deployment = "gpt-4o-mini-transcribe"
api_version = "2025-03-01-preview"
url = f"{endpoint}/openai/deployments/{deployment}/audio/transcriptions?api-version={api_version}"
headers = {
"Authorization": f"Bearer {api_key}"
}
files = {
"file": ("file.mp3", open(r"<YOUR-AUDIO-FILE-PATH>", "rb"), "audio/mpeg")
}
data = {
"model": deployment
}
response = requests.post(url, headers=headers, data=data, files=files)
print(response.status_code)
print(response.json())
Feel free to accept it as an answer.
Thankyou for reaching out to the Microsoft QNA Portal.