Android persian automatic speech recognition library based on Alphacephei VOSK.
To use this library in your project add this to your build.gradle:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.am3n:PersianASR:NEWEST-VERSION'
}Add this lines to the proguard-rules.pro
-keep class com.sun.jna.* { *; }
-keepclassmembers class * extends com.sun.jna.* { public *; }
-dontwarn java.awt.Component
-dontwarn java.awt.GraphicsEnvironment
-dontwarn java.awt.HeadlessException
-dontwarn java.awt.Window
If you want to load another language model, just download the
model from VOSK Models
and place it in your project assets folder with the name
asr-model and then clean & rebuild.
See the sample app