k2-fsa/sherpa-ncnn

Build sherpa-ncnn for Android ( C++ )

Opened this issue · 31 comments

How is this step applied in detail?
Build sherpa-ncnn (C++ code)
Link
https://k2-fsa.github.io/sherpa/ncnn/android/build-sherpa-ncnn.html

We have described it in detail in the doc.

Could you tell us which step you are not clear about?

We have described it in detail in the doc.

Could you tell us which step you are not clear about?

I tried all the applications (open source) for at least six months and did not find anything better than this application ( sherpa-ncnn-2.1.7-cpu-arm64-v8a-en )

I posted your project to everyone on Facebook, but I did not find a solution to this proble.

it is time to build the C++ code of sherpa-ncnn.

Is there a video of this application?

Is there a video of this application?

Yes, you can find the link to video(s) at README.md of this repo.


Please describe in detail the issues you have when building sherpa-ncnn.

Is there a video of this application?

Yes, you can find the link to video(s) at README.md of this repo.

Please describe in detail the issues you have when building sherpa-ncnn.

I looked at it in the past few days but did not find a video on how to install sherpa-ncnn on Android Studio

If you make this video and put it below the Android project

Or prepare it without steps, as the Vosk api developer did

Although your project gives better results than vosk api
You will find unprecedented demand on your platform

I am a forum. I learned Java and Kotlin and worked on projects on Android Studio. The problem is I do not know C++ which files to choose from your project .

This is why your github is not popular because not all people learn C++ or how to add or convert files.

Thank you for your responses and your efforts

Is there a video of this application?

Yes, you can find the link to video(s) at README.md of this repo.

Please describe in detail the issues you have when building sherpa-ncnn.

I looked at it in the past few days but did not find a video on how to install sherpa-ncnn on Android Studio

If you make this video and put it below the Android project

Or prepare it without steps, as the Vosk api developer did

Although your project gives better results than vosk api
You will find unprecedented demand on your platform

I am a forum. I learned Java and Kotlin and worked on projects on Android Studio. The problem is I do not know C++ which files to choose from your project .

This is why your github is not popular because not all people learn C++ or how to add or convert files.

Thank you for your responses and your efforts

Have you followed the doc for Android?

You are the first user who doesn't know how to do with it after reading the doc.

If you can be more specific about at which step you have issues and what command you have run, we can fix the doc.

I just didn't understand this step
I asked people who didn't know
Build sherpa-ncnn (C+- code)
link
https://k2-fsa.github.io/sherpa/ncnn/android/build-sherpa-ncnn.html
Can you help me use the TeamViewer remote computer control
program?

Please tell us in detail which step you don't understand and what you have done.

By the way, we even have a colab in the doc that you can follow step-by-step.

I just don't know which step you don't understand and the issues/errors you have.

Screenshot_٢٠٢٤٠٢٢٠_٢٢١٢١٨_Samsung Internet

How do I use it on Windows 11 (64x)

The previous steps layer on Android Studio but I stopped here

Please continue reading.

Screenshot 2024-02-22 at 11 03 15

I put it on the command prompt and nothing happened

I put it on the command prompt and nothing happened

Please post a screenshot about what you have run.

Screenshot 2024-02-22 at 11 18 28

We have mentioned it explicitly. The scripts are for linux and macOS.

But you are using Windows. Please follow the instruction in the doc if you are using windows.

You can download pre-built libraries from us and there is no need for you to build them again.

٢٠٢٤٠٢٢٢_٠٥٢٣٤٤

Which file should I choose?

You can download an APK, unzip it, and you will find .so inside.

There are APKs for different ABIs; you need to choose the correct one depending on which ABI you want to use.

For instance, if you want to run it on your phone, you would probably select an APK that contains arm64-v8a in its name.

If you want to run with your emulator on Android Studio and your emulator uses x86_64, then you need to select
an APK that contains x86_64 in its name.

The microphone works but does not convert speech into text

Which model are you using and what changes have you made?

Does pre-built APK work for you?

sherpa-ncnn-2.1.7-cpu-arm64-v8a-en.apk on github (done)
But
My app ( does not work )

Which model are you using?

Do you speak Chinese if you use this model?

Give me English model

Please read our doc. You can find lots of models in the doc.

By the way, you can also find the models after unzipping the APK .

Why is Model 2022 faster than Model 2023?
I want to create a Model?
What are the steps or site that helps me with this?
Can I choose specific words that he will search for (grammar) ?

Could you describe what is Model 2022 and Model 2023. It is not clear what you are referring to.

Also, what is Moodle?

Why is Model sherpa-ncnn-conv-emformer-transducer-2022-12-06 faster than Model sherpa-ncnn-streaming-zipformer-en--2023-02-13?

How can I create my own model?

Can I choose specific words that he will search for (grammar) ?

Why is Model sherpa-ncnn-conv-emformer-transducer-2022-12-06 faster than Model sherpa-ncnn-streaming-zipformer-en--2023-02-13?

Could you give us numbers (e.g., RTF) about how faster is sherpa-ncnn-conv-emformer-transducer-2022-12-06?

Can I choose specific words that he will search for (grammar) ?

We support only greedy_search and modified_beam_search in sherpa-ncnn. The two methods don't support grammar decoding.

Why is Model sherpa-ncnn-conv-emformer-transducer-2022-12-06 faster than Model sherpa-ncnn-streaming-zipformer-en--2023-02-13?

Could you give us numbers (e.g., RTF) about how faster is sherpa-ncnn-conv-emformer-transducer-2022-12-06?

Measuring Time and Retrieving a Result

import kotlin.time.measureTimedValue

val (result, duration) = measureTimedValue {
// ... your code block that produces a result ...
}
println("Result: $result, took: $duration")

link
https://josiassena.com/mastering-time-with-kotlin-inside-the-new-timing-api/