开发者社区> 问答> 正文

智能语音识别nlu android sdk 集成失败, this.enc = this.codec.createEncoder();

报错语句:
OupsCodec.class里的

this.enc = this.codec.createEncoder();

异常信息为:
java.lang.UnsatisfiedLinkError: No implementation found for long com.nlspeech.nlscodec.NlsCodec2.createEncoder() (tried Java_com_nlspeech_nlscodec_NlsCodec2_createEncoder and Java_com_nlspeech_nlscodec_NlsCodec2_createEncoder__)

                                                            at com.nlspeech.nlscodec.NlsCodec2.createEncoder(Native Method)
                                                            at com.alibaba.idst.nls.internal.codec.OupsCodec.open(OupsCodec.java:123)
                                                            at com.alibaba.idst.nls.internal.VoiceCodecs.open(VoiceCodecs.java:21)
                                                            at com.alibaba.idst.nls.internal.VoiceActDetector.open(VoiceActDetector.java:117)
                                                            at com.alibaba.idst.nls.NlsClient.<init>(NlsClient.java:153)
                                                            at com.alibaba.idst.nls.NlsClient.newInstance(NlsClient.java:135)
                                                            at com.way.test.MainActivity.new_init(MainActivity.java:94)
                                                            at com.way.test.MainActivity.onCreate(MainActivity.java:54)
                                                            at android.app.Activity.performCreate(Activity.java:6910)
                                                            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
                                                            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)
                                                            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
                                                            at android.app.ActivityThread.-wrap12(ActivityThread.java)
                                                            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
                                                            at android.os.Handler.dispatchMessage(Handler.java:105)
                                                            at android.os.Looper.loop(Looper.java:156)
                                                            at android.app.ActivityThread.main(ActivityThread.java:6585)
                                                            at java.lang.reflect.Method.invoke(Native Method)
                                                            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
                                                            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)

展开
收起
娜可露露酱 2017-07-15 11:10:52 4291 0
1 条回答
写回答
取消 提交回答
  • 自己以解决,在build.gradle里添加如下代码就好了,之前没有调用.so文件

    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
        }
    }

    希望能将这个添加入sdk文档中,以免像我这样的新手再遇到这样的问题

    2019-07-17 21:23:58
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里云总监课第二期——智能语音自学习平台 立即下载
智能语音客服——大型企业的客服智能化探索 立即下载
无需从0开发-1天上手智能语音离在线方案 立即下载

相关实验场景

更多