-
Notifications
You must be signed in to change notification settings - Fork 532
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
How can I use my own models on Android? #706
Comments
it could be lots of things, if you post the log with the errors it will be easier to say. take a look on this issue i opened an solved yesterday: #701 |
Yes, you are right. Please give us error logs. Otherwise, we don't know what bad things have happened. |
Hello. There is no error output. The APK is created correctly and there
is no apk crashing problem with the published models. However, when I use
my own model, the application crashes on my device. How do I make my own
tokens.txt file? Maybe that's why it collapsed. I have not created tokens
yet
27 Mar 2024 Çar 02:42 tarihinde Fangjun Kuang ***@***.***>
şunu yazdı:
… it could be lots of things, if you post the log with the errors it will be
easier to say. take a look on this issue i opened an solved yesterday:
#701 <#701>
Yes, you are right.
Please give us error logs. Otherwise, we don't know what bad things have
happened.
—
Reply to this email directly, view it on GitHub
<#706 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APEI6Q66OHTE6P74RMK6SLLY2H2VFAVCNFSM6AAAAABFJI4WEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRRGU4TCNRVGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
please use logcat to get the logs. |
Please download any piper model provided by us, unzip it, and you will find the code for adding meta data and for generating tokens.txt |
I implemented it exactly and got the following error in the python code: ImportError: cannot import name 'Lang' from 'iso639' (unknown location) |
Please see sherpa-onnx/scripts/apk/generate-tts-apk-script.py Lines 9 to 10 in a042f44
|
By the way, we have a dedicated page describing how to convert piper models to sherpa-onnx. Please see |
If you know the language code, you don't need to use |
Problem solved. Thank you. This issue can now be closed. The generated apk sometimes becomes unresponsive and the double-talk errors mentioned in #701 persist. This error is also present in apks in your repository. For example sherpa_onnx_1_9_12_arm64_v8a_tr_tts_engine_vits_piper_tr_TR_fahrettin.apk,. Maybe a new issue can be opened for this. |
Could you describe what phone you are using? What type of CPU does your phone have? Also, would you mind providing a video to show the issue? I have never encountered such an issue before. |
Since I am visually impaired, taking video may be a problem. The phone I use is Unihertz Titan Slim. I also have a Blackberry Keyone device. I will try it on that device and write the result here. |
This phone has 4 Cortex A73 CPUs and 4 Cortex A53 CPUs. If it uses A73, then there shouldn't be any issues. |
I can not understand. The apk I created works with the interface on the device, that is, when I write something in the text box and test it, it speaks, but it does not work with talkback or other screen readers, it remains silent. |
Hello.
I have TTS models that I trained with Piper. How can I use this as a TTS engine?
I placed my own TTS model in the android/SherpaOnnxTtsEngine/app/src/main/assets directory, I copied the previously created library files to the jniLibs/arm64-v8a directory.
When I run the APK on the phone, the application crashes. What could be the problem?
The text was updated successfully, but these errors were encountered: