- prepare_tts_embeds.py: generates pre-computed embeddings from any text
via Python generate_voice_clone, capturing talker inputs
- C++ pipeline: always build codec_sum + trailing (not as-is)
- maxTokens: 4× trailing count (audio >> text tokens)
- Long text tested: 224 Python tokens → 125 NPU tokens (10s audio)
- Text-only embeds don't work (model needs Python pre-computed codec_sum)
Usage: python3 scripts/prepare_tts_embeds.py "Your text" output.bin
adb push output.bin /data/local/tmp/.../full_pipeline_embeds.bin
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| assets | ||
| java/com/kazeia | ||
| jni | ||
| res | ||
| AndroidManifest.xml | ||