# Android arm64 host and kit format Build from the release root with Android NDK 29.0.13113456. Set NDK_BIN to the LLVM bin directory for your build machine. The pocketfft header at revision 0fa0ef591e38c2758e3184c6c23e497b9f732ffa is supplied as include/pocketfft.h. The tested target is Android API 28 and arm64-v8a. ```bash "$NDK_BIN/aarch64-linux-android28-clang++" -std=c++17 -O2 -ffp-contract=off -Iinclude host/main.cpp host/audio.cpp host/graphs.cpp -static-libstdc++ -Landroid -lLiteRt -Wl,-rpath,'$ORIGIN' -o android/zonos_host ``` Place the runner and libLiteRt.so together. With the release directory on the device, the invocation for the first sentence is: ```sh LD_LIBRARY_PATH=android android/zonos_host kit s00 graphs/lm_step_p768.tflite graphs/codec_dec_f150.tflite out/s00 ``` The last argument must be a new directory. It receives codes.i32, waveform.f32 and waveform.wav. Standard error records the sentence tag, frames, sample count and elapsed seconds. ## Kit contract kit/MANIFEST.json describes the graph form, four CPU threads, Savannah, six tagged requests and little-endian byte order. Its `"form": "M"` names the fp32 graphs in graphs/, whose language model computes only the two experts that the router picks in each MoE layer. Its files dictionary maps kit-relative payload paths to byte counts and SHA-256. Its graph records carry paths relative to the release root, byte counts and SHA-256. The graph files are external to the kit. | Input | On-disk representation | |---|---| | takes/TAG/request.json | Tag, language, original text, seed. | | takes/TAG/prompt.f32 | Contiguous float32 [P,1024] summed prompt embeddings, including voice and conditions. P is file bytes / 4096. | | takes/TAG/silence.i32 | Three delayed prefill rows of ten little-endian int32 audio IDs. | | takes/TAG/draws.f32 | One float32 [10,4098] matrix of independent unit-rate exponential draws per sampled row. The stream contains 769−P rows, enough through the last LM position. | | shared/ | Generation embedding tables [10,4098,1024] plus the text-pad vector [1024], LM RoPE cosine/sine [768,16], ten codec codebooks [10,4096,8], decoder RoPE and five causal window masks, Hann windows, mixer and resampler coefficients. All use contiguous float32 in row-major order. | | takes/TAG/reference/ | take_codes.npy [frames,10], served waveform.npy and PCM16 waveform.wav at 44100 Hz, made on a Mac CPU, for comparison; the fp32 graphs in graphs/ reproduce these codes and WAV files on a Mac CPU. | These requests use precomputed Savannah voice prefixes. The Android CLI invokes the LM and decoder graphs; a reference-recording frontend can use the separate speaker graph. Keep the full set of inputs together when validating an output against the reference. ## Provenance This conversion derives the fp32 graphs and table blobs from Zyphra/ZONOS3-Mini-hf at e39d30df560125d9c434acd5cb0e83e4c2d64e0d. Conversion changes include a one-row recurrent LM signature with external state, static padded codec and speaker signatures, and host-side audio reconstruction. The desktop utility adapts the original request path to call these graphs. Keep the model NOTICE, the packaged license texts and the pocketfft header’s redistribution notice with any copy of these files.