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))
SessionEventArgs(session_id=fbae997c309d4f5bae4867cf1ab7f508)
Here's my code
Here's my log file
One row shows that message
Does it mean the audio file is too big?
[97991]: 47569ms SPX_DBG_TRACE_VERBOSE: named_properties.h:281 ISpxPropertyBagImpl::SetStringValue: this=0x0x7fd6a806bda0; name='RESULT-ErrorDetails'; value='Due to service inactivity, the client buffer exceeded maximum size. Resetting the buffer.'
234949-speech-to-txt.log
@Mia17 Could you add additional callbacks similar to this snippet and run the method again?
If the audio file is big you could try with a sample file, if the setup isn't correct it should fail with the same error.
I tried 4 different wav files with the same code, but only 1 file worked
Each wav file looks fine when I played them
The worked wav file is bigger and longer than the failed wav , so I think it's not the size issue
The successed wav file:125MB、duration 1:08:31
Thi failed wav file:105MB、duration 57:19
Below are 3 log files
235963-whatstheweatherlike.log
235939-speech-to-txt-successed.log
235954-speech-to-txt-failed.log
@Mia17 Thanks for sharing. I think the problem is most probably something to do with the content of the failed file, but I am not sure what could have caused the SDK to not process the same.
Could you please add an issue to the SDK repo with the above logs? This would help the SDK team to investigate and advise what could be wrong with this session. Thanks!!
Sign in to comment