一开始调用唤醒、识别之类的都正常,可是调用一下合成之后,再调唤醒、识别就没效果了,不知道怎么回事,又遇到类似问题的小伙伴吗?求解,平台iOS 代码是整合两个demo里面的
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块
又一个遇到这个问题的,贴出我得错误log来,上面的爸爸们谁解决了这个问题,回复一下。
[avas] AVAudioSession_iOS.mm:1149 Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session.
兄弟,问题解决了么?遇到同样问题了,尝试了很多方法都没效果。
但是我没单独调用线程进程,是 唤醒识别之后调用的合成,我试着注销掉speech的那段代码就可以,[[BDSSpeechSynthesizer sharedInstance] speakSentence:@"您好。" withError:&speakError] 这段,这个要怎么stop,而且我试着[[BDSSpeechSynthesizer sharedInstance] cancel];了,也没用
应该是之前的进程没结束,你的输入输出设备要在被停止或暂停之后再进行唤醒
AVAudioSession.mm:1079:-[AVAudioSession setActive:withOptions:error:]: Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session.
AVAudioSession.mm:1079:-[AVAudioSession setActive:withOptions:error:]: Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session.
具体的报错是什么