Android
In this section, we describe the Android app for forced alignment. The source code is in android/SherpaOnnxForcedAlignment.
Hint
It runs locally on your phone, without internet connection. No audio is uploaded anywhere.
The app takes an audio/video file (or a microphone recording) and its transcript and shows a table of the words with their start/end times. You can
click a row to play just that word (sample-accurately cut from the audio)
export the result as a Praat
TextGridor as txt filesshare the result with other apps (WeChat, email, …)
try the whole flow with the bundled example audio
Pre-built APKs
One APK per model and per ABI. Download the APK of your model and ABI from the apk-fa release, e.g. for 64-bit ARM phones:
Model |
Language |
APK |
|
Chinese |
|
|
Chinese |
|
|
Chinese |
|
|
English |
|
|
English |
|
|
English |
The same models exist for the ABIs armeabi-v7a, x86_64 and x86 —
replace arm64-v8a in the file name with your ABI (arm64-v8a is right
for most modern phones). See
scripts/mfa/android.md
for the full table of APKs and how to choose one.
Build from source
Please see android/SherpaOnnxForcedAlignment/README.md for how to build the app yourself.