iOS语音合成之后再调用唤醒识别失败
wsdark1213 发布于2018-09 浏览:3890 回复:7
0
收藏

一开始调用唤醒、识别之类的都正常,可是调用一下合成之后,再调唤醒、识别就没效果了,不知道怎么回事,又遇到类似问题的小伙伴吗?求解,平台iOS   代码是整合两个demo里面的

收藏
点赞
0
个赞
共7条回复 最后由用户已被禁言回复于2022-04
R
#8RokiApp回复于2021-10

又一个遇到这个问题的,贴出我得错误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.

0
#7飞兔1989回复于2019-11

兄弟,问题解决了么?遇到同样问题了,尝试了很多方法都没效果。

0
#6罕了个风回复于2019-07
#5 用户已被禁言回复
应该是之前的进程没结束,你的输入输出设备要在被停止或暂停之后再进行唤醒
展开

但是我没单独调用线程进程,是 唤醒识别之后调用的合成,我试着注销掉speech的那段代码就可以,[[BDSSpeechSynthesizer sharedInstance] speakSentence:@"您好。" withError:&speakError] 这段,这个要怎么stop,而且我试着[[BDSSpeechSynthesizer sharedInstance] cancel];了,也没用

0
#5用户已被禁言回复于2019-07
#4 罕了个风回复
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.
展开

应该是之前的进程没结束,你的输入输出设备要在被停止或暂停之后再进行唤醒

0
#4罕了个风回复于2019-07
#2 chenxiaoyu3回复
具体的报错是什么  

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.

0
#3罕了个风回复于2019-07

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.

0
#2chenxiaoyu3回复于2018-10

具体的报错是什么

 

0
TOP
切换版块