Installation Guide
Setup termux-stt in Android Termux environment with zero compilation headaches.
Prerequisites in Termux
# Update Termux packages
pkg update && pkg upgrade -y
# Install essential dependencies
pkg install -y python ffmpeg git cmake make clang libandroid-wordexp
Package Installation
# Install from PyPI
pip install termux-stt
# Run automated engine setup
termux-stt-install
# Install globally or locally
npm install -g termux-stt
git clone https://github.com/uno-km/termux-stt.git
cd termux-stt
pip install -e .
bash scripts/install_whisper_cpp.sh
Android Environment Tweaks (Recommended)
Phantom Process Killer Fix (Android 12+):
Execute this command via ADB from PC to prevent Android from killing long-running STT processes:
Execute this command via ADB from PC to prevent Android from killing long-running STT processes:
adb shell "/system/bin/device_config put activity_manager max_phantom_processes 2147483647"
Verification
# Run built-in system diagnostics
termux-stt doctor