百度语音合成失败-102中包含(-101)
teng_si 发布于2018-08 浏览:4279 回复:2
0
收藏

08-30 07:59:18.351 13025-13025/com.stv.voice I/TTSClientBaidu: path: /storage/emulated/0/baiduTTS
08-30 07:59:18.386 13025-13025/com.stv.voice D/bdtts-AInterceptorHandler: proxy=com.baidu.tts.o.a.c@694d27f
08-30 07:59:18.387 13025-13025/com.stv.voice D/bdtts-NameThreadFactory: threadName=LoggerChainPoolThread(1)
08-30 07:59:18.388 13025-13025/com.stv.voice D/bdtts-CallbackInterceptor: method=setTtsListener
08-30 07:59:18.404 13025-13025/com.stv.voice D/bdtts-AInterceptorHandler: proxy=com.baidu.tts.a.b.a$1@bae179b
afterResult=0
08-30 07:59:18.418 13025-13025/com.stv.voice D/bdtts-AuthClient: enter authMix
+ await
08-30 07:59:18.439 13025-13048/com.stv.voice D/bdtts-AuthClient: pid=null
08-30 07:59:18.442 13025-13048/com.stv.voice D/bdtts-AuthClient: ak=uAVXuQGT5NdkxRt4QM402OmmEoWV94kq
sk=op2gDtPV9LKCasZkG7oBInIk9apTGWsb
08-30 07:59:18.464 13025-13048/com.stv.voice D/bdtts-Memorizer: + run f=java.util.concurrent.FutureTask@2adbf4d
08-30 07:59:18.465 13025-13048/com.stv.voice D/bdtts-OnlineAuth: enter online auth
08-30 07:59:18.481 13025-13049/com.stv.voice D/bdtts-AuthClient: appCode=8217084
licenseFilePath=/data/user/0/com.stv.voice/files/baidu_tts_license
08-30 07:59:18.484 13025-13049/com.stv.voice D/bdtts-Memorizer: + run f=java.util.concurrent.FutureTask@d4bd44e
08-30 07:59:18.492 13025-13048/com.stv.voice D/bdtts-OnlineAuth: url=https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=uAVXuQGT5NdkxRt4QM402OmmEoWV94kq&client_secret=op2gDtPV9LKCasZkG7oBInIk9apTGWsb
08-30 07:59:18.534 13025-13049/com.stv.voice W/DeviceId: galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
08-30 07:59:18.534 13025-13049/com.stv.voice I/chatty: uid=10085(com.stv.voice) Thread-6 identical 1 line
08-30 07:59:18.534 13025-13049/com.stv.voice W/DeviceId: galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
08-30 07:59:18.585 13025-13049/com.stv.voice D/bdtts-OfflineAuth: + downloadLicense
08-30 07:59:18.587 13025-13049/com.stv.voice D/bdtts-EmbeddedSynthesizerEngine: before load gnustl_shared
08-30 07:59:18.599 13025-13049/com.stv.voice D/bdtts-EmbeddedSynthesizerEngine: before load BDSpeechDecoder_V1
08-30 07:59:18.615 13025-13049/com.stv.voice D/bdtts-EmbeddedSynthesizerEngine: before load bd_etts
08-30 07:59:18.651 13025-13049/com.stv.voice D/bdtts-EmbeddedSynthesizerEngine: before load bdtts
08-30 07:59:18.655 13025-13049/com.stv.voice D/bdtts-EmbeddedSynthesizerEngine: after load bdtts
08-30 07:59:19.675 13025-13049/com.stv.voice D/bdtts-OfflineAuth: - downloadLicense ret = -101
08-30 07:59:19.676 13025-13049/com.stv.voice D/bdtts-OfflineAuth: this=com.baidu.tts.auth.b$a@30f1e68--error=(-102)offline engine download license failure[(-101)appCode=8217084--licensePath=/data/user/0/com.stv.voice/files/baidu_tts_license]
08-30 07:59:19.676 13025-13049/com.stv.voice D/bdtts-Memorizer: - run f=java.util.concurrent.FutureTask@d4bd44e
08-30 07:59:19.774 13025-13048/com.stv.voice W/ResponseProcessCookies: Invalid cookie header: "Set-Cookie: BAIDUID=DD7AA613A99D72F9AD4C20F1052016D8:FG=1; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2145916555; path=/; domain=.baidu.com; version=1". Unable to parse expires attribute: Thu
08-30 07:59:19.776 13025-13048/com.stv.voice D/bdtts-OnlineAuth: body={"access_token":"24.ee03e9fd74683be89686ae0f35bf7af8.2592000.1538207960.282335-8217084","session_key":"9mzdXqD0qfGWnGBhse0tXgSX1WHtECsPbuxnRPKHC7Ge\/kQnDVP+VGsHNWUQwjU5CCTt9w0gxCmOijVMoqbhyOio88d9","scope":"vis-faceverify_FACE_Police public brain_all_scope wise_adapt lebo_resource_base lightservice_public hetu_basic lightcms_map_poi kaidian_kaidian ApsMisTest_Test\u6743\u9650 vis-classify_flower lpq_\u5f00\u653e cop_helloScope ApsMis_fangdi_permission smartapp_snsapi_base iop_autocar oauth_tp_app smartapp_smart_game_openapi","refresh_token":"25.cfcd46d798b7844c4408f81bc39bc311.315360000.1850975960.282335-8217084","session_secret":"a96f1919e5eafec48d4aedff22358cd4","expires_in":2592000}
--code=200
end online auth
08-30 07:59:19.776 13025-13048/com.stv.voice D/bdtts-Memorizer: - run f=java.util.concurrent.FutureTask@2adbf4d
08-30 07:59:19.777 13025-13025/com.stv.voice D/bdtts-AuthClient: - await
+ mix online get onlineResult=com.baidu.tts.auth.c$a@b2a1f26
- online get
+ mix offline get offlineResult=com.baidu.tts.auth.b$a@3d10767
- offline get
end authMix
08-30 07:59:19.777 13025-13025/com.stv.voice I/TTSClientBaidu: init: auth success
08-30 07:59:19.789 13025-13060/com.stv.voice D/bdtts-AuthClient: appCode=8217084
licenseFilePath=/data/user/0/com.stv.voice/files/baidu_tts_license
08-30 07:59:19.790 13025-13060/com.stv.voice D/bdtts-Memorizer: + get f=java.util.concurrent.FutureTask@d4bd44e
- get f=java.util.concurrent.FutureTask@d4bd44e
arg invalid r=com.baidu.tts.auth.b$a@30f1e68
08-30 07:59:19.791 13025-13060/com.stv.voice D/bdtts-Memorizer: + run f=java.util.concurrent.FutureTask@85cb303
08-30 07:59:19.791 13025-13060/com.stv.voice D/bdtts-OfflineAuth: + downloadLicense
08-30 07:59:20.223 13025-13060/com.stv.voice D/bdtts-OfflineAuth: - downloadLicense ret = -101
08-30 07:59:20.224 13025-13060/com.stv.voice D/bdtts-OfflineAuth: this=com.baidu.tts.auth.b$a@5555280--error=(-102)offline engine download license failure[(-101)appCode=8217084--licensePath=/data/user/0/com.stv.voice/files/baidu_tts_license]
08-30 07:59:20.224 13025-13060/com.stv.voice D/bdtts-Memorizer: - run f=java.util.concurrent.FutureTask@85cb303
08-30 07:59:20.234 13025-13025/com.stv.voice W/AudioTrack: Use of stream types is deprecated for operations other than volume control
See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
08-30 07:59:20.235 13025-13068/com.stv.voice D/bdtts-AuthClient: appCode=8217084
08-30 07:59:20.237 13025-13068/com.stv.voice D/bdtts-AuthClient: licenseFilePath=/data/user/0/com.stv.voice/files/baidu_tts_license
08-30 07:59:20.238 13025-13068/com.stv.voice D/bdtts-Memorizer: + get f=java.util.concurrent.FutureTask@85cb303
08-30 07:59:20.239 13025-13068/com.stv.voice D/bdtts-Memorizer: - get f=java.util.concurrent.FutureTask@85cb303
arg invalid r=com.baidu.tts.auth.b$a@5555280
+ run f=java.util.concurrent.FutureTask@d6d7c5f
08-30 07:59:20.239 13025-13068/com.stv.voice D/bdtts-OfflineAuth: + downloadLicense
08-30 07:59:20.451 13025-13068/com.stv.voice D/bdtts-OfflineAuth: - downloadLicense ret = -101
this=com.baidu.tts.auth.b$a@3fd16ac--error=(-102)offline engine download license failure[(-101)appCode=8217084--licensePath=/data/user/0/com.stv.voice/files/baidu_tts_license]
08-30 07:59:20.452 13025-13068/com.stv.voice D/bdtts-Memorizer: - run f=java.util.concurrent.FutureTask@d6d7c5f
08-30 07:59:20.452 13025-13025/com.stv.voice I/System.out: loadModel result=-102

