Hi, I am trying the speech recognition API. For live recognition, I use
SFSpeechAudioBufferRecognitionRequest
It works fine in general.
But when I try to use file recognition with
SFSpeechAudioBufferRecognitionRequest
I found that I can't find a way to cancel the recognition? Cancel or kill the request can't stop the call back from result handler. So I need to wait the recognition finish when I receive the result's isFinal flag is true. It make me a little inconvenient if I try to recognize a long audio file and finally decide to cancel the recognition.
Are there some ways to cancel the file recognition directly?
Thank you~~
Eric