-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build sherpa-ncnn for Android ( C++ ) #307
Comments
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? |
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 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 |
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. |
The previous steps layer on Android Studio but I stopped here |
I put it on the command prompt and nothing happened |
Please post a screenshot about what you have run. |
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 If you want to run with your emulator on Android Studio and your emulator uses |
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) |
Which model are you using? |
sherpa-ncnn-conv-emformer-transducer-2022-12-06 https://huggingface.co/csukuangfj/sherpa-ncnn-conv-emformer-transducer-2022-12-06/tree/main |
Do you speak Chinese if you use this 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? |
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) ? |
Could you give us numbers (e.g., RTF) about how faster is |
We support only greedy_search and modified_beam_search in sherpa-ncnn. The two methods don't support grammar decoding. |
Measuring Time and Retrieving a Result import kotlin.time.measureTimedValue val (result, duration) = measureTimedValue { link |
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
The text was updated successfully, but these errors were encountered: