Pocket TTS for LiteRT (Ailo)

On-device, streaming text-to-speech in French and English: Kyutai's Pocket TTS models (about 100M parameters), converted to LiteRT for the Ailo Android app by Dreambel Tech.

Speech is generated on the phone, frame by frame (80 ms of 24 kHz audio per frame), and starts playing while the rest of the sentence is still being generated. Nothing leaves the device.

This is a modified, converted copy of Kyutai's work, shared under the same license. It is not an official Kyutai release and is not endorsed by Kyutai.

Files

Path Size Content
common/pt_mimi_stream2_n1_fp16.tflite 21 MB Mimi decoder, one latent frame in, 80 ms of audio out, with streaming state; fp16 weights; shared by both languages
<lang>/pt_flowlm_tts3_dyn8lm_head16.tflite 96 MB Flow language model: decode signature (one step, writes its own key/value row) and prefill_16, prefill_32, prefill_64 signatures sharing its weights
<lang>/pt_embed_f16.bin 8 MB Text token embeddings, fp16, [4001][1024]
<lang>/pt_input_linear_f32.bin 128 KB Latent-to-model input projection, fp32, [1024][32]
<lang>/pt_bos_input_f32.bin 4 KB Beginning-of-speech input, fp32, [1024]
<lang>/pt_latent_norm_f32.bin 256 B Latent mean then standard deviation, fp32, [2][32]
<lang>/pt_tokenizer.tsv 125 KB SentencePiece unigram vocabulary (piece, score)
<lang>/text_settings.json < 1 KB Text preparation and generation settings of the reference implementation
<lang>/pt_voice_estelle.bin 3.6 MB Voice estelle: precomputed prompt key/value cache, fp16
manifest.json Size and SHA-256 of every file

<lang> is fr (Pocket TTS french) or en (Pocket TTS english). All binary files are little-endian. A voice file holds an int32 prompt length T, then keys and values, each [96][T][64] fp16 (6 layers x 16 heads).

Changes from the original

  • Exported from PyTorch to LiteRT with litert-torch 0.9.3, from pocket-tts 4.0.1.
  • Graphs rewritten for streaming: the text prompt is processed in one call per chunk (prefill_*), each decode step writes its key/value row in place (DYNAMIC_UPDATE_SLICE), and Mimi decodes one frame at a time with an explicit state. Transposed convolutions are written as two matrix products. GELU uses the exact tanh form of the original.
  • Quantized with ai-edge-quantizer 0.8.0: transformer weights dynamic int8, flow head and Mimi weights fp16. Embeddings and voice states are stored in fp16.
  • Latent normalization is applied by the host, so one Mimi graph serves every language.
  • Voice states are re-laid out from the original safetensors; only estelle is included.

Fidelity checks (PC): streaming Mimi against Pocket's streaming decoder at 84.5 dB SNR (fp16); batched prefill identical to token-by-token prefill; Whisper character error rate on spoken answers unchanged by quantization and streaming (French 0.145, English 0.127).

Measured on a phone

Pixel 11 Pro (Tensor G6), Android 17, LiteRT 2.3.0 CPU with 4 threads and the XNNPACK weight cache: first audio 60 to 75 ms median after the text is ready, 292 ms worst case over 1,360 answers including a hot phone in heavy use; about 4 times faster than real time; about 130 to 170 MB of private memory at the peak of synthesis.

Use and limits

  • Write numbers, times, amounts and dates out in words before synthesis: the models turn digits into unintelligible sound.
  • Follow the reference text preparation in text_settings.json (character replacements, sentence chunks of at most 50 tokens, temperature 0.3, end of speech when the end logit exceeds -4).
  • This repository contains no voice cloning ability: no Mimi encoder, no tool to build a voice from audio. Do not use these models to imitate a real person without their explicit consent.

Attribution

Converted and shared by Dreambel Tech for Ailo.

Downloads last month
77
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for dreambeltech/ailo-pocket-tts-litert

Finetuned
(4)
this model