重点的错误日志com.baidu.tts.auth.b$a@5555280--error=(-102)offline engine download license failure[(-101)appCode=8217084--licensePath=/data/user/0/com.stv.voice/files/baidu_tts_license]

不断的提示“离线授权下载License失败”和“离线合成停止失败”。

首先删除(注释)了临事授权的文件代码,而且离线资源存在可读性。,如果是第一次联网失败,应该怎么解决。

这个问题困扰了很多人,我只是其中一个。提前致谢了。

收藏
点赞
0
个赞
共2条回复 最后由用户已被禁言回复于2022-04
F
#4fhb888回复于2020-10

离线授权下载License失败

0
#2teng_si回复于2018-08

附加一份感觉比较有用的日志

8-30 08:54:41.231 15087-15149/com.stv.voice D/bdtts-OnlineSynthesizer: serverIp=http://202.108.23.94/text2audio
08-30 08:54:41.232 15087-15149/com.stv.voice D/bdtts-OnlineSynthesizer: before post
08-30 08:54:41.508 15087-15149/com.stv.voice W/ResponseProcessCookies: Invalid cookie header: "Set-Cookie: BAIDUID=1DBFEE0905FB7CA7EC3A471027C44D0E:FG=1; expires=Fri, 30-Aug-19 08:54:42 GMT; max-age=31536000; path=/; domain=.baidu.com; version=1". Unable to parse expires attribute: Fri
08-30 08:54:41.509 15087-15149/com.stv.voice D/bdtts-TtsResponseHandler: parseJSON errNo=0
08-30 08:54:41.510 15087-15149/com.stv.voice D/bdtts-SpeechDecoder: before load gnustl_shared
before load BDSpeechDecoder_V1
after load BDSpeechDecoder_V1
08-30 08:54:41.511 15087-15149/com.stv.voice E/com.stv.voice: No implementation found for int com.baidu.speechsynthesizer.utility.SpeechDecoder.decode(byte[], int, short[], int[], int, int) (tried Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decode and Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decode___3BI_3S_3III)
08-30 08:54:41.512 15087-15149/com.stv.voice E/AsyncHttpRH: User-space exception detected!
java.lang.UnsatisfiedLinkError: No implementation found for int com.baidu.speechsynthesizer.utility.SpeechDecoder.decode(byte[], int, short[], int[], int, int) (tried Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decode and Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decode___3BI_3S_3III)
at com.baidu.speechsynthesizer.utility.SpeechDecoder.decode(Native Method)
at com.baidu.tts.a.a.b.a(AudioDecoderAdapter.java:49)
at com.baidu.tts.a.a.b.a(AudioDecoderAdapter.java:14)
at com.baidu.tts.a.a.a.a(AudioDecoder.java:28)
at com.baidu.tts.b.a.b.h.b(TtsResponseHandler.java:120)
at com.baidu.tts.b.a.b.h.a(TtsResponseHandler.java:68)
at com.baidu.tts.b.a.b.g.onSuccess(ResponseHandler.java:67)
at com.baidu.tts.loopj.AsyncHttpResponseHandler.handleMessage(AsyncHttpResponseHandler.java:371)
at com.baidu.tts.loopj.AsyncHttpResponseHandler.sendMessage(AsyncHttpResponseHandler.java:421)
at com.baidu.tts.loopj.AsyncHttpResponseHandler.sendSuccessMessage(AsyncHttpResponseHandler.java:334)
at com.baidu.tts.b.a.b.g.sendResponseMessage(ResponseHandler.java:41)
at com.baidu.tts.loopj.AsyncHttpRequest.makeRequest(AsyncHttpRequest.java:160)
at com.baidu.tts.loopj.AsyncHttpRequest.makeRequestWithRetries(AsyncHttpRequest.java:177)
at com.baidu.tts.loopj.AsyncHttpRequest.run(AsyncHttpRequest.java:107)
at com.baidu.tts.loopj.SyncHttpClient.sendRequest(SyncHttpClient.java:93)
at com.baidu.tts.loopj.AsyncHttpClient.post(AsyncHttpClient.java:1043)
at com.baidu.tts.b.a.b.f$a.a(OnlineSynthesizer.java:250)
at com.baidu.tts.b.a.b.f$a.call(OnlineSynthesizer.java:192)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:764)
08-30 08:54:41.514 15087-15149/com.stv.voice E/AsyncHttpRequest: Unhandled exception origin cause
java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: No implementation found for int com.baidu.speechsynthesizer.utility.SpeechDecoder.decode(byte[], int, short[], int[], int, int) (tried Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decode and Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decode___3BI_3S_3III)
at com.baidu.tts.loopj.AsyncHttpResponseHandler.onUserException(AsyncHttpResponseHandler.java:324)
at com.baidu.tts.loopj.AsyncHttpResponseHandler.handleMessage(AsyncHttpResponseHandler.java:415)
at com.baidu.tts.loopj.AsyncHttpResponseHandler.sendMessage(AsyncHttpResponseHandler.java:421)
at com.baidu.tts.loopj.AsyncHttpResponseHandler.sendSuccessMessage(AsyncHttpResponseHandler.java:334)
at com.baidu.tts.b.a.b.g.sendResponseMessage(ResponseHandler.java:41)
at com.baidu.tts.loopj.AsyncHttpRequest.makeRequest(AsyncHttpRequest.java:160)
at com.baidu.tts.loopj.AsyncHttpRequest.makeRequestWithRetries(AsyncHttpRequest.java:177)
at com.baidu.tts.loopj.AsyncHttpRequest.run(AsyncHttpRequest.java:107)
at com.baidu.tts.loopj.SyncHttpClient.sendRequest(SyncHttpClient.java:93)
at com.baidu.tts.loopj.AsyncHttpClient.post(AsyncHttpClient.java:1043)
at com.baidu.tts.b.a.b.f$a.a(OnlineSynthesizer.java:250)
at com.baidu.tts.b.a.b.f$a.call(OnlineSynthesizer.java:192)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.UnsatisfiedLinkError: No implementation found for int com.baidu.speechsynthesizer.utility.SpeechDecoder.decode(byte[], int, short[], int[], int, int) (tried Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decode and Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decode___3BI_3S_3III)
at com.baidu.speechsynthesizer.utility.SpeechDecoder.decode(Native Method)
at com.baidu.tts.a.a.b.a(AudioDecoderAdapter.java:49)
at com.baidu.tts.a.a.b.a(AudioDecoderAdapter.java:14)
at com.baidu.tts.a.a.a.a(AudioDecoder.java:28)
at com.baidu.tts.b.a.b.h.b(TtsResponseHandler.java:120)
at com.baidu.tts.b.a.b.h.a(TtsResponseHandler.java:68)
at com.baidu.tts.b.a.b.g.onSuccess(ResponseHandler.java:67)
at com.baidu.tts.loopj.AsyncHttpResponseHandler.handleMessage(AsyncHttpResponseHandler.java:371)
at com.baidu.tts.loopj.AsyncHttpResponseHandler.sendMessage(AsyncHttpResponseHandler.java:421) 
at com.baidu.tts.loopj.AsyncHttpResponseHandler.sendSuccessMessage(AsyncHttpResponseHandler.java:334) 
at com.baidu.tts.b.a.b.g.sendResponseMessage(ResponseHandler.java:41) 
at com.baidu.tts.loopj.AsyncHttpRequest.makeRequest(AsyncHttpRequest.java:160) 
at com.baidu.tts.loopj.AsyncHttpRequest.makeRequestWithRetries(AsyncHttpRequest.java:177) 
at com.baidu.tts.loopj.AsyncHttpRequest.run(AsyncHttpRequest.java:107) 
at com.baidu.tts.loopj.SyncHttpClient.sendRequest(SyncHttpClient.java:93) 
at com.baidu.tts.loopj.AsyncHttpClient.post(AsyncHttpClient.java:1043) 
at com.baidu.tts.b.a.b.f$a.a(OnlineSynthesizer.java:250) 
at com.baidu.tts.b.a.b.f$a.call(OnlineSynthesizer.java:192) 
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
at java.lang.Thread.run(Thread.java:764) 
08-30 08:54:41.514 15087-15149/com.stv.voice D/bdtts-TtsResponseHandler: onFailure error = Unhandled exception: java.lang.UnsatisfiedLinkError: No implementation found for int com.baidu.speechsynthesizer.utility.SpeechDecoder.decode(byte[], int, short[], int[], int, int) (tried Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decode and Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decode___3BI_3S_3III)
08-30 08:54:41.515 15087-15149/com.stv.voice D/bdtts-OnlineSynthesizer: after post
08-30 08:54:41.515 15087-15148/com.stv.voice D/bdtts-MixSynthesizer: online synthesize ttserror=(-2)request failure[(cause)java.io.IOException: Unhandled exception: java.lang.UnsatisfiedLinkError: No implementation found for int com.baidu.speechsynthesizer.utility.SpeechDecoder.decode(byte[], int, short[], int[], int, int) (tried Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decode and Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decode___3BI_3S_3III)]
08-30 08:54:41.516 15087-15153/com.stv.voice D/bdtts-AuthClient: appCode=8217084
08-30 08:54:41.517 15087-15153/com.stv.voice D/bdtts-AuthClient: licenseFilePath=/data/user/0/com.stv.voice/files/baidu_tts_license

0
TOP
切换版块