爱冷剑,怜悲箫,月下狼孤啸; 轻点画,慢勾描,云中人逍遥。
暂时未有相关通用技术能力~
阿里云技能认证
详细说明更讽刺的来了:
public void stop() {
JoyPrint.e("NlsClient", "stop is called");
if(this.mIsStarted.get()) {
if(this.mVoiceActDetector.getRecordTime() < this.mMinimalSpeechLength) {
this.mVoiceRecorder.immediateStop();
this.mRecognizeListener.onRecognizingResult(4, (NlsResponse)null);
this.onRealRecogizeEnd();
} else {
this.mVoiceRecorder.immediateStop();
this.onRealRecogizeEnd();
L.i("User stop recognize manually!");
}
} else if(this.mVoiceRecorder != null) {
this.mVoiceRecorder.immediateStop();
}
}
呵呵哒,这里怎么不runOnUIThread
了?我说怎么停止的时候反而收到一个空的识别结果的回调。这里就可以看出SDK设计时onRecognizingResult
的语义的混乱