我使用的服务是:
百度语音合成 ios 离在线合成版
调用的接口是:
[[BDSSpeechSynthesizer sharedInstance] loadOfflineEngine:offlineEngineTextData speechDataPath:offlineEngineSpeechData licenseFilePath:nil withAppCode:@""];
参数设置情况:
如果设置临时授权文件,就没问题,但启动的时候会说一句临时文件的剩余时间
开发平台和机型:
iPhone 5s
SDK版本号:
ios2.2.2
代码或日志截图(上传截图能帮助您更快解决问题):
2017-01-09 17:34:42.972877 ReadWeb[1406:866957] TTS version info: SDK version: 2.2.2-20160627A+(COE) (Core: CoreTTS_1.0.9 etts: 20200)
[DEBUG][bds_EventManagerTTS.cpp:89]TTS RECEIVE: tts.cmd.load_offline_engine
[DEBUG][AppRunloop.cpp:37]Created runloop Offline main
[DEBUG][bds_EventManagerTTSEngineOffline_Impl.cpp:401]Embedded engine received message: tts.cmd.load_config
[DEBUG][bds_EventManagerTTSEngineOffline_Impl.cpp:873]Verify license failed
[TRACE][AppThread.cpp:294]-------------------------------> threadLauncher
[DEBUG][bds_EventManagerTTSEngineOffline_Impl.cpp:401]Embedded engine received message: tts.cmd.load_config
[DEBUG][bds_EventManagerTTSEngineOffline_Impl.cpp:873]Verify license failed
[DEBUG][bds_EventManagerTTSEngineOffline_Impl.cpp:401]Embedded engine received message: tts.engine.cmd.query.can.synth
[DEBUG][BDSSpeechSynthesizer.mm:412]Outer layer received message tts.return.offline_engine_load
[TRACE][AppThread.cpp:299]<------------------------------ threadLauncher exit
[DEBUG][AppRunloop.cpp:273]Deleted runloop Offline main
[TRACE][AppThread.cpp:47]============================================= AppThread::~AppThread() ====================================
[DEBUG][BDSSpeechSynthesizer.mm:412]Outer layer received message tts.return.offline_engine_load
2017-01-09 17:34:42.975034 ReadWeb[1406:866957] >>>>>>>>>>>>111111111>>>>>>>>>>>>Error Domain=BDTTSErrDomainEmbeddedTTS Code=13828095 "Failed to load offline engine because of license issue: Unknown error code from offline engine. Code: -404" UserInfo={NSLocalizedDescription=Failed to load offline engine because of license issue: Unknown error code from offline engine. Code: -404}
2017-01-09 17:34:42.975313 ReadWeb[1406:866957] >>>>>>99999999>>>>>>>>>>>>>>>Error Domain=BDTTSErrDomainEmbeddedTTS Code=13828095 "Failed to load offline engine because of license issue: Unknown error code from offline engine. Code: -404" UserInfo={NSLocalizedDescription=Failed to load offline engine because of license issue: Unknown error code from offline engine. Code: -404}>>>>>>>>>>>>>>>>>Offline TTS init failed
2017-01-09 17:34:42.979601 ReadWeb[1406:866957] Warning: Attempt to present on whose view is not in the window hierarchy!
[DEBUG][bds_EventManagerTTS.cpp:89]TTS RECEIVE: tts.cmd.load_config
[DEBUG][BDSSpeechSynthesizer.mm:412]Outer layer received message tts.return.config_load
[DEBUG][bds_EventManagerTTS.cpp:89]TTS RECEIVE: tts.cmd.queue_sentence
[DEBUG][BDSSpeechSynthesizer.mm:412]Outer layer received message tts.return.queue_sentence
复现步骤、现象及其他描述:
刚运行久这样
期待你们的帮助,谢谢
多谢。
多谢。
处理完了,appcode 不对,设置 appcode 为 在百度申请的 appid 就行了。我居然没理解,哎,平白浪费了好多天,希望文档能在完善一些。