recognizeOnceAsync()
方法用于语音识别。它的工作很好。 (用于取消请求stopContinuousRecognitionAsync()
)。它的工作正常,但有时会低于exception
java.util.concurrent.TimeoutException:
com.microsoft.cognitiveservices.speech.internal.SpeechRecognizer.finalize() timed out after 10 seconds com.microsoft.cognitiveservices.speech.internal.carbon_javaJNI.delete_Recognizer(Native Method)
at com.microsoft.cognitiveservices.speech.internal.Recognizer.delete(SourceFile:32)
at com.microsoft.cognitiveservices.speech.internal.SpeechRecognizerBase.delete(SourceFile:37)
at com.microsoft.cognitiveservices.speech.internal.SpeechRecognizer.delete(SourceFile:37)
at com.microsoft.cognitiveservices.speech.internal.SpeechRecognizer.finalize(SourceFile:26)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:191)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:174)
at java.lang.Thread.run(Thread.java:818)