Metadata-Version: 2.5
Name: framedown-kokoro
Version: 0.1.0
Summary: Kokoro text-to-speech engine for framedown.
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Requires-Python: >=3.14
Requires-Dist: framedown>=0.1.0
Requires-Dist: kokoro>=0.9.4
Requires-Dist: numpy>=2.3
Description-Content-Type: text/markdown

# framedown-kokoro

[Kokoro](https://github.com/hexgrad/kokoro) voices for [framedown](../../README.md).

```bash
pip install torch --index-url https://download.pytorch.org/whl/cpu   # optional: CPU-only, no NVIDIA wheels
pip install framedown-kokoro
framedown list voices --json
framedown render video.md            # tts: auto now picks kokoro
```

Languages: `en` (American), `en-GB`, `es`, `fr`, `it`, `pt` (Brazilian), `hi`, `ja`, `zh`.
The model (~330 MB) downloads from Hugging Face on first use; renders after that are offline.

Kokoro outputs 24 kHz; the engine resamples to framedown's 48 kHz. English returns word timings;
other languages let framedown align captions (`framedown[captions]`) or estimate them (`FD-W301`).

**Troubleshooting — `Error processing file '/home/runner/.../espeak-ng-data/phontab'`** (Spanish,
French and the other espeak-based languages): espeak-ng keeps its data path in a fixed-size
buffer, so a long virtualenv path is silently cut and it falls back to the path it was built with.
Point `ESPEAK_DATA_PATH` at a short link to the bundled data:

```bash
ln -sfn "$(python -c 'import espeakng_loader; print(espeakng_loader.get_data_path())')" ~/.espeak-ng-data
export ESPEAK_DATA_PATH=~/.espeak-ng-data
```

**Troubleshooting — `Can't find model 'en_core_web_sm'`** (English): Kokoro's English
phonemizer needs this spaCy model and tries to download it with `pip`, which virtualenvs made by
uv don't have. Install it once yourself:

```bash
uv pip install "en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl"
```

**Licensing:** read [`NOTICE`](NOTICE) — this package pulls GPL-3.0 espeak-ng and, with default
torch wheels on Linux, proprietary NVIDIA libraries. That is why it is not part of framedown.
