Android
Stork Live · tested 2026-12-02
The native Stork Live client for Android, drawn with OpenGL ES 3.
Before you start
Android 8.0 (API 26) or later, and a device with OpenGL ES 3.0. The library's only dependency is the Kotlin standard library.
Install
dependencies {
implementation("ai.stork:storklive:0.1.0") // Maven Central
}Code
// build.gradle.kts
implementation("ai.stork:storklive:0.1.0") // Maven Central
import ai.stork.live.StorkLiveView
val face = StorkLiveView(context)
layout.addView(face)
face.load("a")
face.appendAudio(samples, 24000) // a voice agent's reply, piece by pieceFor a whole sentence, call face.speak(pcm, 24000) with mono floats at any sample rate. When the turn is over, call face.stop().
Check it works
A face that blinks, with the Powered by stork.ai mark in the corner. When you hand it audio, the lips move and the sound plays.
If it does not
- The picture freezes after the app comes back. Call face.onResume() and face.onPause() from your activity, and face.destroy() when done.
- Nothing loads. The app needs the INTERNET permission to download avatars. The library's manifest asks for it.
Next
Change the letter to change the face: 'a' to 'h' are free. To use a face of your own without the mark, see Your own avatar.
