sdk/runanywhere-kotlin/modules/runanywhere-core-onnx/README.md
Optional ONNX/Sherpa backend for the RunAnywhere Kotlin SDK — on-device STT, TTS, and VAD on Android.
Requires the core SDK. Add both to your app module's build.gradle.kts:
dependencies {
implementation("io.github.sanchitmonga22:runanywhere-sdk:0.20.11")
implementation("io.github.sanchitmonga22:runanywhere-onnx:0.20.11")
}
Register the backend before RunAnywhere.initialize(), then use the core SDK for speech APIs:
import com.runanywhere.sdk.core.onnx.ONNX
import com.runanywhere.sdk.public.RunAnywhere
import com.runanywhere.sdk.public.extensions.transcribe
// At app startup
ONNX.register()
RunAnywhere.initialize(context = this, /* ... */)
// After download/load an STT model via core APIs
val output = RunAnywhere.transcribe(audioData)
println(output.text)
For model registration, TTS, VAD, and voice-agent flows, see the Kotlin SDK README.
RECORD_AUDIO permission for microphone capturerunanywhere-sdk:0.20.11RunAnywhere License. See LICENSE.