问题描述
com.microsoft.cognitiveservices.speech:client-sdk:1.13.0 我在android微软翻译sdk以上使用。
当我通过以下方式开始翻译时:ognitor.startContinuousRecognitionAsync();
它可以在下面的回调中接收消息,但是大约几十分钟,它无法在回调中接收任何消息。
recognizer.recognizing.addEventListener(new EventHandler() { @Override public void onEvent(Object o,TranslationRecognitionEventArgs translationRecognitionEventArgs) { TranslationRecognitionResult result = translationRecognitionEventArgs.getResult(); Log.e(TAG,"recognizing " + result.toString());
}
});
recognizer.recognized.addEventListener(new EventHandler<TranslationRecognitionEventArgs>() {
@Override
public void onEvent(Object o,TranslationRecognitionEventArgs recognitionResult) {
Log.e(TAG,"recognized result " + recognitionResult.getResult().toString());
}
});
recognizer.synthesizing.addEventListener(new EventHandler() { @Override public void onEvent(Object o,TranslationSynthesisEventArgs translationSynthesisEventArgs) { Log.e(TAG,"synthesizing ");
}
});
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)