Skip to content
Commit 0e8e24e2 authored by Stefy Lanza (nextime / spora )'s avatar Stefy Lanza (nextime / spora )
Browse files

french was never going to work, and a test said it would



Probing all nine of Kokoro's languages through the running endpoint, one request
each: eight returned audio and `fr` returned a 500 — "espeak-ng has no such
language". French is regioned in espeak exactly like English (fr-fr, fr-be,
fr-ch), so the bare code every OpenAI-compatible client sends was refused. The
French voice had never worked.

The regionless map's own comment asserted the opposite: that "it", "fr" and "de"
are all accepted bare. Two of those are true. A test asserted the same thing for
all three, so the belief was pinned in place without ever being measured —
exactly the failure the Kokoro-English fix was about, one language further along.
"fr" now maps to "fr-fr"; the comment says not to add a code on the strength of
the pattern, because the pattern is what got this wrong.

Measured bare-OK while I was there, so the next person has data instead of a
guess: de, it, nl, pl, tr, ru, ko, ar, cs, hu, sv. The corrected test asserts
those, and a new one checks the invariant that broke here — every language the
listing advertises for Kokoro must resolve to something espeak was measured to
accept.

Co-Authored-By: default avatarClaude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014T3rZozi1Ehk96NG1WesgC
parent 40aa3eb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment