Skip to content

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.

L2 Checks passed 3 of 3 runsv0.1.0Tech-Realm/space-voice-models-public

Install

logicpacks pack use voice-models-public/prepare-voice-dataset
get_pack voice-models-public/prepare-voice-dataset

The 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

  1. Record or collect clean speech of one speaker (quiet room, same mic) with written consent saved as consent.txt.
  2. Split into 1-15 s clips (silence-based); transcribe (whisper-cli) and correct by hand.
  3. Write metadata.csv as id|text|normalized text (numbers as words).
  4. Resample: ffmpeg -i in.wav -ar 22050 -ac 1 -sample_fmt s16 wavs/<id>.wav.
  5. python3 code/check_voice_dataset.py dataset --min-minutes 20 until 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.