Use Kokoro with KokoroSharp on Windows

The KokoroSharp engine runs Kokoro text-to-speech on-device on Windows using ONNX. It is the recommended local runtime for Kokoro on Windows. Simple tests show roughly 2Ă— TTS speed and less resource usage (less memory and CPU) when WithAudio is used with KokoroSharp.

Setup

  1. Make sure you are using WithAudio at the latest version and that you are using the Windows version.
  2. Open Settings.
  3. Open Engines.
  4. Find the Kokoro card.
  5. Under Preferred runtime, if more than one option appears, choose WithAudio Local Windows KokoroSharp. You are done. If that option does not appear, or it is not downloaded yet, continue with the steps below.
  6. Click Download next to WithAudio Local Windows KokoroSharp (not downloaded).
  7. Progress may stall visually for a while, then jump when the download advances—this is normal.
  8. When the download finishes, select WithAudio Local Windows KokoroSharp as the preferred runtime.
  9. You are good to go new audio will use the KokoroSharp engine.