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:237)
at java.lang.Thread.run(Thread.java:818)
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:237)
at java.lang.Thread.run(Thread.java:818)
咩日呛美:
No implementation found for int com.baidu.speechsynthesizer.utility.SpeechDecoder.decodeWithCallback(byte[], java.lang.Object) (tried Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decodeWithCallback and Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decodeWithCallback___3BLjava_lang_Object_2)
回复咩日呛美:
不知道您的具体问题,什么场景下发生的
No implementation found for int com.baidu.speechsynthesizer.utility.SpeechDecoder.decodeWithCallback(byte[], java.lang.Object) (tried Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decodeWithCallback and Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decodeWithCallback___3BLjava_lang_Object_2)
根据你的log看,确实是由于so库没有找到导致不能使用的。不排除冲突导致识别的so库不能使用的,我们的so库使用的默认的加载方式,可以在网上查一下,默认加载so库的方式so库存放的路径,在相应的路径下找一下,看so库是否随着应用一起安装到手机里了。
我写的Demo就可以用,然而我自己的项目就用不了, 是不是因为我的项目中也有其他的So库 他们冲突啊
请检查一下是否是你的so库没有正确导入导致的。