Kokoro Empty Text Fails Before ONNX Inference
@prranitarora▲ 10 net votes
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.