Code Monkey home page Code Monkey logo

Comments (7)

csukuangfj avatar csukuangfj commented on August 19, 2024

就会有如下错误

错误在哪里?

请帖 error log 截图

from sherpa-ncnn.

csukuangfj avatar csukuangfj commented on August 19, 2024

这是否意味着我要把整个sherpa-ncnn和ncnn的头文件全部引入我的项目

no no no.

你只需要

  • .so 文件
  • 我们提供的 kotlin 文件

就够了。不需要任何的 c++ 文件(不需要 c++ 头文件,不需要 c++ 源代码)

from sherpa-ncnn.

SchweitzerGAO avatar SchweitzerGAO commented on August 19, 2024

好的,这个问题已经解决了,我是修改了包名称和这个项目中的一样,想是so文件的函数签名不对了。还有一个问题,model.isReady的判定条件是什么?我想设置成长按按钮进行识别并像这个项目一样流式输出,结果发现好像识别不出结果来

from sherpa-ncnn.

csukuangfj avatar csukuangfj commented on August 19, 2024

model.isReady的判定条件是什么

当模型发现,特征队列里面存储的未识别的数据足够多时,is ready 就会返回 true.

from sherpa-ncnn.

csukuangfj avatar csukuangfj commented on August 19, 2024

我是修改了包名称和这个项目中的一样

你不需要修改的。

你可以用任意的 package name, 只要保留我们提供的 .kt 文件中的 package name 不变就可以了.

注意, koltin 里面的 package name, 并不一定要存在对应的文件夹里面。你可以存到任意的文件夹,这个和 java 是不一样的。

你不需要把你自己的 package name 改成我们的。

from sherpa-ncnn.

SchweitzerGAO avatar SchweitzerGAO commented on August 19, 2024

你不需要修改的。

你可以用任意的 package name, 只要保留我们提供的 .kt 文件中的 package name 不变就可以了.

注意, koltin 里面的 package name, 并不一定要存在对应的文件夹里面。你可以存到任意的文件夹,这个和 java 是不一样的。

你不需要把你自己的 package name 改成我们的

倒也没有,我新建了一个包存放这个文件。至于识别不出来的问题,现在已解决了,是我代码的问题。谢谢大佬,就喜欢这样有issue马上回复的collaborator!

from sherpa-ncnn.

csukuangfj avatar csukuangfj commented on August 19, 2024

欢迎使用新一代 Kaldi!

from sherpa-ncnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.