iPad iOS12语音识别报错
sni60 发布于2019-02-01 17:27 浏览:923 回复:6
0
收藏

A/VAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port 扬声器 (type: Speaker)

目前仅ipad发下有问题,iPhone iOS12 正常的。有没有大佬遇到类似问题的

收藏
点赞
0
个赞
共6条回复 最后由温柔vs先生回复于2019-08-19 10:47
#7温柔vs先生回复于2019-08-19 10:47:47
#6 chrisberg923回复
建议从新集成,参考这里https://ai.baidu.com/docs/#/ASR-iOS-SDK/top
展开

已解决

0
#6chrisberg923回复于2019-08-05 17:38:43
#5 温柔vs先生回复
const NSString* APP_ID = @"16708633"; const NSString* API_KEY = @"vx3PdI0VjIz07Fw0XnXknC6l"; const NSString* SECRET_KEY = @"8i7GICpfMEL9tp42nTBGnKAdKPQTEFhF"; iPad中开始唤醒时控制台打印输出: [DEBUG][bds_StatisticsManager.cpp:84]request body: {"error_code":0,"voice_to_text_result":"","pid":1536,"cmd_type":0,"time":1564725081614754,"app_id":16708633,"cmd_id":0,"pkg":"com.baidu.speech.asrdemo","type":"wakeup","decoder":0} [TRACE][MySynchronousConnection.mm:173][Connection Delegate] Will send request!! [DEBUG][bds_StatisticsManager.cpp:108]statistics post url: http://yuyin.baidu.com/voice?osname=voiceopen&action=usereventflow&wise_cuid=c1b005f5a8e7f33d2a1a14fb49bf7a957e13f2a5&sdk_version=3.0&app_name=com.baidu.speech.asrdemo&platform=iOS%26iPad5%252C1%2612.0%260&os=ios&net_type=-1&appid=16708633&screen=667.000000&sdk_name=ASRSDK&app_signature=-1 [DEBUG][bds_openplatform_stat_uploader.cpp:86]jsonContent: {"error_code":0,"voice_to_text_result":"","pid":1536,"cmd_type":0,"time":1564725081614754,"app_id":16708633,"cmd_id":0,"pkg":"com.baidu.speech.asrdemo","type":"wakeup","decoder":0} [TRACE][MySynchronousConnection.mm:203][Connection Delegate] Did send body data [TRACE][MySynchronousConnection.mm:173][Connection Delegate] Will send request!! [TRACE][MySynchronousConnection.mm:203][Connection Delegate] Did send body data [TRACE][MySynchronousConnection.mm:185][Connection Delegate] Did receive response [TRACE][MySynchronousConnection.mm:193][Connection Delegate] Did receive data [TRACE][MySynchronousConnection.mm:216][Connection Delegate] Did finish upload_start [TRACE][AppThread.cpp:84]Default thread stack size: 524288 WAKED_LICENSE: 2 [WARN][AppThread.cpp:86]Default thread stack is too small, trying to increase size upload_end [ERROR][bds_EventManagerWakeup.cpp:220][Wakeup: Wakeup: engine not initialized.] [TRACE][AppThread.cpp:324]Thread start (SP ~ 0x170066f08, threadID: 0x170067000 [TRACE][MySynchronousConnection.mm:173][Connection Delegate] Will send request!! [TRACE][MySynchronousConnection.mm:203][Connection Delegate] Did send body data [TRACE][MySynchronousConnection.mm:185][Connection Delegate] Did receive response [TRACE][MySynchronousConnection.mm:193][Connection Delegate] Did receive data [TRACE][MySynchronousConnection.mm:216][Connection Delegate] Did finish [DEBUG][bds_offline_engine_stat_uploader.cpp:118]Load offline stat, server response: OFFLINE-PV-UPLOADED [DEBUG][bds_stat_db_helper.cpp:119]Remove stat task 1 [TRACE][MySynchronousConnection.mm:185][Connection Delegate] Did receive response [TRACE][MySynchronousConnection.mm:193][Connection Delegate] Did receive data [TRACE][MySynchronousConnection.mm:216][Connection Delegate] Did finish [DEBUG][bds_openplatform_stat_uploader.cpp:115]STAT_RESP: {"errno":0,"errmsg":""} [DEBUG][bds_openplatform_stat_uploader.cpp:126]stat upload success [DEBUG][bds_openplatform_stat_uploader.cpp:150]end of node list [DEBUG][bds_stat_db_helper.cpp:119]Remove stat task 1
展开

建议从新集成,参考这里https://ai.baidu.com/docs/#/ASR-iOS-SDK/top

0
#5温柔vs先生回复于2019-08-05 16:48:08

const NSString* APP_ID = @"16708633";

