• Stefy Lanza (nextime / spora )'s avatar
    name kokoro's voices without loading it · 40aa3eb0
    Stefy Lanza (nextime / spora ) authored
    Languages landed but the voices did not: kokoro reported none until something
    loaded it, so a client could see nine languages and still have nothing to pick
    from. The names are now read out of the voices file the backend itself selects
    from — the same file, so the listing cannot offer a voice that synthesis would
    then reject — and the accent map already in the module decodes each one's
    language and gender. 54 voices across all nine languages.
    
    Pointedly NOT via _resolve_kokoro_files: that downloads a 28 MB release when
    nothing local matches, and /v1/models is a polled endpoint, so it must never be
    a download trigger. A file that is not on disk simply yields no names, and there
    is a test that fails if the listing path reaches for the network at all. The zip
    index read is memoised against the file's own mtime (27ms -> 0.1ms).
    
    A list a load actually enumerated still outranks the file, and a card's
    voices_path is honoured. XTTS keeps filling in after its first load, and parler
    stays empty with selection "described" — it has no speaker names to give.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014T3rZozi1Ehk96NG1WesgC
    40aa3eb0
Name
Last commit
Last update
..
cache Loading commit data...
__init__.py Loading commit data...
acceleration.py Loading commit data...
capabilities.py Loading commit data...
chat_style.py Loading commit data...
diffusion_loras.py Loading commit data...
footprint.py Loading commit data...
gpu_lock.py Loading commit data...
gpu_query.py Loading commit data...
grammar.py Loading commit data...
hf_loading.py Loading commit data...
host_ram.py Loading commit data...
manager.py Loading commit data...
parser.py Loading commit data...
peft_compat.py Loading commit data...
pipeline_cache.py Loading commit data...
placement.py Loading commit data...
proc_mem.py Loading commit data...
prompt_weighting.py Loading commit data...
quant.py Loading commit data...
ram_monitor.py Loading commit data...
remote_code.py Loading commit data...
teardown.py Loading commit data...
templates.py Loading commit data...
text_encoder_offload.py Loading commit data...
text_loras.py Loading commit data...
textual_inversion.py Loading commit data...
thermal.py Loading commit data...
tmp_janitor.py Loading commit data...
tool_call_grammar.gbnf Loading commit data...
turboquant.py Loading commit data...
utils.py Loading commit data...
video_geometry.py Loading commit data...
weight_stores.py Loading commit data...