azure.cognitiveservices.speech SpeechRecognizer canceled automatically

Mia17 41 Reputation points
2022-08-25T05:52:03.22+00:00

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))

SessionEventArgs(session_id=fbae997c309d4f5bae4867cf1ab7f508)

Here's my code

234720-code-python.png

Azure Speech
Azure Speech
An Azure service that integrates speech processing into apps and services.
832 questions
Azure Cognitive Services
Azure Cognitive Services
A group of Azure artificial intelligence services and cognitive APIs that help build intelligent apps.
1,010 questions
{count} votes