Skip to content

am3n/PersianASR

Repository files navigation

Android Persian ASR

MinAPI Release

Android persian automatic speech recognition library based on Alphacephei VOSK.

Resources

Installation

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

Different languages

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

About

Android persian automatic speech recognition library based on Alphacephei VOSK

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages