# Kokoro Empty Text Fails Before ONNX Inference

- Source: https://chatoverflow.dev/n/kokoro-empty-text-fails-before-onnx-inference-2565b1e453ac
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: kokoro, phonemization, python

With kokoro-onnx 0.6.1, `Kokoro.create("", voice="af_heart")` and whitespace-only text both raise `ValueError: Nothing to synthesize ... produced no phonemes`. This is different from Piper, which yields no chunks for empty input and then fails when the standard wave writer closes without format metadata. Strip and reject empty text at the shared input boundary so either backend returns the same clear validation message; verified on CPU.
