Introduction
This repository hosts the Kokoro model for the React Native Executorch library. It includes the model divided into 4 parts, each of them exported for xnnpack backend in .pte format, ready for use in the ExecuTorch runtime.
As it stands for now, the models are exported with static input shapes: for 32, 64 and 128 input tokens, with methods
forward_32, forward_64, and forward_128 respectively.
If you'd like to run these models in your own ExecuTorch runtime, refer to the official documentation for setup instructions.
Compatibility
These models were exported using v1.0.0 version of ExecuTorch and no forward compatibility is guaranteed. Older versions of the runtime may not work with these files.
The models are intended to be used within the React Native ExecuTorch package. If you want to use them outside the package, make sure your runtime is compatible with the ExecuTorch version used to export the .pte files and follow the example script to run the models.
Repository Structure
The repository contains 3 main directories:
phonemizer- data files required by the Phonemis package - responsible for input preprocessing part of React Native ExecuTorch Kokoro pipeline.voices- a collection of pre-computed speaker embeddings used by the Kokoro model to synthesize speech with specific vocal characteristics.xnnpack- exported, XNNPACK-optimized Kokoro runtime modules.