语音合成离线报错 (错误代码:-111)
jzy985 发布于2018-08 浏览:4632 回复:2
0
收藏
最后编辑于2022-04

这个问题总是提示合成有问题,不管是中英文或数字都一样的

speechError:(-111)(-111)offline engine synthesize result not 0[(11)]

在线是正常的,测试离线有问题

相关的log如下:

08-11 16:59:10.766 2998-3005/? I/art: Debugger is no longer active
Starting a blocking GC Instrumentation
08-11 16:59:10.793 2998-2998/? W/System: ClassLoader referenced unknown path: /system/priv-app/Ctcc_OpManager/lib/arm
08-11 16:59:10.863 2998-2998/? D/SpeechService: init: text path/storage/emulated/0/Android/data/com.sunelan.opmanager/cache/bdTts:bd_etts_text.dat
speech:/storage/emulated/0/Android/data/com.sunelan.opmanager/cache/bdTts:bd_etts_common_speech_f7_mand_eng_high_am-mix_v3.0.0_20170512.dat
08-11 16:59:10.883 2998-3014/? D/NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: false
08-11 16:59:12.442 2998-3014/com.sunelan.opmanager V/AsyncHttpRH: Request retry no. 1
08-11 16:59:13.946 2998-3014/com.sunelan.opmanager V/AsyncHttpRH: Request retry no. 2
08-11 16:59:15.461 2998-3014/com.sunelan.opmanager V/AsyncHttpRH: Request retry no. 3
08-11 16:59:16.928 2998-2998/com.sunelan.opmanager D/AudioTrack: Client defaulted notificationFrames to 938 for frameCount 2816
08-11 16:59:16.943 2998-2998/com.sunelan.opmanager D/SpeechService: init: auth info :true, getTtsError : null
08-11 16:59:16.949 2998-2998/com.sunelan.opmanager W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1385 android.content.ContextWrapper.startService:613 com.sunelan.opmanager.receives.a.onReceive:-1 android.app.LoadedApk$ReceiverDispatcher$Args.run:1137 android.os.Handler.handleCallback:751
08-11 16:59:16.965 2998-3014/com.sunelan.opmanager V/AsyncHttpRH: Request retry no. 4
08-11 16:59:18.472 2998-3014/com.sunelan.opmanager V/AsyncHttpRH: Request retry no. 5
08-11 16:59:18.475 2998-3014/com.sunelan.opmanager W/System.err: java.net.UnknownHostException: Unable to resolve host "openapi.baidu.com": No address associated with hostname
at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:95)
at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:74)
at java.net.InetAddress.getAllByName(InetAddress.java:752)
08-11 16:59:18.476 2998-3014/com.sunelan.opmanager W/System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:142)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:366)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:492)
at com.baidu.tts.loopj.AsyncHttpRequest.makeRequest()
at com.baidu.tts.loopj.AsyncHttpRequest.makeRequestWithRetries()
at com.baidu.tts.loopj.AsyncHttpRequest.run()
at com.baidu.tts.loopj.SyncHttpClient.sendRequest()
at com.baidu.tts.loopj.AsyncHttpClient.post()
08-11 16:59:18.477 2998-3014/com.sunelan.opmanager W/System.err: at com.baidu.tts.auth.c.d()
at com.baidu.tts.auth.c.call()
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.baidu.tts.k.c.a()
at com.baidu.tts.auth.a$b.a()
at com.baidu.tts.auth.a$b.call()
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.lang.Thread.run(Thread.java:761)
08-11 16:59:18.478 2998-3014/com.sunelan.opmanager D/bdtts-OnlineAuth: this=com.baidu.tts.auth.c$a@cebfc51--error=(-1)online engine auth failure
end online auth
08-11 16:59:18.478 2998-3014/com.sunelan.opmanager D/bdtts-Memorizer: - run f=java.util.concurrent.FutureTask@1b08a7e
08-11 16:59:53.661 2998-2998/com.sunelan.opmanager D/bdtts-NameThreadFactory: threadName=SpeechSynthesizerPoolThread(1)
08-11 16:59:53.665 2998-3037/com.sunelan.opmanager D/bdtts-ArgsCheckInterceptor: text=百度
08-11 16:59:53.666 2998-3037/com.sunelan.opmanager D/bdtts-StatisticsInterceptor: statistics
08-11 16:59:53.666 2998-3037/com.sunelan.opmanager D/bdtts-OfflineAuthNotificationInterceptor: currentCount=0
08-11 16:59:53.668 2998-3038/com.sunelan.opmanager D/bdtts-AuthClient: appCode=11654322
licenseFilePath=/data/user/0/com.sunelan.opmanager/files/baidu_tts_license
08-11 16:59:53.669 2998-3038/com.sunelan.opmanager D/bdtts-Memorizer: + get f=java.util.concurrent.FutureTask@eed06fb
- get f=java.util.concurrent.FutureTask@eed06fb
08-11 16:59:53.676 2998-3038/com.sunelan.opmanager D/bdtts-OfflineAuth: verify result=0
08-11 16:59:53.677 2998-3038/com.sunelan.opmanager D/bdtts-OfflineAuth: get appIdStr=11654322end������������������������������������������
08-11 16:59:53.692 2998-3037/com.sunelan.opmanager D/bdtts-NameThreadFactory: threadName=EngineExecutorPoolThread(1)
08-11 16:59:53.693 2998-3037/com.sunelan.opmanager D/bdtts-AInterceptorHandler: afterResult=0
08-11 16:59:53.695 2998-3040/com.sunelan.opmanager D/bdtts-NameThreadFactory: threadName=PlayExecutorPoolThread(1)
08-11 16:59:53.700 2998-3041/com.sunelan.opmanager D/bdtts-PlayQueueMachine: enter run
08-11 16:59:53.700 2998-3041/com.sunelan.opmanager D/bdtts-AudioTrackPlayer: enter put
end put
08-11 16:59:53.700 2998-3041/com.sunelan.opmanager D/bdtts-PlayQueueMachine: end run
08-11 16:59:53.701 2998-3042/com.sunelan.opmanager D/bdtts-AuthClient: appCode=11654322
licenseFilePath=/data/user/0/com.sunelan.opmanager/files/baidu_tts_license
08-11 16:59:53.701 2998-3042/com.sunelan.opmanager D/bdtts-Memorizer: + get f=java.util.concurrent.FutureTask@eed06fb
- get f=java.util.concurrent.FutureTask@eed06fb
08-11 16:59:53.706 2998-3042/com.sunelan.opmanager D/bdtts-OfflineAuth: verify result=0
get appIdStr=11654322end������������������������������������������
08-11 16:59:53.712 2998-3040/com.sunelan.opmanager D/bdtts-OfflineAuth: verify result=0
get appIdStr=11654322end������������������������������������������
08-11 16:59:53.716 2998-3040/com.sunelan.opmanager D/bdtts-OfflineSynthesizer: engineResult = 11
before bdttssynthesis
after bdttssynthesis result = 11
08-11 16:59:53.730 2998-3040/com.sunelan.opmanager E/SpeechService: onError: s = 0, speechError:(-111)(-111)offline engine synthesize result not 0[(11)]

 

收藏
点赞
0
个赞
共2条回复 最后由vx27422回复于2022-04
#5无名英雄狮回复于2019-01

楼主怎么解决的

1
#2fujiayi1984回复于2018-08

测试下官方demo是否有问题

0
TOP
切换版块