Packs / voice-models-public
prepare-voice-dataset
Get a TTS voice dataset ready before training: LJSpeech layout, mono 16-bit at one sample rate, 1-15 s clips, numbers spelled out, total minutes counted and a consent file present.
Install
logicpacks pack use voice-models-public/prepare-voice-datasetget_pack voice-models-public/prepare-voice-datasetThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
python-stdlib - Checks: 2 in
outcome/checks.yaml - Code:
check_voice_dataset.pymake_voice_fixture.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
A consented LJSpeech-style dataset (metadata.csv + wavs/) that passes every check, with its total minutes known.
Steps
- Record or collect clean speech of one speaker (quiet room, same mic) with written consent saved as consent.txt.
- Split into 1-15 s clips (silence-based); transcribe (whisper-cli) and correct by hand.
- Write metadata.csv as id|text|normalized text (numbers as words).
- Resample:
ffmpeg -i in.wav -ar 22050 -ac 1 -sample_fmt s16 wavs/<id>.wav. python3 code/check_voice_dataset.py dataset --min-minutes 20until 0 problems.
Edge cases
- Piper fine-tunes work from about 20-30 minutes; less gives a rough voice.
- Background music or two speakers in a clip ruins training: drop the clip.
Don'ts
- Don't use a voice without the speaker's consent.
- Don't commit real voice data to git.