azure.cognitiveservices.speech SpeechRecognizer canceled automatically

Mia17 41 Reputation points

I am using azure.cognitiveservices.speech Service to convert an wav content into text

Below is the message I got.

It seems to be canceled by some reason and didn't generate any sentences.

But I check the wav file is good, don't know how to fix it.

SpeechRecognitionCanceledEventArgs(session_id=fbae997c309d4f5bae4867cf1ab7f508, result=SpeechRecognitionResult(result_id=ddf647f11ae643d0a2c212473ac358d0, text="", reason=ResultReason.Canceled))


Here's my code


Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,387 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,363 questions
{count} votes