iOS百度语音合成如何设置成离在线模式??
lianzai66 发布于2019-06 浏览:1505 回复:8
0
收藏

我的需求是:

能够在断网后继续播放下一段语音,现在只能播放到当前的这段文字,断网后不能继续合成并播放

收藏
点赞
0
个赞
共8条回复 最后由常熟X小王182回复于2022-12
#9lianzai66回复于2019-06

ERROR: ETTS DOES NOT SUPPORT SIMULATOR/nofflineError offlineError offlineError offlineError = Optional("Offline engine was not properly configured")

Printing description of offlineEngineSpeechData:

▿ Optional

  - some : "/Users/mac/Library/Developer/CoreSimulator/Devices/86D3A7DC-FF05-46EA-8FDA-99D9F166F96B/data/Containers/Bundle/Application/D2BA8BF1-1C75-4801-B913-13D874200ABE/Lianzai.app/Chinese_And_English_Speech_DYY.dat"

Printing description of offlineEngineTextData:

▿ Optional

  - some : "/Users/mac/Library/Developer/CoreSimulator/Devices/86D3A7DC-FF05-46EA-8FDA-99D9F166F96B/data/Containers/Bundle/Application/D2BA8BF1-1C75-4801-B913-13D874200ABE/Lianzai.app/Chinese_And_English_Text.dat"

Printing description of offlineError:

▿ Optional

  - some : Error Domain=BDTTSErrDomainSDKInternal Code=13828098 "Offline engine was not properly configured" UserInfo={NSLocalizedDescription=Offline engine was not properly configured}

打印出来的日志是这样的,然后帖子上面很多人说文件的路径不对,可是我检查了路径,在我app项目里面,所以知道如何解决吗?

0
#8用户已被禁言回复于2019-06
#7 lianzai66回复
Error Domain=BDTTSErrDomainEmbeddedTTS Code=13828094 "Embedded engine is not initialized (This error may be a follow up to a previous failed attempt to load offline engine)" UserInfo={NSLocalizedDescription=Embedded engine is not initialized (This error may be a follow up to a previous failed attempt to load offline engine)} 昨天断点模式查看,断网之后报上面的错误,离线模式未初始化成功
展开

强烈建议用户首先运行SDK包中的Demo工程,Demo工程中详细说明了语音合成的使用方法,并提供了完整的示例。一般情况下,您只需参照demo工程即可完成所有的集成和配置工作。

如果demo中也有你的错误请反馈。

0
#7lianzai66回复于2019-06

Error Domain=BDTTSErrDomainEmbeddedTTS Code=13828094 "Embedded engine is not initialized (This error may be a follow up to a previous failed attempt to load offline engine)" UserInfo={NSLocalizedDescription=Embedded engine is not initialized (This error may be a follow up to a previous failed attempt to load offline engine)}

昨天断点模式查看,断网之后报上面的错误,离线模式未初始化成功

0
#6用户已被禁言回复于2019-06
#5 lianzai66回复
真的没有说明,你们的sdk说明写的太粗糙了,demo也不是很详细,麻烦你给我详细说明一下如何处理
展开

这些在文档里都是有说明,请您仔细查看一下.另外如果觉得文档和sdk有错不详细的地方请举例说明。

0
#5lianzai66回复于2019-06

真的没有说明,你们的sdk说明写的太粗糙了,demo也不是很详细,麻烦你给我详细说明一下如何处理

0
#4用户已被禁言回复于2019-06
#3 lianzai66回复
感谢回复,有没有完整的离在线模式的demo,因为我的场景是希望跟安卓的一样,本段合成完之后,断掉网了,可以继续离线合成下面的很多段,不让播放停止,我现在是读完前面未断网时已经合成好的后,直接停止了读
展开

在sdk里,文档里面有说.

0
#3lianzai66回复于2019-06

感谢回复,有没有完整的离在线模式的demo,因为我的场景是希望跟安卓的一样,本段合成完之后,断掉网了,可以继续离线合成下面的很多段,不让播放停止,我现在是读完前面未断网时已经合成好的后,直接停止了读

0
#2用户已被禁言回复于2019-06

demo在断网后也不能继续播报吗?先测试demo

另外参考下文档和示例 https://ai.baidu.com/docs#/TTS-iOS-SDK/0c6d0937

0
TOP
切换版块