IOS语音唤醒
Kevin丨Chang 发布于2019-03 浏览:2062 回复:1
0
收藏
快速回复

请教一下初始化错误会是什么原因?

日志如下:

WAKEUP CALLBACK: encount error - Error Domain=38 Code=2490374 "Wakeup: engine initialize failed." UserInfo={NSLocalizedDescription=Wakeup: engine initialize failed., NSHelpAnchor=}.

代码如下:        

        self.wakeupEventManager?.setDelegate(self);

        self.wakeupEventManager?.setParameter("****", forKey: BDS_WAKEUP_APP_CODE);

        let mod = Bundle.main.path(forResource: "bds_easr_basic_model", ofType: "dat");

        let words = Bundle.main.path(forResource: "cmd", ofType: "bin");

        self.wakeupEventManager?.setParameter(words, forKey: BDS_WAKEUP_WORDS_FILE_PATH);

        self.wakeupEventManager?.setParameter(mod, forKey: BDS_WAKEUP_DAT_FILE_PATH);

        self.wakeupEventManager?.setParameter(nil, forKey:BDS_WAKEUP_AUDIO_FILE_PATH);

        self.wakeupEventManager?.setParameter(nil, forKey:BDS_WAKEUP_AUDIO_INPUT_STREAM);

        self.wakeupEventManager?.sendCommand(BDS_WP_CMD_LOAD_ENGINE);

        self.wakeupEventManager?.sendCommand(BDS_WP_CMD_START);

 

收藏
点赞
0
个赞
共1条回复 最后由用户已被禁言回复于2022-04
#2用户已被禁言回复于2019-03

先测试下DEMO,IOS问题请务必再 DEMO 中复现。

如能复现请提供:

1,所用的SDK和版本
2,日志
3,详细的复现逻辑

0
TOP
切换版块