const NSString* API_KEY = @"vx3PdI0VjIz07Fw0XnXknC6l";

const NSString* SECRET_KEY = @"8i7GICpfMEL9tp42nTBGnKAdKPQTEFhF";

iPad中开始唤醒时控制台打印输出:

[DEBUG][bds_StatisticsManager.cpp:84]request body: {"error_code":0,"voice_to_text_result":"","pid":1536,"cmd_type":0,"time":1564725081614754,"app_id":16708633,"cmd_id":0,"pkg":"com.baidu.speech.asrdemo","type":"wakeup","decoder":0}

[TRACE][MySynchronousConnection.mm:173][Connection Delegate] Will send request!!

[DEBUG][bds_StatisticsManager.cpp:108]statistics post url: http://yuyin.baidu.com/voice?osname=voiceopen&action=usereventflow&wise_cuid=c1b005f5a8e7f33d2a1a14fb49bf7a957e13f2a5&sdk_version=3.0&app_name=com.baidu.speech.asrdemo&platform=iOS%26iPad5%252C1%2612.0%260&os=ios&net_type=-1&appid=16708633&screen=667.000000&sdk_name=ASRSDK&app_signature=-1

[DEBUG][bds_openplatform_stat_uploader.cpp:86]jsonContent: {"error_code":0,"voice_to_text_result":"","pid":1536,"cmd_type":0,"time":1564725081614754,"app_id":16708633,"cmd_id":0,"pkg":"com.baidu.speech.asrdemo","type":"wakeup","decoder":0}

[TRACE][MySynchronousConnection.mm:203][Connection Delegate] Did send body data

[TRACE][MySynchronousConnection.mm:173][Connection Delegate] Will send request!!

[TRACE][MySynchronousConnection.mm:203][Connection Delegate] Did send body data

[TRACE][MySynchronousConnection.mm:185][Connection Delegate] Did receive response

[TRACE][MySynchronousConnection.mm:193][Connection Delegate] Did receive data

[TRACE][MySynchronousConnection.mm:216][Connection Delegate] Did finish

upload_start

[TRACE][AppThread.cpp:84]Default thread stack size: 524288

WAKED_LICENSE: 2

[WARN][AppThread.cpp:86]Default thread stack is too small, trying to increase size

upload_end

[ERROR][bds_EventManagerWakeup.cpp:220][Wakeup: Wakeup: engine not initialized.]

[TRACE][AppThread.cpp:324]Thread start (SP ~ 0x170066f08, threadID: 0x170067000

[TRACE][MySynchronousConnection.mm:173][Connection Delegate] Will send request!!

[TRACE][MySynchronousConnection.mm:203][Connection Delegate] Did send body data

[TRACE][MySynchronousConnection.mm:185][Connection Delegate] Did receive response

[TRACE][MySynchronousConnection.mm:193][Connection Delegate] Did receive data

[TRACE][MySynchronousConnection.mm:216][Connection Delegate] Did finish

[DEBUG][bds_offline_engine_stat_uploader.cpp:118]Load offline stat, server response: OFFLINE-PV-UPLOADED

[DEBUG][bds_stat_db_helper.cpp:119]Remove stat task 1

[TRACE][MySynchronousConnection.mm:185][Connection Delegate] Did receive response

[TRACE][MySynchronousConnection.mm:193][Connection Delegate] Did receive data

[TRACE][MySynchronousConnection.mm:216][Connection Delegate] Did finish

[DEBUG][bds_openplatform_stat_uploader.cpp:115]STAT_RESP: {"errno":0,"errmsg":""}

[DEBUG][bds_openplatform_stat_uploader.cpp:126]stat upload success

[DEBUG][bds_openplatform_stat_uploader.cpp:150]end of node list

[DEBUG][bds_stat_db_helper.cpp:119]Remove stat task 1

0
#4chrisberg923回复于2019-08-01 18:45:51
#3 温柔vs先生回复
我这边也遇到了,有解决吗

你好,请参考2楼的步骤操作。

0
#3温柔vs先生回复于2019-08-01 17:14:27

我这边也遇到了,有解决吗

0
#2chenxiaoyu3回复于2019-02-03 10:58:00

 

请依次确认以下内容:
SDK 版本:已经切换到最新版本
是否已在Demo中复现:请务必在Demo中复现遇到的错误。无法在Demo复现的问题相对难以定位原因。
 
若能在Demo中复现,请描述:
SDK:(SDK类型,版本号)
初始化引擎代码:(在线引擎、离线引擎代码片段)
APPID:
问题描述:(具体问题,稳定复现/概率)
复现逻辑:(如何复现)
完整日志:(附上开启Debug模式的,从启动到结束的完整日志)

0
TOP
切换版块