android接入语音识别接口screKey从哪里申请?
i. 初始化
VoiceRecognizer.shareInstance().setSilentTime(1000);
VoiceRecognizer.shareInstance().setListener((VoiceRecognizerListener)this);
if (VoiceRecognizer.shareInstance().init(this, screKey) != 0) {
//初始化失败
}
注:此处的screKey就是在官网上申请的应用授权码;对于语法识别将VoiceRecognizer 类替换成 VoiceRecognizerGrammar。